forked from pinterest/gestalt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
73 lines (73 loc) · 1.52 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
{
"extends": [
"airbnb",
"plugin:eslint-comments/recommended",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"plugins": [
"eslint-comments",
"flowtype",
"jest",
"jsx-a11y",
"prettier",
"react",
"import",
],
"rules": {
"jsx-a11y/label-has-for": [
"error",
{ "components": ["label"], "allowChildren": true }
],
"prettier/prettier": [
"error",
{ "trailingComma": "es5", "singleQuote": true }
],
"no-await-in-loop": "off",
"no-return-await": "off",
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
"react/no-array-index-key": "off",
"react/require-default-props": "off",
"import/extensions": [
"error",
"always",
{
"ignorePackages": true
}
],
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/no-relative-parent-imports": "error",
},
"overrides": [
{
"files": ["**/*.test.js", "**/*.integration.js"],
"env": {
"jest": true,
},
"globals": {
"page": true,
"browser": true,
},
},
{
"files": ["scripts/danger/*.js"],
"globals": {
"danger": true,
"markdown": true,
"warn": true
}
}
]
}