@tb-dev/eslint-config 2.1.2 → 3.0.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 +10 -4
- package/dist/index.js +10 -4
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -713,8 +713,8 @@ async function vue(options) {
|
|
|
713
713
|
],
|
|
714
714
|
"vue/component-api-style": ["error", ["script-setup"]],
|
|
715
715
|
"vue/component-definition-name-casing": ["error", "PascalCase"],
|
|
716
|
-
"vue/component-name-in-template-casing": ["error", "
|
|
717
|
-
"vue/custom-event-name-casing": ["error", "
|
|
716
|
+
"vue/component-name-in-template-casing": ["error", "kebab-case"],
|
|
717
|
+
"vue/custom-event-name-casing": ["error", "kebab-case"],
|
|
718
718
|
"vue/define-emits-declaration": ["error", "type-based"],
|
|
719
719
|
"vue/define-macros-order": [
|
|
720
720
|
"error",
|
|
@@ -863,7 +863,7 @@ async function vue(options) {
|
|
|
863
863
|
allowProps: false
|
|
864
864
|
}
|
|
865
865
|
],
|
|
866
|
-
"vue/require-explicit-slots": "
|
|
866
|
+
"vue/require-explicit-slots": "error",
|
|
867
867
|
"vue/require-macro-variable-name": [
|
|
868
868
|
"error",
|
|
869
869
|
{
|
|
@@ -885,7 +885,13 @@ async function vue(options) {
|
|
|
885
885
|
"vue/return-in-emits-validator": "error",
|
|
886
886
|
"vue/this-in-template": ["error", "never"],
|
|
887
887
|
"vue/use-v-on-exact": "error",
|
|
888
|
-
"vue/v-bind-style": [
|
|
888
|
+
"vue/v-bind-style": [
|
|
889
|
+
"error",
|
|
890
|
+
"shorthand",
|
|
891
|
+
{
|
|
892
|
+
sameNameShorthand: "always"
|
|
893
|
+
}
|
|
894
|
+
],
|
|
889
895
|
"vue/v-for-delimiter-style": ["error", "of"],
|
|
890
896
|
"vue/v-on-handler-style": "off",
|
|
891
897
|
"vue/v-on-style": ["error", "shorthand"],
|
package/dist/index.js
CHANGED
|
@@ -690,8 +690,8 @@ async function vue(options) {
|
|
|
690
690
|
],
|
|
691
691
|
"vue/component-api-style": ["error", ["script-setup"]],
|
|
692
692
|
"vue/component-definition-name-casing": ["error", "PascalCase"],
|
|
693
|
-
"vue/component-name-in-template-casing": ["error", "
|
|
694
|
-
"vue/custom-event-name-casing": ["error", "
|
|
693
|
+
"vue/component-name-in-template-casing": ["error", "kebab-case"],
|
|
694
|
+
"vue/custom-event-name-casing": ["error", "kebab-case"],
|
|
695
695
|
"vue/define-emits-declaration": ["error", "type-based"],
|
|
696
696
|
"vue/define-macros-order": [
|
|
697
697
|
"error",
|
|
@@ -840,7 +840,7 @@ async function vue(options) {
|
|
|
840
840
|
allowProps: false
|
|
841
841
|
}
|
|
842
842
|
],
|
|
843
|
-
"vue/require-explicit-slots": "
|
|
843
|
+
"vue/require-explicit-slots": "error",
|
|
844
844
|
"vue/require-macro-variable-name": [
|
|
845
845
|
"error",
|
|
846
846
|
{
|
|
@@ -862,7 +862,13 @@ async function vue(options) {
|
|
|
862
862
|
"vue/return-in-emits-validator": "error",
|
|
863
863
|
"vue/this-in-template": ["error", "never"],
|
|
864
864
|
"vue/use-v-on-exact": "error",
|
|
865
|
-
"vue/v-bind-style": [
|
|
865
|
+
"vue/v-bind-style": [
|
|
866
|
+
"error",
|
|
867
|
+
"shorthand",
|
|
868
|
+
{
|
|
869
|
+
sameNameShorthand: "always"
|
|
870
|
+
}
|
|
871
|
+
],
|
|
866
872
|
"vue/v-for-delimiter-style": ["error", "of"],
|
|
867
873
|
"vue/v-on-handler-style": "off",
|
|
868
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": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,10 +18,10 @@
|
|
|
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.
|
|
22
|
-
"@typescript-eslint/parser": "^7.1.
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
22
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
23
23
|
"eslint-config-prettier": "^9.1.0",
|
|
24
|
-
"eslint-plugin-perfectionist": "^2.
|
|
24
|
+
"eslint-plugin-perfectionist": "^2.6.0",
|
|
25
25
|
"eslint-plugin-unicorn": "^51.0.1",
|
|
26
26
|
"eslint-plugin-vitest": "^0.3.22",
|
|
27
27
|
"eslint-plugin-vue": "^9.22.0",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
33
|
-
"@types/node": "^20.11.
|
|
33
|
+
"@types/node": "^20.11.25",
|
|
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
|
-
"typescript": "5.
|
|
40
|
-
"vite": "^5.1.
|
|
39
|
+
"typescript": "^5.4.2",
|
|
40
|
+
"vite": "^5.1.5",
|
|
41
41
|
"vite-plugin-dts": "^3.7.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|