-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
103 lines (103 loc) · 2.48 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
module.exports = {
root: true,
extends: [
'@react-native',
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'prettier',
"plugin:@typescript-eslint/recommended"
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json'
},
plugins: [
'@typescript-eslint',
'prettier',
'prefer-arrow',
'autofix',
'unused-imports'
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
paths: ['./']
}
}
},
env: {
es6: true
},
rules: {
"no-console": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/no-throw-literal": "off",
'unused-imports/no-unused-vars-ts': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_'
}
],
'autofix/no-debugger': 'error',
'prefer-destructuring': [
'error',
{
array: false,
object: true
},
{
enforceForRenamedProperties: false
}
],
'prefer-arrow/prefer-arrow-functions': [
"warn",
{
"disallowPrototype": true,
"singleReturnOnly": false,
"classPropertiesAllowed": false
}
],
'import/prefer-default-export': 0,
'react/jsx-props-no-spreading': 0,
'@typescript-eslint/no-use-before-define': [
'error',
{ variables: false, classes: true, functions: true }
],
'no-param-reassign': 0,
'no-underscore-dangle': [
'error',
{ allowAfterThis: true, allow: ['_id'] }
],
quotes: [2, 'single', { avoidEscape: true }],
'no-use-before-define': 0,
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'storybook/**',
'storybook/**/**/**',
'stories/**'
]
}
],
'global-require': 0,
'react/require-default-props': 'off',
'react/prop-types': 'off',
'react/function-component-definition': 'off',
'react/no-unstable-nested-components': 'off',
'react/jsx-no-useless-fragment': 'off',
'prettier/prettier': 'off',
'arrow-body-style': 'off',
'no-promise-executor-return': 'off',
'@typescript-eslint/default-param-last': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/return-await': 'off'
}
};