@lenne.tech/eslint-config-vue 1.0.3 → 1.0.4
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 +5 -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,7 @@ export default [
|
|
|
16
15
|
".husky/",
|
|
17
16
|
"extras/",
|
|
18
17
|
".nuxt/",
|
|
18
|
+
"*/*/.nuxt/",
|
|
19
19
|
],
|
|
20
20
|
},
|
|
21
21
|
{
|
|
@@ -33,13 +33,12 @@ export default [
|
|
|
33
33
|
"@typescript-eslint": typescript,
|
|
34
34
|
perfectionist,
|
|
35
35
|
"@stylistic": stylistic,
|
|
36
|
-
prettier,
|
|
37
36
|
},
|
|
38
37
|
rules: {
|
|
39
38
|
...perfectionist.configs["recommended-natural"].rules,
|
|
40
39
|
...vue.configs["vue3-recommended"].rules,
|
|
41
40
|
...typescript.configs["recommended"].rules,
|
|
42
|
-
|
|
41
|
+
|
|
43
42
|
|
|
44
43
|
"perfectionist/sort-classes": "off",
|
|
45
44
|
"perfectionist/sort-vue-attributes": "off",
|
|
@@ -205,7 +204,7 @@ export default [
|
|
|
205
204
|
],
|
|
206
205
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
207
206
|
"@typescript-eslint/prefer-ts-expect-error": "error",
|
|
208
|
-
"@typescript-eslint/no-require-imports": "
|
|
207
|
+
"@typescript-eslint/no-require-imports": "warn",
|
|
209
208
|
// Override JS
|
|
210
209
|
"no-useless-constructor": "off",
|
|
211
210
|
indent: "off",
|
|
@@ -302,6 +301,8 @@ export default [
|
|
|
302
301
|
curly: ["error", "all"],
|
|
303
302
|
"max-statements-per-line": ["error", { max: 1 }],
|
|
304
303
|
|
|
304
|
+
"@typescript-eslint/no-unused-vars": "warn",
|
|
305
|
+
|
|
305
306
|
// off
|
|
306
307
|
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
307
308
|
"@typescript-eslint/naming-convention": "off",
|
|
@@ -317,7 +318,6 @@ export default [
|
|
|
317
318
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
318
319
|
"@typescript-eslint/ban-types": "off",
|
|
319
320
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
320
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
321
321
|
},
|
|
322
322
|
},
|
|
323
323
|
];
|
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.4",
|
|
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": {
|