-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (38 loc) · 1.21 KB
/
.eslintrc.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
32
33
34
35
36
37
38
39
module.exports = {
root: true,
extends: ['blvd/react', 'prettier', 'prettier/@typescript-eslint', 'prettier/react', 'plugin:prettier/recommended'],
plugins: ['prettier'],
rules: {
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-props-no-spreading': 'off',
'prettier/prettier': 'error'
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
// typescript-eslint specific options
warnOnUnsupportedTypeScriptVersion: true
},
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'spaced-comment': ['error', 'always', { markers: ['/'] }],
'import/no-unresolved': 'off',
'react/no-danger': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/no-explicit-any': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }]
}
},
{
files: ['.eslintrc.js', '*.config.js'],
parserOptions: { sourceType: 'script' },
env: { node: true }
}
]
}