@eienjs/eslint-config 2.0.0 → 2.0.1
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/LICENSE +1 -1
- package/dist/cli/constants_generated.js +2 -2
- package/dist/configs/javascript.js +1 -6
- package/dist/configs/pnpm.js +1 -4
- package/dist/configs/vue.js +15 -7
- package/dist/package.js +1 -1
- package/dist/typegen.d.ts +392 -173
- package/package.json +62 -34
package/LICENSE
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region src/cli/constants_generated.ts
|
|
2
2
|
const versionsMap = {
|
|
3
3
|
"@adonisjs/eslint-plugin": "^2.2.2",
|
|
4
|
-
"@nuxt/eslint-plugin": "^1.
|
|
4
|
+
"@nuxt/eslint-plugin": "^1.16.0",
|
|
5
5
|
"astro-eslint-parser": "^1.4.0",
|
|
6
|
-
"eslint": "^10.4.
|
|
6
|
+
"eslint": "^10.4.1",
|
|
7
7
|
"eslint-plugin-astro": "^1.7.0",
|
|
8
8
|
"eslint-plugin-format": "^2.0.1",
|
|
9
9
|
"prettier-plugin-astro": "^0.14.1"
|
|
@@ -203,12 +203,7 @@ function javascript(options = {}) {
|
|
|
203
203
|
allowTaggedTemplates: true,
|
|
204
204
|
allowTernary: true
|
|
205
205
|
}],
|
|
206
|
-
"no-unused-vars":
|
|
207
|
-
args: "none",
|
|
208
|
-
caughtErrors: "none",
|
|
209
|
-
ignoreRestSiblings: true,
|
|
210
|
-
vars: "all"
|
|
211
|
-
}],
|
|
206
|
+
"no-unused-vars": "off",
|
|
212
207
|
"no-use-before-define": ["error", {
|
|
213
208
|
classes: false,
|
|
214
209
|
functions: false,
|
package/dist/configs/pnpm.js
CHANGED
|
@@ -22,10 +22,7 @@ async function pnpm(options) {
|
|
|
22
22
|
name: "eienjs/pnpm/package-json",
|
|
23
23
|
plugins: { pnpm: pluginPnpm },
|
|
24
24
|
rules: {
|
|
25
|
-
...catalogs ? { "pnpm/json-enforce-catalog":
|
|
26
|
-
autofix: !isInEditor,
|
|
27
|
-
ignores: ["@types/vscode"]
|
|
28
|
-
}] } : {},
|
|
25
|
+
...catalogs ? { "pnpm/json-enforce-catalog": "off" } : {},
|
|
29
26
|
"pnpm/json-prefer-workspace-settings": ["error", { autofix: !isInEditor }],
|
|
30
27
|
"pnpm/json-valid-catalog": ["error", { autofix: !isInEditor }]
|
|
31
28
|
}
|
package/dist/configs/vue.js
CHANGED
|
@@ -83,19 +83,21 @@ async function vue(options = {}) {
|
|
|
83
83
|
],
|
|
84
84
|
"vue/component-options-name-casing": ["error", "PascalCase"],
|
|
85
85
|
"vue/custom-event-name-casing": ["error", "camelCase"],
|
|
86
|
-
"vue/define-macros-order": ["error", {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
"vue/define-macros-order": ["error", {
|
|
87
|
+
defineExposeLast: true,
|
|
88
|
+
order: [
|
|
89
|
+
"defineOptions",
|
|
90
|
+
"defineProps",
|
|
91
|
+
"defineEmits",
|
|
92
|
+
"defineSlots"
|
|
93
|
+
]
|
|
94
|
+
}],
|
|
92
95
|
"vue/define-props-declaration": "error",
|
|
93
96
|
"vue/dot-location": ["error", "property"],
|
|
94
97
|
"vue/dot-notation": ["error", { allowKeywords: true }],
|
|
95
98
|
"vue/eqeqeq": ["error", "smart"],
|
|
96
99
|
"vue/html-indent": ["error", indent],
|
|
97
100
|
"vue/html-quotes": ["error", "double"],
|
|
98
|
-
"vue/max-attributes-per-line": "off",
|
|
99
101
|
"vue/multi-word-component-names": "off",
|
|
100
102
|
"vue/no-dupe-keys": "off",
|
|
101
103
|
"vue/no-empty-component-block": "error",
|
|
@@ -176,9 +178,15 @@ async function vue(options = {}) {
|
|
|
176
178
|
after: true,
|
|
177
179
|
before: true
|
|
178
180
|
}],
|
|
181
|
+
"vue/max-attributes-per-line": ["error", {
|
|
182
|
+
multiline: 1,
|
|
183
|
+
singleline: 3
|
|
184
|
+
}],
|
|
179
185
|
"vue/max-len": ["error", {
|
|
180
186
|
code: maxLineLength,
|
|
181
187
|
comments: maxLineLength,
|
|
188
|
+
ignoreHTMLAttributeValues: true,
|
|
189
|
+
ignoreHTMLTextContents: true,
|
|
182
190
|
template: maxLineLength
|
|
183
191
|
}],
|
|
184
192
|
"vue/object-curly-newline": "off",
|
package/dist/package.js
CHANGED