This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
59 lines (59 loc) · 1.66 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
{
"root": true,
"extends": ["@socialgouv/eslint-config-strict", "prettier"],
"plugins": ["prettier", "sort-requires"],
"env": {
"browser": false,
"node": true
},
"rules": {
"no-console": ["error", { "allow": ["info", "error", "warn"] }],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"jest/no-disabled-tests": "warn",
"prettier/prettier": "error",
"sort-requires/sort-requires": "error"
},
"overrides": [
{
"files": ["features/**/*.js"],
"extends": ["@socialgouv/eslint-config-strict", "prettier", "plugin:chai-expect/recommended"],
"plugins": ["prettier", "chai-expect", "sort-requires"],
"rules": {
"jest/no-standalone-expect": "off",
"jest/valid-expect": "off"
}
},
{
"files": ["packages/api/src/**/*.js"]
},
{
"files": ["packages/app/pages/**/*.js", "packages/app/src/**/*.js"],
"extends": ["@socialgouv/eslint-config-react-strict", "prettier"],
"env": {
"browser": true
},
"rules": {
"react/jsx-sort-props": "error",
"react/prop-types": "error"
}
},
{
"files": ["packages/app/pages/**/*.js", "packages/app/src/blocks/**/*.js"],
"extends": ["@socialgouv/eslint-config-react-strict", "prettier"],
"rules": {
"react/prop-types": "off"
}
},
{
"files": ["packages/api/src/**/*.test.js", "packages/app/src/**/*.test.js"],
"extends": ["@socialgouv/eslint-config-react-strict", "prettier"],
"plugins": ["prettier", "sort-requires"],
"env": {
"jest": true
}
}
]
}