-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.03 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
settings: {
react: {
version: 'detect'
}
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
ignorePatterns: ['node_modules/*', '.eslintrc.js', 'webpack.config.js'],
rules: {
'@typescript-eslint/no-explicit-any': 0,
'react/jsx-filename-extension': 0,
'react/react-in-jsx-scope': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-props-no-spreading': 0,
'import/prefer-default-export': 0,
'react/prop-types': 0,
'no-unused-vars': 0,
'jsx-a11y/anchor-is-valid': 0,
'@typescript-eslint/no-unused-vars': ['error', {"ignoreRestSiblings": true}],
}
}