-
Notifications
You must be signed in to change notification settings - Fork 33
/
.eslintrc
executable file
·47 lines (47 loc) · 1.3 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
{
"extends": ["vtex-react"],
"rules": {
"import/no-unresolved": [
"error",
{
"commonjs": true,
"amd": true,
"ignore": ["^([a-zA-Z@]+[-\\.]?)+"]
}
],
// Rules that conflict with Prettier.
// To verify conflicting rules, run:
// $ npm run prettier-conflict-check
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/class-name-casing": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-onchange": "off",
"jsx-a11y/no-autofocus": "off"
},
"overrides": [
{
// Rules for autogenerated files,
// They may need to be bypass some rules.
// E.g.: EXPERIMENTAL_ needs camelcase bypass
"files": ["react/*.js"],
"rules": {
"import/default": "off"
}
}
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"jest": true,
"es6": true
}
}