@lenne.tech/eslint-config-vue 0.0.10 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +19 -13
- package/package.json +3 -1
package/index.js
CHANGED
|
@@ -20,9 +20,15 @@ module.exports = {
|
|
|
20
20
|
"plugin:vue/vue3-recommended",
|
|
21
21
|
"plugin:import/typescript",
|
|
22
22
|
"plugin:@typescript-eslint/recommended",
|
|
23
|
+
"plugin:perfectionist/recommended-natural",
|
|
24
|
+
"plugin:prettier/recommended"
|
|
23
25
|
],
|
|
24
|
-
plugins: ["vitest"],
|
|
26
|
+
plugins: ["vitest", "prettier"],
|
|
25
27
|
rules: {
|
|
28
|
+
"prettier/prettier": "error",
|
|
29
|
+
|
|
30
|
+
"perfectionist/sort-classes": "off",
|
|
31
|
+
|
|
26
32
|
"vue/max-attributes-per-line": "off",
|
|
27
33
|
"vue/no-v-html": "off",
|
|
28
34
|
"vue/require-prop-types": "off",
|
|
@@ -165,7 +171,17 @@ module.exports = {
|
|
|
165
171
|
],
|
|
166
172
|
"@typescript-eslint/member-delimiter-style": [
|
|
167
173
|
"error",
|
|
168
|
-
{
|
|
174
|
+
{
|
|
175
|
+
multiline: {
|
|
176
|
+
delimiter: "semi",
|
|
177
|
+
requireLast: true,
|
|
178
|
+
},
|
|
179
|
+
singleline: {
|
|
180
|
+
delimiter: "semi",
|
|
181
|
+
requireLast: false,
|
|
182
|
+
},
|
|
183
|
+
multilineDetection: "brackets",
|
|
184
|
+
},
|
|
169
185
|
],
|
|
170
186
|
"@typescript-eslint/type-annotation-spacing": ["error", {}],
|
|
171
187
|
"@typescript-eslint/consistent-type-imports": [
|
|
@@ -274,18 +290,8 @@ module.exports = {
|
|
|
274
290
|
{ exceptAfterSingleLine: true },
|
|
275
291
|
],
|
|
276
292
|
"no-console": ["error", { allow: ["info", "debug", "warn", "error"] }],
|
|
277
|
-
curly: ["error"],
|
|
293
|
+
curly: ["error", "all"],
|
|
278
294
|
"max-statements-per-line": ["error", { max: 1 }],
|
|
279
|
-
"sort-imports": [
|
|
280
|
-
"error",
|
|
281
|
-
{
|
|
282
|
-
ignoreCase: false,
|
|
283
|
-
ignoreDeclarationSort: true,
|
|
284
|
-
ignoreMemberSort: false,
|
|
285
|
-
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
|
|
286
|
-
allowSeparatedGroups: false,
|
|
287
|
-
},
|
|
288
|
-
],
|
|
289
295
|
|
|
290
296
|
// off
|
|
291
297
|
"@typescript-eslint/consistent-indexed-object-style": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/eslint-config-vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "ESLint config of lenne.Tech for Vue",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"@typescript-eslint/eslint-plugin": "6.7.0",
|
|
21
21
|
"@typescript-eslint/parser": "6.7.0",
|
|
22
22
|
"eslint-config-prettier": "9.0.0",
|
|
23
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
23
24
|
"eslint-plugin-import": "2.28.1",
|
|
25
|
+
"eslint-plugin-perfectionist": "^2.4.2",
|
|
24
26
|
"eslint-plugin-vitest": "0.3.1",
|
|
25
27
|
"eslint-plugin-vue": "9.17.0",
|
|
26
28
|
"functions-have-names": "1.2.3"
|