-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
62 lines (62 loc) · 1.87 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
{
"env": {
"es2021": true,
"browser": true
},
"extends": [
"standard",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["**/dist/*"],
"plugins": [
"@typescript-eslint"
],
"settings": {
"react": {
"version": "18.2.0"
},
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"project": [
"server/tsconfig.json",
"admin-panel/tsconfig.json"
]
}
}
},
"rules": {
"react/no-unknown-property": "off",
"react/jsx-max-props-per-line": "error",
"react/jsx-indent-props": ["error", 2],
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-indent": ["error", 2],
"react/jsx-closing-tag-location": "error",
"jsx-quotes": ["error", "prefer-single"],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"import/order": "error",
"object-property-newline": "error",
"object-curly-newline": ["error", { "multiline": true, "minProperties": 2 }],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"function-paren-newline": ["error", { "minItems": 2 }],
"function-call-argument-newline": ["error"],
"arrow-parens": "error",
"indent": ["error", 2],
"object-shorthand": "error",
"max-len": ["error", { "code": 120, "tabWidth": 2, "ignoreStrings": true, "ignoreTemplateLiterals": true }],
"@typescript-eslint/member-delimiter-style": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"no-undef": "off",
"import/no-named-as-default-member": "off",
"no-use-before-define": "off"
}
}