@fewangsit/eslint-config-vue-code-standard 1.0.2 → 1.0.5
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/index.js +43 -1
- package/package.json +16 -14
package/index.js
CHANGED
|
@@ -64,7 +64,14 @@ var vue_default = {
|
|
|
64
64
|
order: ["script[setup]", "script", "template", "style"]
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
|
+
"vue/component-definition-name-casing": ["error", "PascalCase"],
|
|
68
|
+
"vue/component-name-in-template-casing": [
|
|
69
|
+
"error",
|
|
70
|
+
"PascalCase",
|
|
71
|
+
{ registeredComponentsOnly: false }
|
|
72
|
+
],
|
|
67
73
|
"vue/custom-event-name-casing": "error",
|
|
74
|
+
"vue/component-api-style": ["error", ["script-setup", "composition"]],
|
|
68
75
|
"vue/define-emits-declaration": ["error", "type-based"],
|
|
69
76
|
"vue/define-macros-order": [
|
|
70
77
|
"error",
|
|
@@ -87,6 +94,13 @@ var vue_default = {
|
|
|
87
94
|
math: "always"
|
|
88
95
|
}
|
|
89
96
|
],
|
|
97
|
+
"vue/match-component-file-name": [
|
|
98
|
+
"error",
|
|
99
|
+
{
|
|
100
|
+
extensions: ["vue"],
|
|
101
|
+
shouldMatchCase: true
|
|
102
|
+
}
|
|
103
|
+
],
|
|
90
104
|
"vue/max-attributes-per-line": "off",
|
|
91
105
|
"vue/multi-word-component-names": "off",
|
|
92
106
|
"vue/new-line-between-multi-line-property": "error",
|
|
@@ -94,6 +108,7 @@ var vue_default = {
|
|
|
94
108
|
"vue/no-dupe-keys": "error",
|
|
95
109
|
"vue/no-export-in-script-setup": "error",
|
|
96
110
|
"vue/no-lone-template": "error",
|
|
111
|
+
"vue/no-multi-spaces": "error",
|
|
97
112
|
"vue/no-reserved-component-names": "error",
|
|
98
113
|
"vue/no-spaces-around-equal-signs-in-attribute": ["error"],
|
|
99
114
|
"vue/no-static-inline-styles": ["error", { allowBinding: false }],
|
|
@@ -103,6 +118,29 @@ var vue_default = {
|
|
|
103
118
|
"error",
|
|
104
119
|
{ ignoreIncludesComment: false, ignoreStringEscape: false }
|
|
105
120
|
],
|
|
121
|
+
"vue/order-in-components": [
|
|
122
|
+
"error",
|
|
123
|
+
{
|
|
124
|
+
order: [
|
|
125
|
+
["props", "propsData"],
|
|
126
|
+
"emits",
|
|
127
|
+
"model",
|
|
128
|
+
"slots",
|
|
129
|
+
["components", "directives", "filters"],
|
|
130
|
+
"LIFECYCLE_HOOKS",
|
|
131
|
+
"ROUTER_GUARDS",
|
|
132
|
+
"inject",
|
|
133
|
+
"data",
|
|
134
|
+
"computed",
|
|
135
|
+
"provide",
|
|
136
|
+
"methods",
|
|
137
|
+
["watch", "watchQuery"],
|
|
138
|
+
["template", "render"],
|
|
139
|
+
"renderError",
|
|
140
|
+
"expose"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
],
|
|
106
144
|
"vue/padding-line-between-blocks": ["error", "always"],
|
|
107
145
|
"vue/prefer-import-from-vue": "error",
|
|
108
146
|
"vue/prefer-true-attribute-shorthand": ["error", "always"],
|
|
@@ -115,13 +153,17 @@ var vue_default = {
|
|
|
115
153
|
],
|
|
116
154
|
"vue/require-typed-ref": "error",
|
|
117
155
|
"vue/singleline-html-element-content-newline": "off",
|
|
156
|
+
"vue/this-in-template": ["error", "never"],
|
|
157
|
+
"vue/v-bind-style": ["error", "shorthand"],
|
|
118
158
|
"vue/v-on-event-hyphenation": [
|
|
119
159
|
"error",
|
|
120
160
|
"always",
|
|
121
161
|
{
|
|
122
162
|
autofix: true
|
|
123
163
|
}
|
|
124
|
-
]
|
|
164
|
+
],
|
|
165
|
+
"vue/v-on-style": ["error", "shorthand"],
|
|
166
|
+
"vue/v-slot-style": ["error", "shorthand"]
|
|
125
167
|
};
|
|
126
168
|
|
|
127
169
|
// index.js
|
package/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fewangsit/eslint-config-vue-code-standard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A shareable ESLint configuration for standardized Vue TypeScript code for Wangsti FE Developers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.cjs",
|
|
7
7
|
"author": "fewangsit",
|
|
8
8
|
"license": "proprietary",
|
|
9
|
-
"
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"eslint": "
|
|
13
|
-
"eslint
|
|
14
|
-
"eslint
|
|
15
|
-
"eslint-
|
|
16
|
-
"eslint-
|
|
17
|
-
"eslint-plugin-
|
|
18
|
-
"eslint-plugin-
|
|
19
|
-
"eslint-plugin-
|
|
20
|
-
"eslint-plugin-
|
|
21
|
-
"
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@eslint/compat": "^2.0.0",
|
|
11
|
+
"@eslint/js": "^9.39.2",
|
|
12
|
+
"@typescript-eslint/eslint-plugin": "8.52.0",
|
|
13
|
+
"@typescript-eslint/parser": "8.52.0",
|
|
14
|
+
"eslint": "9.39.2",
|
|
15
|
+
"eslint-config-prettier": "10.1.8",
|
|
16
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
17
|
+
"eslint-plugin-css": "0.11.1",
|
|
18
|
+
"eslint-plugin-cypress": "5.2.1",
|
|
19
|
+
"eslint-plugin-import": "^2.31.0",
|
|
20
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
21
|
+
"eslint-plugin-promise": "7.2.1",
|
|
22
|
+
"eslint-plugin-vue": "10.6.2",
|
|
23
|
+
"typescript-eslint": "^8.52.0"
|
|
22
24
|
},
|
|
23
25
|
"module": "index.js",
|
|
24
26
|
"exports": {
|