forked from nytimes/kyt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.json
79 lines (74 loc) · 1.74 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
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier/react"
],
"env": {
"jest": true,
"browser": true
},
"plugins": ["json", "prettier", "kyt", "react-hooks"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false
},
"globals": {
"KYT": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"no-lonely-if": 2,
"no-nested-ternary": 2,
"max-nested-callbacks": [2, { "max": 5 }],
"constructor-super": 2,
"no-this-before-super": 2,
"prefer-spread": 2,
"arrow-parens": 0,
"no-warning-comments": [
1,
{ "terms": ["todo", "fixme"], "location": "start" }
],
"react/sort-comp": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/extensions": [1, { "js": "never" }],
"react/require-extension": "off",
"react/destructuring-assignment": "off",
"react/no-access-state-in-setstate": "off",
"import/no-extraneous-dependencies": [0],
"no-param-reassign": 0,
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"import/no-restricted-paths": [
"error",
{
"zones": [{ "target": "./src", "from": "./src/server" }]
}
],
"jsx-a11y/anchor-is-valid": [
"off",
{
"components": ["Link"]
}
],
"prettier/prettier": [
"error",
{
"printWidth": 100,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
}
],
"kyt/no-props-spread": 1
}
}