-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
90 lines (90 loc) · 2.26 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
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
module.exports = {
env: {
browser: true,
},
plugins: ["prettier"],
extends: [
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
],
rules: {
"prettier/prettier": [
"error",
{
singleQuote: true,
"comma-dangle": ["error", "always-multiline"],
},
{
usePrettierrc: true,
},
],
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"@typescript-eslint/no-namespace": [
"error",
{
allowDeclarations: true,
},
],
"import/prefer-default-export": "off",
"import/no-dynamic-require": "off",
"import/extensions": "off",
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"operator-linebreak": "off",
camelcase: "off",
"max-classes-per-file": "off",
"consistent-return": "off",
"global-require": "off",
"react/prop-types": "off",
"lines-between-class-members": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/destructuring-assignment": "off",
"react/no-access-state-in-setstate": "off",
"react/button-has-type": "off",
"react/no-unescaped-entities": "off",
"react/react-in-jsx-scope": "off",
"react/no-unknown-property": "off",
"react/require-default-props": "off",
"object-curly-newline": "off",
"prefer-destructuring": "off",
"dot-notation": "off",
"max-len": "off",
"no-plusplus": "off",
"linebreak-style": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
quotes: "off",
indent: "off",
"no-shadow": "off",
"arrow-parens": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off",
"quote-props": "off",
"comma-dangle": "off",
"prefer-template": "off",
"no-console": "off",
"no-alert": "off",
},
settings: {
"import/resolver": {
node: {
paths: ["./"],
},
},
},
};