All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 18s
56 lines
1.1 KiB
JavaScript
56 lines
1.1 KiB
JavaScript
// 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'
|
|
}
|
|
] |