This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
forked from uktrade/data-hub-frontend
/
.eslintrc
90 lines (90 loc) · 1.86 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"parser": "babel-eslint",
"extends": [
"plugin:prettier/recommended",
"prettier/react"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks",
"import",
"mocha",
"jsx-a11y"
],
"rules": {
"no-async-promise-executor": "off",
"no-case-declarations": "off",
"no-prototype-builtins": "off",
"no-unused-vars": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"node/no-deprecated-api": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off",
"react/prefer-stateless-function": "off",
"react/no-multi-comp": "off",
"react/forbid-prop-types": "off",
"react/jsx-boolean-value": [
"error",
"always"
],
"react/jsx-one-expression-per-line": "off",
"object-curly-newline": "off",
"no-else-return": "off",
"arrow-body-style": "off",
"dot-notation": "error",
"mocha/no-exclusive-tests": "error",
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"eol-last": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-undef": "error",
"no-console": ["error", {"allow": ["assert"]}]
},
"overrides": [
{
"globals": {
"JSDOM": true,
"formMacros": true,
"expect": true,
"proxyquire": true,
"sinon": true,
"nock": true,
"rootPath": true,
"globalReq": true,
"globalRes": true
},
"rules": {
"no-unused-expressions": 0
},
"files": [
"**.test.{js,jsx}"
],
"env": {
"mocha": true,
"browser": true
}
}
]
}