-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.eslintrc.js.json
64 lines (64 loc) · 1.56 KB
/
.eslintrc.js.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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended"
],
"env": {
"browser": true,
"node": true
},
"overrides": [
{
"files": [
"**/__tests__/*"
],
"env": {
"jest": true
}
}
],
"plugins": ["jsdoc", "prettier", "jest"],
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-console": "off",
"comma-dangle": ["error", "always-multiline"],
"import/no-unresolved": "warn",
"newline-per-chained-call": ["error"],
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "warn",
"react/forbid-prop-types": "warn",
"react/prop-types": "off",
"no-unused-vars": ["error"],
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"semi": [2, "never"],
"react/no-string-refs": "warn",
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
"jsdoc/require-description-complete-sentence": "error",
"prettier/prettier": "error"
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["^~", "./src/client"],
["^@assets", "./src/client/app/assets/gov"],
["^\\$components", "./src/client/scss/components"]
],
"extensions": [".jsx", ".js", ".tsx", ".ts", ".scss", ".css", ".png", ".svg"]
}
}
}
}