forked from open-eats/openeats-web
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
111 lines (111 loc) · 3.4 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"airbnb",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"compat",
"import",
"jest",
"jsx-a11y",
"react",
"react-hooks"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": {}
}
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-shadow": "error",
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"comma-spacing": 0,
"default-param-last": 0,
"function-call-argument-newline": 0,
"function-paren-newline": ["error", "consistent"],
"import/extensions": ["error", "ignorePackages", {
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}],
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.ts", "**/*.test.tsx", "src/test/**"]}],
"import/order": 0,
"indent": 0,
"jsx-a11y/no-access-key": 0,
"jsx-quotes": ["error", "prefer-single"],
"key-spacing": 0,
"linebreak-style": ["error", "unix"],
"lines-between-class-members": 0,
"max-classes-per-file": 0,
"max-len": 0,
"no-continue": 0,
"no-else-return": 0,
"no-multi-spaces": 0,
"no-nested-ternary": 1,
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": 0,
"no-restricted-imports": [
"error", {
"paths": [{
"name": "react-redux",
"importNames": ["useDispatch", "useSelector"],
"message": "Please import from 'common/store/redux'."
}]
}
],
"no-shadow": "off",
"no-use-before-define": 0,
"object-curly-newline": 0,
"object-shorthand": ["error", "consistent"],
"one-var": 0,
"one-var-declaration-per-line": 0,
"operator-linebreak": 1,
"prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": true }],
"prefer-destructuring": [1, { "AssignmentExpression": { "object": false } }],
"prefer-template": 1,
"radix": ["error", "as-needed"],
"react/destructuring-assignment": 0,
"react/function-component-definition": [ "error", { "namedComponents": "arrow-function" }],
"react/jsx-closing-bracket-location": 0,
"react/jsx-equals-spacing": 0,
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"react/jsx-indent": [2, 2, {"indentLogicalExpressions": true}],
"react/jsx-indent-props": [1, 4],
"react/jsx-no-useless-fragment": [ "error", { "allowExpressions": true }],
"react/jsx-one-expression-per-line": [1, { "allow": "single-child" }],
"react/jsx-props-no-multi-spaces": 0,
"react/jsx-props-no-spreading": 0,
"react/prop-types": [0],
"react/no-unused-prop-types": 0,
"react/require-default-props": 0,
"react/sort-comp": 0,
"space-in-parens": 1
}
}