-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.25 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 = {
env: {
browser: true,
es2020: true,
},
extends: ['plugin:react/recommended', 'airbnb', 'plugin:import/typescript', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.tsx', '.jsx'] }],
'react/prop-types': [0],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'react/jsx-props-no-spreading': [0],
'jsx-a11y/label-has-associated-control': [0],
'import/extensions': ['error', 'never'],
'jsx-a11y/anchor-is-valid': [0],
'react/jsx-one-expression-per-line': [0],
'react/require-default-props': [0],
'no-console': ['error', { allow: ['warn', 'error'] }],
'react/no-array-index-key': [0],
'import/no-unresolved': [0],
'global-require': [0],
'no-nested-ternary': [0],
'import/no-extraneous-dependencies': ['error', { devDependencies: ['./scripts/*'] }],
},
globals: {
React: 'writable',
},
}