-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
59 lines (59 loc) · 2.04 KB
/
.eslintrc
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
{
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier",
"prettier/react"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jest"],
"env": { "browser": true, "node": true, "jest/globals": true },
"rules": {
"object-curly-newline": [
"error",
{
"ObjectExpression": { "minProperties": 10, "multiline": true, "consistent": true },
"ObjectPattern": { "minProperties": 10, "multiline": true, "consistent": true },
"ImportDeclaration": { "minProperties": 10, "multiline": true, "consistent": true },
"ExportDeclaration": { "minProperties": 10, "multiline": true, "consistent": true }
}
],
"no-use-before-define": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "warn",
"react/jsx-filename-extension": ["error", { "extensions": [".jsx", ".tsx"] }],
"react/require-default-props": "off",
"react/state-in-constructor": "off",
"import/extensions": "off",
"indent": "off",
"import/no-anonymous-default-export": "error",
"@typescript-eslint/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
"@typescript-eslint/indent": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
"@typescript-eslint/no-angle-bracket-type-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": true }
],
"@typescript-eslint/no-empty-function": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".mjs", ".js", ".json", ".ts", ".tsx"],
"paths": ["frontend/src", "functions/src"]
}
}
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off"
}
}
]
}