-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
119 lines (119 loc) · 3.1 KB
/
.eslintrc.json
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:import/typescript"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"jsx": true
},
"plugins": [
"@typescript-eslint",
"prettier",
"import",
"jsx-a11y",
"react",
"react-hooks"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
},
"rules": {
"class-methods-use-this": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"camelcase": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"consistent-return": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/prefer-default-export": "off",
"import/no-cycle": "off",
"no-alert": "off",
"no-continue": "off",
"no-bitwise": "off",
"no-case-declarations": "off",
"no-cond-assign": "off",
"no-console": "off",
"no-irregular-whitespace": "off",
"no-loop-func": "off",
"no-nested-ternary": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"no-return-assign": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-useless-return": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"import/first": "error",
"import/no-amd": "error",
"import/no-webpack-loader-syntax": "error",
"react/destructuring-assignment": "off",
"react/forbid-prop-types": "off",
"react/jsx-curly-newline": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-key": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/no-access-state-in-setstate": "off",
"react/no-array-index-key": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/react-in-jsx-scope": "off"
}
}