@lenne.tech/eslint-config-vue 1.0.2 → 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.
Files changed (2) hide show
  1. package/index.js +16 -6
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -4,12 +4,22 @@ 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 [
11
10
  {
12
- files: ["*.ts"],
11
+ ignores: [
12
+ "dist/",
13
+ ".yalc/",
14
+ "node_modules/",
15
+ ".husky/",
16
+ "extras/",
17
+ ".nuxt/",
18
+ "*/*/.nuxt/",
19
+ ],
20
+ },
21
+ {
22
+ files: ["*.ts", "*.js", "*.vue", "**/*.ts", "**/*.js", "**/*.vue"],
13
23
  languageOptions: {
14
24
  parser: vueParser,
15
25
  parserOptions: {
@@ -23,13 +33,12 @@ export default [
23
33
  "@typescript-eslint": typescript,
24
34
  perfectionist,
25
35
  "@stylistic": stylistic,
26
- prettier,
27
36
  },
28
37
  rules: {
29
38
  ...perfectionist.configs["recommended-natural"].rules,
30
39
  ...vue.configs["vue3-recommended"].rules,
31
40
  ...typescript.configs["recommended"].rules,
32
- "prettier/prettier": "error",
41
+
33
42
 
34
43
  "perfectionist/sort-classes": "off",
35
44
  "perfectionist/sort-vue-attributes": "off",
@@ -195,7 +204,7 @@ export default [
195
204
  ],
196
205
  "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
197
206
  "@typescript-eslint/prefer-ts-expect-error": "error",
198
- "@typescript-eslint/no-require-imports": "error",
207
+ "@typescript-eslint/no-require-imports": "warn",
199
208
  // Override JS
200
209
  "no-useless-constructor": "off",
201
210
  indent: "off",
@@ -292,6 +301,8 @@ export default [
292
301
  curly: ["error", "all"],
293
302
  "max-statements-per-line": ["error", { max: 1 }],
294
303
 
304
+ "@typescript-eslint/no-unused-vars": "warn",
305
+
295
306
  // off
296
307
  "@typescript-eslint/consistent-indexed-object-style": "off",
297
308
  "@typescript-eslint/naming-convention": "off",
@@ -307,7 +318,6 @@ export default [
307
318
  "@typescript-eslint/explicit-module-boundary-types": "off",
308
319
  "@typescript-eslint/ban-types": "off",
309
320
  "@typescript-eslint/triple-slash-reference": "off",
310
- "@typescript-eslint/no-unused-vars": "off",
311
321
  },
312
322
  },
313
323
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/eslint-config-vue",
3
- "version": "1.0.2",
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": {