forked from tinyplex/tinybase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
121 lines (121 loc) · 3.55 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "jest", "jsdoc"],
"extends": [
"eslint:recommended",
"plugin:react/all",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"jest/globals": true
},
"globals": {
"page": true,
"browser": true,
"context": true,
"jestPuppeteer": true
},
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"globalReturn": true,
"jsx": true
},
"sourceType": "module"
},
"settings": {"react": {"version": "16.12.0"}},
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unused-vars": [
2,
{"argsIgnorePattern": "^_.*", "varsIgnorePattern": "^_.*"}
],
"max-len": [2, {"code": 80, "ignorePattern": "^(im|ex)ports?\\W.*"}],
"no-var": 2,
"no-console": 2,
"object-curly-spacing": [2, "never"],
"comma-dangle": [
2,
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"indent": 0,
"no-empty": [2, {"allowEmptyCatch": true}],
"linebreak-style": [2, "unix"],
"space-infix-ops": 2,
"quotes": [2, "single", {"allowTemplateLiterals": true}],
"semi": [2, "always"],
"sort-keys": 0,
"sort-imports": 2,
"jest/expect-expect": [2, {"assertFunctionNames": ["expect*"]}],
"no-multiple-empty-lines": [2, {"max": 1}],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/no-multi-comp": [2, {"ignoreStateless": true}],
"react/no-find-dom-node": 0,
"react/no-set-state": 0,
"react/no-unsafe": 2,
"jsx-quotes": [2, "prefer-double"],
"react-hooks/exhaustive-deps": 2,
"react-hooks/rules-of-hooks": 2,
"react/destructuring-assignment": 0,
"react/display-name": 0,
"react/jsx-boolean-value": 0,
"react/jsx-filename-extension": 0,
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-handler-names": [
2,
{"eventHandlerPrefix": "_handle", "eventHandlerPropPrefix": "on"}
],
"react/jsx-indent": 0,
"react/jsx-indent-props": [2, 2],
"react/jsx-max-depth": [2, {"max": 5}],
"react/jsx-max-props-per-line": [2, {"maximum": 1, "when": "multiline"}],
"react/jsx-newline": 0,
"react/jsx-no-literals": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-sort-props": 0,
"react/require-default-props": 0,
"react/sort-comp": 0,
"react/forbid-component-props": 0,
"react/button-has-type": 0
},
"overrides": [
{
"files": ["src/types/**"],
"extends": ["plugin:jsdoc/recommended"],
"rules": {
"jsdoc/check-tag-names": [
2,
{"definedTags": ["category", "packageDocumentation", "jsx"]}
],
"jsdoc/require-jsdoc": [2, {"contexts": ["any"]}],
"jsdoc/check-examples": [0, {"contexts": ["any"]}],
"jsdoc/require-description": [2, {"contexts": ["any"]}],
"jsdoc/require-returns-check": [0],
"jsdoc/require-param-type": [0],
"jsdoc/require-returns-type": [0]
}
}
]
}