@lenne.tech/eslint-config-vue 2.1.2 → 2.1.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 +15 -2
  2. package/package.json +8 -10
package/index.js CHANGED
@@ -5,6 +5,8 @@ import tsParser from "@typescript-eslint/parser";
5
5
  import typescript from "@typescript-eslint/eslint-plugin";
6
6
  import perfectionist from "eslint-plugin-perfectionist";
7
7
  import stylistic from "@stylistic/eslint-plugin";
8
+ import vitest from '@vitest/eslint-plugin';
9
+ import eslintConfigPrettier from 'eslint-config-prettier';
8
10
 
9
11
  export default [
10
12
  {
@@ -46,12 +48,14 @@ export default [
46
48
  },
47
49
  },
48
50
  plugins: {
51
+ vitest,
49
52
  vue,
50
53
  "@typescript-eslint": typescript,
51
54
  perfectionist,
52
55
  "@stylistic": stylistic,
53
56
  },
54
57
  rules: {
58
+ ...vitest.configs.recommended.rules,
55
59
  ...(perfectionist.configs["recommended-natural"]?.rules || {}),
56
60
  ...(vue.configs?.["recommended"]?.rules || {}),
57
61
  ...(typescript.configs?.["recommended"]?.rules || {}),
@@ -139,7 +143,7 @@ export default [
139
143
  "vue/object-curly-spacing": ["error", "always"],
140
144
  "vue/object-property-newline": [
141
145
  "error",
142
- { allowMultiplePropertiesPerLine: true },
146
+ { allowAllPropertiesOnSameLine: false },
143
147
  ],
144
148
  "vue/object-shorthand": [
145
149
  "error",
@@ -318,7 +322,14 @@ export default [
318
322
  curly: ["error", "all"],
319
323
  "max-statements-per-line": ["error", { max: 1 }],
320
324
 
321
- "@typescript-eslint/no-unused-vars": "warn",
325
+ "@typescript-eslint/no-unused-vars": [
326
+ "warn",
327
+ {
328
+ argsIgnorePattern: "^_",
329
+ varsIgnorePattern: "^_",
330
+ caughtErrorsIgnorePattern: "^_",
331
+ },
332
+ ],
322
333
 
323
334
  // off
324
335
  "@typescript-eslint/consistent-indexed-object-style": "off",
@@ -337,4 +348,6 @@ export default [
337
348
  "@typescript-eslint/triple-slash-reference": "off",
338
349
  },
339
350
  },
351
+ // Prettier config must be last to override conflicting rules
352
+ eslintConfigPrettier,
340
353
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/eslint-config-vue",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "ESLint config of lenne.Tech for Vue",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -19,20 +19,18 @@
19
19
  "eslint": ">=9.31.0"
20
20
  },
21
21
  "dependencies": {
22
- "@stylistic/eslint-plugin": "5.2.2",
23
- "@typescript-eslint/eslint-plugin": "8.38.0",
24
- "@typescript-eslint/parser": "8.38.0",
22
+ "@stylistic/eslint-plugin": "5.4.0",
23
+ "@typescript-eslint/eslint-plugin": "8.46.1",
24
+ "@typescript-eslint/parser": "8.46.1",
25
+ "@vitest/eslint-plugin": "1.3.20",
25
26
  "eslint-config-prettier": "10.1.8",
26
27
  "eslint-plugin-import": "2.32.0",
27
- "eslint-plugin-perfectionist": "4.15.0",
28
- "eslint-plugin-prettier": "5.5.3",
29
- "eslint-plugin-vitest": "0.5.4",
30
- "eslint-plugin-vue": "10.3.0",
31
- "functions-have-names": "1.2.3",
28
+ "eslint-plugin-perfectionist": "4.15.1",
29
+ "eslint-plugin-vue": "10.5.1",
32
30
  "vue-eslint-parser": "10.2.0"
33
31
  },
34
32
  "devDependencies": {
35
- "eslint": "9.31.0",
33
+ "eslint": "9.37.0",
36
34
  "watch": "1.0.2"
37
35
  }
38
36
  }