This repository has been archived by the owner on May 18, 2021. It is now read-only.
forked from betagouv/leximpact-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
93 lines (93 loc) · 2.24 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
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
91
92
93
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": [
"@typescript-eslint",
"import",
"jest",
"jsx-a11y",
"react",
"simple-import-sort",
"sort-destructure-keys",
"local"
],
"extends": ["airbnb", "plugin:jest/recommended"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
},
"rules": {
"class-methods-use-this": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"json": "always"
}
],
"no-case-declarations": 0,
"local/no-material-root-imports": 2,
"sort-keys": [2, "asc"],
"array-bracket-newline": ["error", { "multiline": true }],
"array-element-newline": ["error", "consistent"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"import/no-unresolved": 2,
"no-underscore-dangle": "error",
"quotes": ["error", "double", { "avoidEscape": false }],
"react/jsx-indent": [
2,
2,
{ "checkAttributes": false, "indentLogicalExpressions": true }
],
"react/jsx-indent-props": [2, 2],
"react/react-in-jsx-scope": "off",
"indent": [2, 2],
"semi": [2, "always"],
"max-nested-callbacks": [2, { "max": 4 }],
"react/jsx-closing-bracket-location": [
2,
{
"nonEmpty": false,
"selfClosing": false
}
],
"jsx-a11y/anchor-is-valid": [
2,
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"]
}
],
"react/jsx-sort-props": [
2,
{
"noSortAlphabetically": false,
"ignoreCase": true,
"reservedFirst": true,
"callbacksLast": true,
"shorthandFirst": true
}
],
"import/order": "off",
"sort-imports": "off",
"simple-import-sort/sort": "error",
"import/prefer-default-export": "off",
"sort-destructure-keys/sort-destructure-keys": 2,
"jsx-a11y/label-has-for": 0,
"react/jsx-filename-extension": [2, { "extensions": [".jsx", ".tsx"] }]
}
}