forked from icirellik/glowforge-material-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
113 lines (113 loc) · 2.9 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"node": true
},
"globals": {
"chrome": true,
"jsQR": true
},
"rules": {
// Rules that need to be corrected
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/triple-slash-reference": 0,
"camelcase": 0,
"class-methods-use-this": 0,
"consistent-return": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/no-static-element-interactions": 0,
"max-classes-per-file": 0,
"max-len": 0,
"no-async-promise-executor": 0,
"no-await-in-loop": 0,
"no-bitwise": 0,
"no-cond-assign": 0,
"no-continue": 0,
"no-console": 0,
"no-mixed-operators": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-prototype-builtins": 0,
"no-restricted-properties": 0,
"no-restricted-syntax": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-void": 0,
"react/jsx-filename-extension": [
2,
{
"extensions": [
".jsx",
".tsx"
]
}
],
// "react/jsx-key": 1,
"react/jsx-props-no-spreading": 0,
// "react/no-access-state-in-setstate": 1,
"react/no-did-update-set-state": 0,
"react/no-unescaped-entities": 0,
// "react/no-unused-prop-types": 1,
"react/no-unused-state": 0,
"react/prefer-stateless-function": 0,
"react/require-default-props": 0,
"react/sort-comp": 0,
// New rules
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
// Override airbnb config to support TypeScript
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
// Prefer Name Export
"import/no-named-default": 1,
"import/prefer-default-export": "off",
// Disable in favor of @typescript-eslint
"no-use-before-define": 0
}
}