-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
144 lines (144 loc) · 4.24 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"actano"
],
"globals": {
"emit": false,
"_urq": false,
"createSagaRunner": false
},
"env": {
"mocha": true,
"browser": true,
"es2021": true
},
"plugins": [
"no-only-tests",
"@typescript-eslint"
],
"rules": {
"no-only-tests/no-only-tests": "error",
"max-len": "off",
"no-console": "error",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/img-redundant-alt": "off",
"jsx-a11y/anchor-has-content": "off",
"react/forbid-prop-types": "off",
"react/prefer-stateless-function": "off",
"react/no-find-dom-node": "off",
"no-nested-ternary": "off",
"class-methods-use-this": "off",
"object-curly-newline": "off",
"no-multiple-empty-lines": "off",
"no-else-return": "off",
"padded-blocks": "off",
"operator-linebreak": "off",
"lines-between-class-members": "off",
"function-call-argument-newline": "off",
"switch-colon-spacing": "off",
"prefer-object-spread": "off",
"comma-style": "off",
"arrow-body-style": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-curly-newline": "off",
"react/jsx-curly-brace-presence": "off",
"react/jsx-fragments": "off",
"react/jsx-max-props-per-line": "off",
"react/jsx-tag-spacing": "off",
"camelcase": "off",
"no-await-in-loop": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/iframe-has-title": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-autofocus": "off",
"react/button-has-type": "off",
"react/default-props-match-prop-types": "off",
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off",
"react/no-unescaped-entities": "off",
"react/no-unused-class-component-methods": "off",
"react/no-unstable-nested-components": "off",
"react/no-unused-prop-types": "off",
"react/no-unused-state": "off",
"react/no-unknown-property": "off",
"react/no-will-update-set-state": "off",
"react/no-array-index-key": "off",
"react/no-access-state-in-setstate": "off",
"react/no-invalid-html-attribute": "off",
"react/jsx-no-bind": "off",
"react/jsx-no-useless-fragment": "off",
"react/jsx-closing-bracket-location": "off",
"react/jsx-closing-tag-location": "off",
"react/jsx-props-no-multi-spaces": "off",
"react/jsx-props-no-spreading": "off",
"react/sort-comp": "off",
"react/static-property-placement": "off",
"react/state-in-constructor": "off",
"guard-for-in": "off",
"no-irregular-whitespace": "off",
"no-promise-executor-return": "off",
"default-param-last": "off",
"prefer-destructuring": "off",
"prefer-regex-literals": "off",
"max-classes-per-file": "off",
"import/no-cycle": "off",
"import/no-self-import": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-named-default": "off",
"no-restricted-exports": "off",
"arrow-parens": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"test/**",
"**/test/**",
"**/*Test.{ts,tsx}"
],
"optionalDependencies": false
}
],
"import/no-restricted-paths": [
2,
{
"zones": [
{
"target": "./src/domains",
"from": "./src/components"
},
{
"target": "./src/components",
"from": "./src/features"
}
]
}
],
"no-restricted-globals": [2, "event"],
"react/jsx-filename-extension": [2, { "extensions": [".ts", ".tsx"] }],
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".json", ".ts", ".tsx"]
}
}
}
}