-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
112 lines (112 loc) · 3.22 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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"airbnb-base",
"airbnb-typescript",
"airbnb-typescript",
"plugin:storybook/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": [
"filenames-simple",
"unused-imports",
"import",
"modules-newlines",
"@typescript-eslint"
],
"env": {
"node": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".d.ts", ".tsx"]
},
"typescript": {
"project": "./tsconfig.json"
},
"alias": {
"map": [
["@", "./src"],
["@app", "./src/app"],
["@features", "./src/features"],
["@entities", "./src/entities"],
["@ui", "./src/shared/ui"],
["@lib", "./src/shared/lib"]
],
"extensions": [".js", ".jsx", ".ts", ".d.ts", ".tsx"]
}
}
},
"rules": {
"unused-imports/no-unused-imports": "error",
"no-restricted-globals": "off",
"react/jsx-filename-extension": [0],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 4],
"brace-style": "error",
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"object-property-newline": "error",
"object-curly-spacing": ["error", "always"],
"modules-newlines/import-declaration-newline": "error",
"modules-newlines/export-declaration-newline": "error",
"object-curly-newline": ["error"],
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "never",
"pathGroupsExcludedImportTypes": ["builtin"],
"groups": ["builtin", "external", "internal"]
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"import/prefer-default-export": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "off",
"import/no-extraneous-dependencies": "off",
"prefer-destructuring": "off",
"linebreak-style": ["error", "windows"],
"complexity": ["error", 10],
"import/extensions": [
"error",
"ignorePackages",
{
"": "never",
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"ignorePatterns": [
"dist",
"node_modules",
".eslintrc.cjs",
"vite.config.ts"
]
}