@lenne.tech/eslint-config-vue 1.0.3 → 1.0.5
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 +22 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import vueParser from "vue-eslint-parser";
|
|
|
4
4
|
import tsParser from "@typescript-eslint/parser";
|
|
5
5
|
import typescript from "@typescript-eslint/eslint-plugin";
|
|
6
6
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
7
|
-
import prettier from "eslint-plugin-prettier";
|
|
8
7
|
import stylistic from "@stylistic/eslint-plugin";
|
|
9
8
|
|
|
10
9
|
export default [
|
|
@@ -16,6 +15,24 @@ export default [
|
|
|
16
15
|
".husky/",
|
|
17
16
|
"extras/",
|
|
18
17
|
".nuxt/",
|
|
18
|
+
"*/*/.nuxt/",
|
|
19
|
+
'*.md',
|
|
20
|
+
'.gitignore',
|
|
21
|
+
'.eslintrc',
|
|
22
|
+
'package.json',
|
|
23
|
+
'package-lock.json',
|
|
24
|
+
'pnpm-lock.yaml',
|
|
25
|
+
'vitest.config.js',
|
|
26
|
+
'tailwind.config.js',
|
|
27
|
+
'.lintstagedrc',
|
|
28
|
+
'yarn.lock',
|
|
29
|
+
'.gitlab-ci.yml',
|
|
30
|
+
'lerna.json',
|
|
31
|
+
'assets/**',
|
|
32
|
+
'.output',
|
|
33
|
+
'playwright-report',
|
|
34
|
+
'.vscode',
|
|
35
|
+
'test-results',
|
|
19
36
|
],
|
|
20
37
|
},
|
|
21
38
|
{
|
|
@@ -33,13 +50,12 @@ export default [
|
|
|
33
50
|
"@typescript-eslint": typescript,
|
|
34
51
|
perfectionist,
|
|
35
52
|
"@stylistic": stylistic,
|
|
36
|
-
prettier,
|
|
37
53
|
},
|
|
38
54
|
rules: {
|
|
39
55
|
...perfectionist.configs["recommended-natural"].rules,
|
|
40
56
|
...vue.configs["vue3-recommended"].rules,
|
|
41
57
|
...typescript.configs["recommended"].rules,
|
|
42
|
-
|
|
58
|
+
|
|
43
59
|
|
|
44
60
|
"perfectionist/sort-classes": "off",
|
|
45
61
|
"perfectionist/sort-vue-attributes": "off",
|
|
@@ -205,7 +221,7 @@ export default [
|
|
|
205
221
|
],
|
|
206
222
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
207
223
|
"@typescript-eslint/prefer-ts-expect-error": "error",
|
|
208
|
-
"@typescript-eslint/no-require-imports": "
|
|
224
|
+
"@typescript-eslint/no-require-imports": "warn",
|
|
209
225
|
// Override JS
|
|
210
226
|
"no-useless-constructor": "off",
|
|
211
227
|
indent: "off",
|
|
@@ -302,6 +318,8 @@ export default [
|
|
|
302
318
|
curly: ["error", "all"],
|
|
303
319
|
"max-statements-per-line": ["error", { max: 1 }],
|
|
304
320
|
|
|
321
|
+
"@typescript-eslint/no-unused-vars": "warn",
|
|
322
|
+
|
|
305
323
|
// off
|
|
306
324
|
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
307
325
|
"@typescript-eslint/naming-convention": "off",
|
|
@@ -317,7 +335,6 @@ export default [
|
|
|
317
335
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
318
336
|
"@typescript-eslint/ban-types": "off",
|
|
319
337
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
320
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
321
338
|
},
|
|
322
339
|
},
|
|
323
340
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/eslint-config-vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "ESLint config of lenne.Tech for Vue",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"type": "module",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"watch": "watch 'yalc push --private'",
|
|
15
|
+
"watch": "watch 'npx yalc push --private'",
|
|
16
16
|
"reinit": "rimraf package-lock.json && rimraf node_modules && npm cache clean --force && npm i"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|