-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
46 lines (46 loc) · 1.13 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"prettier"
],
"plugins": ["react", "prettier", "jsx-a11y", "import"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"import/no-extraneous-dependencies": 0,
"import/no-import-module-exports": 0,
"react/function-component-definition": [
2,
{ "namedComponents": "arrow-function" }
],
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"no-restricted-syntax": 0,
"import/extensions": ["error", "never", { "tsx": "always" }],
"no-param-reassign": [
"error",
{ "props": true, "ignorePropertyModificationsFor": ["state", "ctx"] }
],
"react/prop-types": 0,
"import/no-unresolved": 0,
"react/no-array-index-key": 0,
"import/prefer-default-export": 0,
"import/newline-after-import": 0,
"class-methods-use-this": 0,
"no-console": "off"
}
}