@tb-dev/eslint-config 2.1.1 → 2.2.0

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/dist/index.cjs CHANGED
@@ -373,11 +373,8 @@ async function typescript(options) {
373
373
  "classMethod",
374
374
  "classProperty",
375
375
  "function",
376
- "objectLiteralMethod",
377
376
  "parameter",
378
377
  "parameterProperty",
379
- "typeMethod",
380
- "typeProperty",
381
378
  "variable"
382
379
  ],
383
380
  format: ["camelCase"]
@@ -888,7 +885,13 @@ async function vue(options) {
888
885
  "vue/return-in-emits-validator": "error",
889
886
  "vue/this-in-template": ["error", "never"],
890
887
  "vue/use-v-on-exact": "error",
891
- "vue/v-bind-style": ["error", "shorthand"],
888
+ "vue/v-bind-style": [
889
+ "error",
890
+ "shorthand",
891
+ {
892
+ sameNameShorthand: "always"
893
+ }
894
+ ],
892
895
  "vue/v-for-delimiter-style": ["error", "of"],
893
896
  "vue/v-on-handler-style": "off",
894
897
  "vue/v-on-style": ["error", "shorthand"],
package/dist/index.js CHANGED
@@ -350,11 +350,8 @@ async function typescript(options) {
350
350
  "classMethod",
351
351
  "classProperty",
352
352
  "function",
353
- "objectLiteralMethod",
354
353
  "parameter",
355
354
  "parameterProperty",
356
- "typeMethod",
357
- "typeProperty",
358
355
  "variable"
359
356
  ],
360
357
  format: ["camelCase"]
@@ -865,7 +862,13 @@ async function vue(options) {
865
862
  "vue/return-in-emits-validator": "error",
866
863
  "vue/this-in-template": ["error", "never"],
867
864
  "vue/use-v-on-exact": "error",
868
- "vue/v-bind-style": ["error", "shorthand"],
865
+ "vue/v-bind-style": [
866
+ "error",
867
+ "shorthand",
868
+ {
869
+ sameNameShorthand: "always"
870
+ }
871
+ ],
869
872
  "vue/v-for-delimiter-style": ["error", "of"],
870
873
  "vue/v-on-handler-style": "off",
871
874
  "vue/v-on-style": ["error", "shorthand"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,8 +18,8 @@
18
18
  "*.{?(c|m)@(j|t)s,css,vue,md,json}": "prettier --write"
19
19
  },
20
20
  "dependencies": {
21
- "@typescript-eslint/eslint-plugin": "^7.1.0",
22
- "@typescript-eslint/parser": "^7.1.0",
21
+ "@typescript-eslint/eslint-plugin": "^7.1.1",
22
+ "@typescript-eslint/parser": "^7.1.1",
23
23
  "eslint-config-prettier": "^9.1.0",
24
24
  "eslint-plugin-perfectionist": "^2.5.0",
25
25
  "eslint-plugin-unicorn": "^51.0.1",
@@ -30,14 +30,14 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/eslint-config-prettier": "^6.11.3",
33
- "@types/node": "^20.11.20",
33
+ "@types/node": "^20.11.24",
34
34
  "eslint": "^8.57.0",
35
35
  "husky": "^9.0.11",
36
36
  "lint-staged": "^15.2.2",
37
37
  "prettier": "^3.2.5",
38
38
  "tslib": "^2.6.2",
39
39
  "typescript": "5.3.3",
40
- "vite": "^5.1.4",
40
+ "vite": "^5.1.5",
41
41
  "vite-plugin-dts": "^3.7.3"
42
42
  },
43
43
  "peerDependencies": {