-
Notifications
You must be signed in to change notification settings - Fork 23
/
.eslintrc
36 lines (35 loc) · 902 Bytes
/
.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
{
"env": { "browser": true }, // do not trip on browser globals, e.g. window, document..
"extends": ["airbnb", "prettier", "prettier/react"],
"parser": "babel-eslint",
"plugins": ["prettier"], // apply prettier through ESLint
"rules": {
"prettier/prettier": [
"warn",
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5"
}
],
"strict": 0, // for babel-eslint
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-use-before-define": 0,
"jsx-quotes": [2, "prefer-double"],
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
"react/require-default-props": "off"
},
"globals": {
"window": false,
"document": false,
"afterEach": true,
"beforeEach": true,
"describe": true,
"expect": true,
"it": true,
"jest": true,
"test": true
}
}