generated from YummYume/symfony-spa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
136 lines (136 loc) · 3.39 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"env": {
"browser": true,
"es6": true
},
"extends": ["airbnb-base", "eslint:recommended"],
"ignorePatterns": ["**/node_modules/*"],
"overrides": [
{
"extends": [
"airbnb-typescript/base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"files": ["*.ts", "*.tsx", "*.vue", "*.svelte"],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"rules": {
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/no-extra-semi": ["error"],
"@typescript-eslint/no-unnecessary-condition": ["error"],
"@typescript-eslint/no-unnecessary-type-arguments": ["error"],
"@typescript-eslint/no-unnecessary-type-assertion": ["error"],
"@typescript-eslint/no-unnecessary-type-constraint": ["error"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/space-infix-ops": ["error"],
"@typescript-eslint/unbound-method": ["off"],
"indent": "off"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018
},
"plugins": ["@typescript-eslint", "import"],
"rules": {
"arrow-body-style": ["off"],
"class-methods-use-this": ["off"],
"global-require": ["off"],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"svelte": "never",
"ts": "never",
"tsx": "never",
"vue": "never"
}
],
"import/first": ["error"],
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"import/no-absolute-path": ["error"],
"import/no-duplicates": [
"error",
{
"considerQueryString": true
}
],
"import/no-relative-packages": ["error"],
"import/no-unresolved": [
"error",
{
"ignore": ["\\.scss$", "\\.html\\?raw$"]
}
],
"import/no-useless-path-segments": [
"error",
{
"noUselessIndex": true
}
],
"import/no-webpack-loader-syntax": ["off"],
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": false,
"order": "asc"
},
"groups": ["external", "builtin", "internal", "sibling", "parent", "index", "object", "type"],
"newlines-between": "always",
"pathGroups": [
{
"group": "internal",
"pattern": "$(src|component|server|store)/*"
},
{
"group": "type",
"pattern": "$type/*"
}
]
}
],
"import/prefer-default-export": ["off"],
"indent": ["error", 2],
"max-len": [
"error",
{
"code": 120,
"ignoreTemplateLiterals": true
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-underscore-dangle": ["error"],
"no-var": ["error"],
"quotes": ["error", "single"],
"spaced-comment": ["error"]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".js"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "tsconfig.json"
}
}
}
}