@zinkawaii/eslint-config 0.4.3 → 0.4.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/dist/index.mjs +19 -5
  2. package/package.json +11 -8
package/dist/index.mjs CHANGED
@@ -105,7 +105,11 @@ var stylistic_default = {
105
105
  }],
106
106
  "style/implicit-arrow-linebreak": "warn",
107
107
  "style/indent-binary-ops": "off",
108
- "style/indent": "off",
108
+ "style/indent": [
109
+ "warn",
110
+ 2,
111
+ { SwitchCase: 1 }
112
+ ],
109
113
  "style/key-spacing": "warn",
110
114
  "style/keyword-spacing": "warn",
111
115
  "style/line-comment-position": "off",
@@ -269,7 +273,7 @@ var vue_default = {
269
273
  multiline: "always"
270
274
  }],
271
275
  "vue/html-end-tags": "error",
272
- "vue/html-indent": ["error", 4],
276
+ "vue/html-indent": ["error", 2],
273
277
  "vue/html-quotes": ["error", "double"],
274
278
  "vue/html-self-closing": ["error", {
275
279
  html: {
@@ -356,7 +360,7 @@ var vue_default = {
356
360
  multiline: "always"
357
361
  }],
358
362
  "vue/html-comment-content-spacing": ["error", "always"],
359
- "vue/html-comment-indent": ["error", 4],
363
+ "vue/html-comment-indent": ["error", 2],
360
364
  "vue/no-deprecated-model-definition": "error",
361
365
  "vue/no-duplicate-attr-inheritance": "error",
362
366
  "vue/no-empty-component-block": "error",
@@ -390,6 +394,14 @@ var vue_default = {
390
394
  "vue/require-macro-variable-name": "error",
391
395
  "vue/require-typed-object-prop": "error",
392
396
  "vue/require-typed-ref": "error",
397
+ "vue/script-indent": [
398
+ "warn",
399
+ 2,
400
+ {
401
+ baseIndent: 1,
402
+ switchCase: 1
403
+ }
404
+ ],
393
405
  "vue/valid-define-options": "error",
394
406
  "vue/v-for-delimiter-style": ["error", "in"],
395
407
  ...Object.fromEntries(["no-useless-concat", "prefer-template"].map((rule) => [`vue/${rule}`, javascript_default.rules[rule]])),
@@ -426,7 +438,6 @@ var vue_default = {
426
438
  "vue/no-setup-props-reactivity-loss": "off",
427
439
  "vue/no-unused-properties": "off",
428
440
  "vue/html-closing-bracket-spacing": "off",
429
- "vue/script-indent": "off",
430
441
  "vue/no-restricted-block": "off",
431
442
  "vue/no-restricted-call-after-await": "off",
432
443
  "vue/no-restricted-class": "off",
@@ -506,7 +517,10 @@ const zin = (options = {}, ...userConfigs) => {
506
517
  ...vue.overrides
507
518
  }
508
519
  }
509
- }, javascript_default, misc_default, stylistic_default, configFused, ...userConfigs);
520
+ }, javascript_default, misc_default, stylistic_default, configFused, ...userConfigs).append({
521
+ files: ["*.vue"],
522
+ rules: { "style/indent": "off" }
523
+ });
510
524
  };
511
525
  //#endregion
512
526
  export { zin as default, zin };
package/package.json CHANGED
@@ -1,27 +1,30 @@
1
1
  {
2
2
  "name": "@zinkawaii/eslint-config",
3
3
  "type": "module",
4
- "version": "0.4.3",
4
+ "version": "0.4.4",
5
5
  "description": "Utakata na Shiawase",
6
6
  "author": "KazariEX",
7
7
  "license": "MIT",
8
- "repository": "zinkawaii/eslint-config",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "zinkawaii/eslint-config"
11
+ },
9
12
  "exports": {
10
13
  ".": "./dist/index.mjs",
11
14
  "./package.json": "./package.json"
12
15
  },
13
- "types": "./dist/index.d.ts",
16
+ "types": "./dist/index.d.mts",
14
17
  "files": [
15
18
  "dist"
16
19
  ],
17
20
  "dependencies": {
18
- "@antfu/eslint-config": "^7.7.0"
21
+ "@antfu/eslint-config": "^9.0.0"
19
22
  },
20
23
  "devDependencies": {
21
- "@zinkawaii/tsconfig": "^0.0.2",
22
- "bumpp": "^10.4.1",
23
- "eslint": "^10.0.3",
24
- "tsdown": "^0.21.0"
24
+ "@zinkawaii/tsconfig": "^0.1.0",
25
+ "bumpp": "^11.1.0",
26
+ "eslint": "^10.5.0",
27
+ "tsdown": "^0.22.2"
25
28
  },
26
29
  "scripts": {
27
30
  "build": "tsdown",