@lenne.tech/eslint-config-vue 0.0.10 → 0.0.12

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 +13 -12
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -20,6 +20,7 @@ module.exports = {
20
20
  "plugin:vue/vue3-recommended",
21
21
  "plugin:import/typescript",
22
22
  "plugin:@typescript-eslint/recommended",
23
+ "plugin:perfectionist/recommended-natural"
23
24
  ],
24
25
  plugins: ["vitest"],
25
26
  rules: {
@@ -165,7 +166,17 @@ module.exports = {
165
166
  ],
166
167
  "@typescript-eslint/member-delimiter-style": [
167
168
  "error",
168
- { multiline: { delimiter: "semi" } },
169
+ {
170
+ multiline: {
171
+ delimiter: "semi",
172
+ requireLast: true,
173
+ },
174
+ singleline: {
175
+ delimiter: "semi",
176
+ requireLast: false,
177
+ },
178
+ multilineDetection: "brackets",
179
+ },
169
180
  ],
170
181
  "@typescript-eslint/type-annotation-spacing": ["error", {}],
171
182
  "@typescript-eslint/consistent-type-imports": [
@@ -274,18 +285,8 @@ module.exports = {
274
285
  { exceptAfterSingleLine: true },
275
286
  ],
276
287
  "no-console": ["error", { allow: ["info", "debug", "warn", "error"] }],
277
- curly: ["error"],
288
+ curly: ["error", "all"],
278
289
  "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
290
 
290
291
  // off
291
292
  "@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.10",
3
+ "version": "0.0.12",
4
4
  "description": "ESLint config of lenne.Tech for Vue",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -21,6 +21,7 @@
21
21
  "@typescript-eslint/parser": "6.7.0",
22
22
  "eslint-config-prettier": "9.0.0",
23
23
  "eslint-plugin-import": "2.28.1",
24
+ "eslint-plugin-perfectionist": "^2.4.2",
24
25
  "eslint-plugin-vitest": "0.3.1",
25
26
  "eslint-plugin-vue": "9.17.0",
26
27
  "functions-have-names": "1.2.3"