forked from adobecom/milo-fg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (57 loc) · 1.62 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
{
"extends": [
"airbnb-base"
],
"rules": {
"indent": ["error", 4, {"SwitchCase": 1}],
"no-param-reassign": ["error", { "props": false }],
"class-methods-use-this": "off",
"function-paren-newline": ["error", "consistent"],
"max-len": ["error", { "code": 200 }],
"operator-linebreak": ["error", "after"],
"node/no-unpublished-require": 0,
"semi": ["error", "always"],
"comma-dangle": ["error", "only-multiline"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"no-undef": ["error"],
"no-use-before-define": "off" //temporary to eslint changes better visible in PR (without code reordering)
},
"overrides": [
{
"files": [
"*.test.js",
"jest.setup.js"
],
"rules": {
"no-underscore-dangle": "off"
},
"globals": {
"fetchMock": true,
"mockLoggerInstance": true,
"AIOParams": true,
"ExternalData": true,
"StateMock": true,
"FilesMock": true,
"LastImsMock": true
}
}
],
"env": {
"node": true,
"es6": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"allowImportExportEverywhere": true,
"sourceType": "module",
"requireConfigFile": false
}
}