forked from Zalo-MiniApp/zaui-egovernment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (45 loc) · 1.37 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
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"prettier",
],
rules: {
// General rules
"no-console": "warn",
"no-debugger": "warn",
// React rules
"react/prop-types": "off", // Disable prop-types as we use TypeScript
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
// TypeScript rules
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
// Airbnb specific overrides
"import/extensions": "off",
"react/jsx-filename-extension": ["error", { extensions: [".tsx"] }],
"import/prefer-default-export": "off",
"no-useless-catch": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"react/function-component-definition": "off",
"react/require-default-props": "off",
"no-use-before-define": "off",
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "warn",
},
settings: {
"import/resolver": {
typescript: {},
},
},
};