-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
40 lines (40 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
40
module.exports = {
env: {
jest: true,
browser: true,
},
extends: ['airbnb-typescript-prettier'],
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-shadow': ['error', { ignoreTypeValueShadow: true }],
'@typescript-eslint/no-unused-vars': [
'error',
{ args: 'after-used', ignoreRestSiblings: true },
],
'consistent-return': 'off',
'default-case': 'off',
'import/prefer-default-export': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'prettier/prettier': 'error',
'react/no-multi-comp': 'off',
'react/prop-types': 'off',
'no-await-in-loop': 'warn',
'no-continue': 'off',
'no-nested-ternary': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'react/no-unused-prop-types': 'off',
},
parserOptions: {
project: null,
},
};