-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
90 lines (90 loc) · 2.54 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
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "import", "react", "react-hooks"],
"settings": {
"import/extensions": [".js", ".ts", ".jsx", ".tsx"],
"react": {
"version": "detect"
}
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"eqeqeq": [2, "allow-null"],
"id-length": 0,
"no-console": 0,
"no-var": 2,
"no-nested-ternary": 0,
"prefer-const": 0,
"no-multiple-empty-lines": 0,
"no-useless-escape": 0,
"no-else-return": 0,
"comma-dangle": 0,
"lines-between-class-members": 0,
"indent": 0,
"consistent-return": 0,
"operator-linebreak": 0,
"object-curly-newline": 0,
"function-paren-newline": 0,
"prefer-destructuring": 0,
"import/default": "error",
"import/export": "error",
"import/first": "error",
"import/named": "error",
"import/namespace": "error",
"import/newline-after-import": "error",
"import/no-deprecated": "error",
"import/no-extraneous-dependencies": ["error", { "peerDependencies": true }],
"import/no-mutable-exports": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-unresolved": "error",
"react/jsx-wrap-multilines": 0,
"react/jsx-one-expression-per-line": 0,
"react/no-unused-state": 0,
"react/require-default-props": 0,
"react/destructuring-assignment": 0,
"react/no-did-mount-set-state": 2,
"react/no-multi-comp": 0,
"react/jsx-boolean-value": [0, "always"],
"react/no-deprecated": 0,
"react/no-find-dom-node": 0,
"max-len": 0,
"no-mixed-operators": 0,
"no-continue": 0,
"no-restricted-syntax": 0,
"no-plusplus": 0,
"no-confusing-arrow": 0,
"arrow-parens": 0,
"arrow-body-style": 0,
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/jsx-closing-bracket-location": 0,
"react/prefer-es6-class": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,
"object-curly-spacing": 0,
"import/no-webpack-loader-syntax": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-unused-vars": "error"
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jasmine": true
}
}