-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.json
38 lines (38 loc) · 1.04 KB
/
.eslintrc.json
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
{
"env": {
"node": true,
"es6": true,
"jest": true,
"browser": true
},
"extends": "airbnb-base",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"document": "readonly",
"describe": "readonly",
"test": "readonly",
"expect": "readonly",
"history": true,
"GOVUK": "readonly",
"dataLayer": "readonly",
"L": "readonly"
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
"semi": ["error", "always"],
"no-use-before-define": 0,
"max-len": ["error", { "code": 200 }],
"quotes": ["error", "single"],
"eol-last": 1,
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"import/prefer-default-export": 0,
"import/no-named-as-default-member": 0,
"no-unused-expressions": ["error", { "allowTernary": true }],
"no-param-reassign": [2, { "props": false }]
},
"root": true
}