-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
84 lines (84 loc) · 2.54 KB
/
.eslintrc.json
File metadata and controls
84 lines (84 loc) · 2.54 KB
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-typescript", "plugin:import/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": [
"react-hooks", "import", "react"
],
"settings": {
"import/resolver": {
"alias": {
"map": [
["@assets", "./src/assets"],
["@utils", "./src/utils"],
["@pages", "./src/pages"],
["@parts", "./src/parts"],
["@lib", "./src/lib"]
],
"extensions": [".ts", ".js", ".jsx", ".json", ".tsx"]
}
}
},
"ignorePatterns": ".eslintrc.js",
"overrides": [
{
"files": ["*.tsx", "*.ts"],
"rules": {
"import/prefer-default-export": "off",
"import/order": "off",
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"consistent-return": "off",
"object-curly-newline": "off",
"operator-linebreak": "off",
"no-restricted-syntax": "off",
"class-methods-use-this": "off",
"import/no-cycle": "off",
"@typescript-eslint/indent": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"no-confusing-arrow": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-this-in-sfc": "off",
"func-names": "off",
"@typescript-eslint/no-explicit-any": 2,
"react-hooks/exhaustive-deps": "warn",
"import/no-extraneous-dependencies": "off",
"newline-per-chained-call": "off",
"react/jsx-curly-newline": [
"error",
{
"multiline": "consistent",
"singleline": "consistent"
}
],
"react/jsx-wrap-multilines": [
"error",
{
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "ignore"
}
]
}
}
]
}