forked from Autodesk/hig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
70 lines (70 loc) · 1.5 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = {
extends: ["airbnb", "prettier"],
parser: "@babel/eslint-parser",
parserOptions: {
babelOptions: {
presets: ["@babel/preset-react"]
}
},
settings: {
"import/resolver": {
"babel-module": {}
}
},
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: 200 }],
"no-underscore-dangle": 0,
"prettier/prettier": "error",
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": 0,
"react/jsx-no-bind": [
2,
{
"allowArrowFunctions": true,
"allowFunctions": true,
"ignoreRefs": true
}
],
"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"]
}
}
],
"react/jsx-props-no-spreading": 0,
"import/no-unresolved": 0,
"no-restricted-exports": 0,
"react/function-component-definition": 0
},
overrides: [
{
files: ["*test.js", "**/__stories__/*.js"],
rules: {
"react/prop-types": 0
}
}
]
};