Linting, prettier and postcss setup
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 18s
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 18s
This commit is contained in:
56
eslint.config.js
Normal file
56
eslint.config.js
Normal file
@@ -0,0 +1,56 @@
|
||||
// eslint.config.js
|
||||
import js from '@eslint/js'
|
||||
import typescriptParser from '@typescript-eslint/parser'
|
||||
import typescript from '@typescript-eslint/eslint-plugin'
|
||||
import astro from 'eslint-plugin-astro'
|
||||
import astroParser from 'astro-eslint-parser'
|
||||
import * as mdx from 'eslint-plugin-mdx' // Import everything
|
||||
import markdown from 'eslint-plugin-markdown'
|
||||
|
||||
export default [
|
||||
js.configs.recommended,
|
||||
{
|
||||
files: ['**/*.ts', '**/*.tsx'],
|
||||
plugins: {
|
||||
'@typescript-eslint': typescript
|
||||
},
|
||||
languageOptions: {
|
||||
parser: typescriptParser
|
||||
},
|
||||
rules: {
|
||||
...typescript.configs.recommended.rules
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['**/*.astro'],
|
||||
plugins: {
|
||||
astro
|
||||
},
|
||||
languageOptions: {
|
||||
parser: astroParser,
|
||||
parserOptions: {
|
||||
parser: typescriptParser,
|
||||
extraFileExtensions: ['.astro']
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
...astro.configs.recommended.rules
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['**/*.mdx'],
|
||||
plugins: {
|
||||
mdx
|
||||
},
|
||||
rules: {
|
||||
...mdx.configs.recommended.rules
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['**/*.md'],
|
||||
plugins: {
|
||||
markdown
|
||||
},
|
||||
processor: 'markdown/markdown'
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user