-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
98 lines (98 loc) · 2.28 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
94
95
96
97
98
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["react", "@typescript-eslint"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:@next/next/recommended"],
"globals": {
"importScripts": true
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"arrow-spacing": "error",
"block-spacing": ["error", "never"],
"brace-style": ["error", "1tbs"],
"comma-spacing": "error",
"comma-style": ["error", "last"],
"curly": ["error", "all"],
"eol-last": "error",
"eqeqeq": ["error", "always"],
"func-call-spacing": "error",
"guard-for-in": "off",
"jsx-a11y/accessible-emoji": "off",
"keyword-spacing": "error",
"linebreak-style": "off",
"max-len": [
"error",
{
"tabWidth": 2,
"code": 1000,
"comments": 160,
"ignoreComments": false,
"ignoreTrailingComments": false
}
],
"no-console": "warn",
"no-empty-function": [
"error",
{
"allow": ["arrowFunctions"]
}
],
"no-implicit-coercion": "error",
"no-invalid-this": "off",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-unneeded-ternary": "error",
"no-useless-computed-key": "off",
"no-useless-return": "error",
"no-whitespace-before-property": "error",
"prettier/prettier": "warn",
"quote-props": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-sort-props": [
"error",
{
"noSortAlphabetically": false,
"ignoreCase": true
}
],
"react/prop-types": "off",
"require-jsdoc": "off",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"asyncArrow": "always",
"named": "never"
}
]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
},
"linkComponents": [
"Hyperlink",
{
"name": "Link",
"linkAttribute": "to"
}
]
}
}