forked from Autodesk/hig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
53 lines (53 loc) · 1.11 KB
/
index.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
module.exports = {
extends: ["airbnb", "prettier", "prettier/react"],
parser: "babel-eslint",
settings: {
"import/resolver": {
"babel-module": {},
webpack: true
}
},
plugins: ["react", "prettier"],
globals: {
describe: true,
it: true,
expect: true,
gemini: true,
jest: true,
beforeAll: true,
beforeEach: true,
afterEach: true,
afterAll: true,
document: true,
window: true
},
rules: {
"import/no-extraneous-dependencies": 0,
"max-len": [1, { code: 100 }],
"no-underscore-dangle": 0,
"prettier/prettier": "error",
"react/jsx-filename-extension": 0,
"react/no-danger": 2,
"react/prefer-stateless-function": 0,
"react/prop-types": 2,
"react/require-default-props": 0,
"react/style-prop-object": 0,
/* Allow the use of <label /> without nesting the <input /> */
"jsx-a11y/label-has-for": [
2,
{
required: {
every: ["id"]
}
}
]
},
overrides: [
{
files: ["*test.js", "**/__stories__/*.js"],
rules: {
"react/prop-types": 0
}
}
]
};