-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
103 lines (103 loc) · 3.08 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"airbnb",
"airbnb-typescript",
"prettier",
"plugin:react/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"tsconfigRootDir": ".",
"project": ["./tsconfig.json"]
},
"plugins": [
"react",
"@typescript-eslint",
"jest",
"unused-imports",
"autofix",
"prefer-arrow",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"no-empty": "off",
"consistent-return": "off",
"prefer-const": "off",
"no-var": "off",
"autofix/prefer-const": "error",
"autofix/no-var": "error",
"prefer-arrow/prefer-arrow-functions": [
"off",
{
"disallowPrototype": false,
"singleReturnOnly": true,
"classPropertiesAllowed": false
}
],
"prefer-arrow-callback": ["error"],
"func-style": ["error", "expression", { "allowArrowFunctions": true }],
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-return-assign": "off",
"react/no-array-index-key": "off",
"no-param-reassign": "off",
"autofix/prefer-arrow-callback": "error",
"react/jsx-no-useless-fragment": "off",
"no-console": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-imports-ts": "error",
"@typescript-eslint/no-unused-vars": "off",
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"indent": "off",
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"naming-convention": "off",
"@typescript-eslint/naming-convention": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "off",
"import/no-named-as-default": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"func-names": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"import/no-mutable-exports": "off",
"vars-on-top": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
},
"overrides": [
{
"files": ["**/*.test.js", "**/*.test.ts"],
"env": { "jest/globals": true },
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"]
}
]
}