-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy patheslint.config.js
31 lines (30 loc) · 966 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import eslintPluginAstro from 'eslint-plugin-astro'
import neostandard from 'neostandard'
export default [
...neostandard(),
// add more generic rule sets here, such as:
// js.configs.recommended,
...eslintPluginAstro.configs.recommended,
{
ignores: ['.astro/**/*.*'],
files: ['**/*.astro', '**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
rules: {
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
'@stylistic/jsx-indent': 'off',
'@stylistic/space-before-function-paren': 'off',
// override/add rules settings here, such as:
// "astro/no-set-html-directive": "error"
},
},
{
files: ['**/*.astro'],
rules: {
'react/self-closing-comp': 'off',
'react/jsx-key': 'off',
'@stylistic/jsx-first-prop-new-line': 'off',
'@stylistic/jsx-closing-tag-location': 'off',
'@stylistic/jsx-closing-bracket-location': 'off',
'@stylistic/multiline-ternary': 'off',
},
},
]