@marcrock22/veslint 0.31.0 → 0.32.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/README.md +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ Directive comments work as in ESLint 10: `eslint-disable`, `eslint-enable`, `esl
|
|
|
99
99
|
|
|
100
100
|
## Rules
|
|
101
101
|
|
|
102
|
-
veslint has **
|
|
102
|
+
veslint has **712 rules**, each with all its options, fixes and suggestions:
|
|
103
103
|
|
|
104
104
|
<details>
|
|
105
105
|
<summary><b>ESLint 10.15.0</b>: 139 rules</summary>
|
|
@@ -137,9 +137,9 @@ veslint has **619 rules**, each with all its options, fixes and suggestions:
|
|
|
137
137
|
</details>
|
|
138
138
|
|
|
139
139
|
<details>
|
|
140
|
-
<summary><b>eslint-plugin-vue 10.12.1</b> (the templates and scripts of <code>.vue</code> files, and the components of TypeScript files):
|
|
140
|
+
<summary><b>eslint-plugin-vue 10.12.1</b> (the templates and scripts of <code>.vue</code> files, and the components of TypeScript files): 254 rules</summary>
|
|
141
141
|
|
|
142
|
-
`vue/array-bracket-newline`, `vue/array-bracket-spacing`, `vue/array-element-newline`, `vue/arrow-spacing`, `vue/attribute-hyphenation`, `vue/block-spacing`, `vue/brace-style`, `vue/camelcase`, `vue/comma-dangle`, `vue/comma-spacing`, `vue/comma-style`, `vue/comment-directive`, `vue/component-definition-name-casing`, `vue/component-options-name-casing`, `vue/define-emits-declaration`, `vue/define-props-declaration`, `vue/define-props-destructuring`, `vue/dot-location`, `vue/dot-notation`, `vue/eqeqeq`, `vue/first-attribute-linebreak`, `vue/func-call-spacing`, `vue/html-button-has-type`, `vue/html-closing-bracket-newline`, `vue/html-closing-bracket-spacing`, `vue/html-end-tags`, `vue/html-quotes`, `vue/jsx-uses-vars`, `vue/key-spacing`, `vue/keyword-spacing`, `vue/match-component-import-name`, `vue/max-lines-per-block`, `vue/max-props`, `vue/max-template-depth`, `vue/multiline-ternary`, `vue/mustache-interpolation-spacing`, `vue/no-arrow-functions-in-watch`, `vue/no-child-content`, `vue/no-computed-properties-in-data`, `vue/no-console`, `vue/no-constant-condition`, `vue/no-content-outside-block`, `vue/no-custom-modifiers-on-v-model`, `vue/no-define-model-default`, `vue/no-deprecated-data-object-declaration`, `vue/no-deprecated-delete-set`, `vue/no-deprecated-destroyed-lifecycle`, `vue/no-deprecated-events-api`, `vue/no-deprecated-filter`, `vue/no-deprecated-functional-template`, `vue/no-deprecated-html-element-is`, `vue/no-deprecated-inline-template`, `vue/no-deprecated-props-default-this`, `vue/no-deprecated-router-link-tag-prop`, `vue/no-deprecated-scope-attribute`, `vue/no-deprecated-slot-attribute`, `vue/no-deprecated-slot-scope-attribute`, `vue/no-deprecated-v-bind-sync`, `vue/no-deprecated-v-is`, `vue/no-deprecated-v-on-native-modifier`, `vue/no-deprecated-v-on-number-modifiers`, `vue/no-deprecated-vue-config-keycodes`, `vue/no-dupe-v-else-if`, `vue/no-duplicate-attributes`, `vue/no-empty-component-block`, `vue/no-empty-pattern`, `vue/no-export-in-script-setup`, `vue/no-extra-parens`, `vue/no-implicit-coercion`, `vue/no-import-compiler-macros`, `vue/no-literals-in-template`, `vue/no-lone-template`, `vue/no-loss-of-precision`, `vue/no-multiple-objects-in-class`, `vue/no-multiple-slot-args`, `vue/no-negated-condition`, `vue/no-parsing-error`, `vue/no-props-shadow`, `vue/no-reserved-keys`, `vue/no-reserved-props`, `vue/no-restricted-block`, `vue/no-restricted-class`, `vue/no-restricted-html-elements`, `vue/no-restricted-static-attribute`, `vue/no-restricted-syntax`, `vue/no-restricted-v-bind`, `vue/no-restricted-v-on`, `vue/no-root-v-if`, `vue/no-shared-component-data`, `vue/no-spaces-around-equal-signs-in-attribute`, `vue/no-sparse-arrays`, `vue/no-static-inline-styles`, `vue/no-template-key`, `vue/no-template-target-blank`, `vue/no-textarea-mustache`, `vue/no-this-in-before-route-enter`, `vue/no-unused-vars`, `vue/no-use-v-else-with-v-for`, `vue/no-use-v-if-with-v-for`, `vue/no-useless-concat`, `vue/no-useless-template-attributes`, `vue/no-useless-v-bind`, `vue/no-v-for-template-key`, `vue/no-v-for-template-key-on-child`, `vue/no-v-html`, `vue/no-v-model-argument`, `vue/no-v-text`, `vue/no-v-text-v-html-on-component`, `vue/object-curly-newline`, `vue/object-curly-spacing`, `vue/object-property-newline`, `vue/object-shorthand`, `vue/one-component-per-file`, `vue/operator-linebreak`, `vue/prefer-prop-type-boolean-first`, `vue/prefer-template`, `vue/prefer-true-attribute-shorthand`, `vue/prop-name-casing`, `vue/quote-props`, `vue/require-component-is`, `vue/require-default-export`, `vue/require-emit-validator`, `vue/require-macro-variable-name`, `vue/require-name-property`, `vue/require-prop-type-constructor`, `vue/require-prop-types`, `vue/require-render-return`, `vue/require-slots-as-functions`, `vue/require-toggle-inside-transition`, `vue/require-v-for-key`, `vue/restricted-component-names`, `vue/return-in-computed-property`, `vue/slot-name-casing`, `vue/space-in-parens`, `vue/space-infix-ops`, `vue/space-unary-ops`, `vue/static-class-names-order`, `vue/template-curly-spacing`, `vue/this-in-template`, `vue/v-bind-style`, `vue/v-for-delimiter-style`, `vue/v-on-event-hyphenation`, `vue/v-on-style`, `vue/v-slot-style`, `vue/valid-attribute-name`, `vue/valid-model-definition`, `vue/valid-template-root`, `vue/valid-v-bind`, `vue/valid-v-bind-sync`, `vue/valid-v-cloak`, `vue/valid-v-else`, `vue/valid-v-else-if`, `vue/valid-v-html`, `vue/valid-v-if`, `vue/valid-v-is`, `vue/valid-v-memo`, `vue/valid-v-on`, `vue/valid-v-once`, `vue/valid-v-pre`, `vue/valid-v-show`, `vue/valid-v-text`
|
|
142
|
+
`vue/array-bracket-newline`, `vue/array-bracket-spacing`, `vue/array-element-newline`, `vue/arrow-spacing`, `vue/attribute-hyphenation`, `vue/attributes-order`, `vue/block-lang`, `vue/block-order`, `vue/block-spacing`, `vue/block-tag-newline`, `vue/brace-style`, `vue/camelcase`, `vue/comma-dangle`, `vue/comma-spacing`, `vue/comma-style`, `vue/comment-directive`, `vue/component-api-style`, `vue/component-definition-name-casing`, `vue/component-name-in-template-casing`, `vue/component-options-name-casing`, `vue/custom-event-name-casing`, `vue/define-emits-declaration`, `vue/define-macros-order`, `vue/define-props-declaration`, `vue/define-props-destructuring`, `vue/dot-location`, `vue/dot-notation`, `vue/enforce-style-attribute`, `vue/eqeqeq`, `vue/first-attribute-linebreak`, `vue/func-call-spacing`, `vue/html-button-has-type`, `vue/html-closing-bracket-newline`, `vue/html-closing-bracket-spacing`, `vue/html-comment-content-newline`, `vue/html-comment-content-spacing`, `vue/html-comment-indent`, `vue/html-end-tags`, `vue/html-quotes`, `vue/html-self-closing`, `vue/jsx-uses-vars`, `vue/key-spacing`, `vue/keyword-spacing`, `vue/match-component-file-name`, `vue/match-component-import-name`, `vue/max-attributes-per-line`, `vue/max-len`, `vue/max-lines-per-block`, `vue/max-props`, `vue/max-template-depth`, `vue/multi-word-component-names`, `vue/multiline-html-element-content-newline`, `vue/multiline-ternary`, `vue/mustache-interpolation-spacing`, `vue/new-line-between-multi-line-property`, `vue/next-tick-style`, `vue/no-arrow-functions-in-watch`, `vue/no-async-in-computed-properties`, `vue/no-bare-strings-in-template`, `vue/no-boolean-default`, `vue/no-child-content`, `vue/no-computed-properties-in-data`, `vue/no-console`, `vue/no-constant-condition`, `vue/no-content-outside-block`, `vue/no-custom-modifiers-on-v-model`, `vue/no-define-model-default`, `vue/no-deprecated-data-object-declaration`, `vue/no-deprecated-delete-set`, `vue/no-deprecated-destroyed-lifecycle`, `vue/no-deprecated-dollar-listeners-api`, `vue/no-deprecated-dollar-scopedslots-api`, `vue/no-deprecated-events-api`, `vue/no-deprecated-filter`, `vue/no-deprecated-functional-template`, `vue/no-deprecated-html-element-is`, `vue/no-deprecated-inline-template`, `vue/no-deprecated-model-definition`, `vue/no-deprecated-props-default-this`, `vue/no-deprecated-router-link-tag-prop`, `vue/no-deprecated-scope-attribute`, `vue/no-deprecated-slot-attribute`, `vue/no-deprecated-slot-scope-attribute`, `vue/no-deprecated-v-bind-sync`, `vue/no-deprecated-v-is`, `vue/no-deprecated-v-on-native-modifier`, `vue/no-deprecated-v-on-number-modifiers`, `vue/no-deprecated-vue-config-keycodes`, `vue/no-dupe-keys`, `vue/no-dupe-v-else-if`, `vue/no-duplicate-attr-inheritance`, `vue/no-duplicate-attributes`, `vue/no-duplicate-class-names`, `vue/no-empty-component-block`, `vue/no-empty-pattern`, `vue/no-export-in-script-setup`, `vue/no-expose-after-await`, `vue/no-extra-parens`, `vue/no-implicit-coercion`, `vue/no-import-compiler-macros`, `vue/no-irregular-whitespace`, `vue/no-lifecycle-after-await`, `vue/no-literals-in-template`, `vue/no-lone-template`, `vue/no-loss-of-precision`, `vue/no-multi-spaces`, `vue/no-multiple-objects-in-class`, `vue/no-multiple-slot-args`, `vue/no-multiple-template-root`, `vue/no-mutating-props`, `vue/no-negated-condition`, `vue/no-negated-v-if-condition`, `vue/no-parsing-error`, `vue/no-potential-component-option-typo`, `vue/no-props-shadow`, `vue/no-ref-as-operand`, `vue/no-ref-object-reactivity-loss`, `vue/no-required-prop-with-default`, `vue/no-reserved-component-names`, `vue/no-reserved-keys`, `vue/no-reserved-props`, `vue/no-restricted-block`, `vue/no-restricted-call-after-await`, `vue/no-restricted-class`, `vue/no-restricted-component-names`, `vue/no-restricted-component-options`, `vue/no-restricted-custom-event`, `vue/no-restricted-html-elements`, `vue/no-restricted-props`, `vue/no-restricted-static-attribute`, `vue/no-restricted-syntax`, `vue/no-restricted-v-bind`, `vue/no-restricted-v-on`, `vue/no-root-v-if`, `vue/no-setup-props-reactivity-loss`, `vue/no-shadow-native-events`, `vue/no-shared-component-data`, `vue/no-side-effects-in-computed-properties`, `vue/no-spaces-around-equal-signs-in-attribute`, `vue/no-sparse-arrays`, `vue/no-static-inline-styles`, `vue/no-template-key`, `vue/no-template-shadow`, `vue/no-template-target-blank`, `vue/no-textarea-mustache`, `vue/no-this-in-before-route-enter`, `vue/no-undef-components`, `vue/no-undef-directives`, `vue/no-undef-properties`, `vue/no-unsupported-features`, `vue/no-unused-components`, `vue/no-unused-emit-declarations`, `vue/no-unused-properties`, `vue/no-unused-refs`, `vue/no-unused-vars`, `vue/no-use-computed-property-like-method`, `vue/no-use-v-else-with-v-for`, `vue/no-use-v-if-with-v-for`, `vue/no-useless-concat`, `vue/no-useless-mustaches`, `vue/no-useless-template-attributes`, `vue/no-useless-v-bind`, `vue/no-v-for-template-key`, `vue/no-v-for-template-key-on-child`, `vue/no-v-html`, `vue/no-v-model-argument`, `vue/no-v-text`, `vue/no-v-text-v-html-on-component`, `vue/no-watch-after-await`, `vue/object-curly-newline`, `vue/object-curly-spacing`, `vue/object-property-newline`, `vue/object-shorthand`, `vue/one-component-per-file`, `vue/operator-linebreak`, `vue/order-in-components`, `vue/padding-line-between-blocks`, `vue/padding-line-between-tags`, `vue/padding-lines-in-component-definition`, `vue/prefer-define-options`, `vue/prefer-import-from-vue`, `vue/prefer-prop-type-boolean-first`, `vue/prefer-separate-static-class`, `vue/prefer-single-event-payload`, `vue/prefer-template`, `vue/prefer-true-attribute-shorthand`, `vue/prefer-use-template-ref`, `vue/prefer-v-model`, `vue/prop-name-casing`, `vue/quote-props`, `vue/require-component-is`, `vue/require-default-export`, `vue/require-default-prop`, `vue/require-direct-export`, `vue/require-emit-validator`, `vue/require-explicit-emits`, `vue/require-explicit-slots`, `vue/require-expose`, `vue/require-macro-variable-name`, `vue/require-name-property`, `vue/require-prop-comment`, `vue/require-prop-type-constructor`, `vue/require-prop-types`, `vue/require-render-return`, `vue/require-slots-as-functions`, `vue/require-toggle-inside-transition`, `vue/require-typed-object-prop`, `vue/require-typed-ref`, `vue/require-v-for-key`, `vue/require-valid-default-prop`, `vue/restricted-component-names`, `vue/return-in-computed-property`, `vue/return-in-emits-validator`, `vue/singleline-html-element-content-newline`, `vue/slot-name-casing`, `vue/sort-keys`, `vue/space-in-parens`, `vue/space-infix-ops`, `vue/space-unary-ops`, `vue/static-class-names-order`, `vue/template-curly-spacing`, `vue/this-in-template`, `vue/use-v-on-exact`, `vue/v-bind-style`, `vue/v-for-delimiter-style`, `vue/v-if-else-key`, `vue/v-on-event-hyphenation`, `vue/v-on-handler-style`, `vue/v-on-style`, `vue/v-slot-style`, `vue/valid-attribute-name`, `vue/valid-define-emits`, `vue/valid-define-options`, `vue/valid-define-props`, `vue/valid-model-definition`, `vue/valid-next-tick`, `vue/valid-template-root`, `vue/valid-v-bind`, `vue/valid-v-bind-sync`, `vue/valid-v-cloak`, `vue/valid-v-else`, `vue/valid-v-else-if`, `vue/valid-v-for`, `vue/valid-v-html`, `vue/valid-v-if`, `vue/valid-v-is`, `vue/valid-v-memo`, `vue/valid-v-model`, `vue/valid-v-on`, `vue/valid-v-once`, `vue/valid-v-pre`, `vue/valid-v-show`, `vue/valid-v-slot`, `vue/valid-v-text`
|
|
143
143
|
|
|
144
144
|
Its 38 wrappers of rules of ESLint core and ESLint Stylistic, which run veslint's port of the wrapped rule on the expressions of the template (ESLint Stylistic's when `@stylistic/eslint-plugin` resolves from the current directory, as eslint-plugin-vue chooses, ESLint core's otherwise): `vue/array-bracket-newline`, `vue/array-bracket-spacing`, `vue/array-element-newline`, `vue/arrow-spacing`, `vue/block-spacing`, `vue/brace-style`, `vue/camelcase`, `vue/comma-dangle`, `vue/comma-spacing`, `vue/comma-style`, `vue/dot-location`, `vue/dot-notation`, `vue/eqeqeq`, `vue/func-call-spacing`, `vue/key-spacing`, `vue/keyword-spacing`, `vue/multiline-ternary`, `vue/no-console`, `vue/no-constant-condition`, `vue/no-empty-pattern`, `vue/no-extra-parens`, `vue/no-implicit-coercion`, `vue/no-loss-of-precision`, `vue/no-negated-condition`, `vue/no-restricted-syntax`, `vue/no-sparse-arrays`, `vue/no-useless-concat`, `vue/object-curly-newline`, `vue/object-curly-spacing`, `vue/object-property-newline`, `vue/object-shorthand`, `vue/operator-linebreak`, `vue/prefer-template`, `vue/quote-props`, `vue/space-in-parens`, `vue/space-infix-ops`, `vue/space-unary-ops`, `vue/template-curly-spacing`.
|
|
145
145
|
|
|
@@ -163,7 +163,7 @@ What each version added is in the [changelog](CHANGELOG.md).
|
|
|
163
163
|
|
|
164
164
|
### How it is checked
|
|
165
165
|
|
|
166
|
-
Every rule passes all the cases of its own upstream tests, linted as TypeScript: 29,862 cases of typescript-eslint, 14,092 of ESLint, 14,962 of eslint-plugin-unicorn, 9,528 of @stylistic/eslint-plugin, 3,278 of eslint-plugin-perfectionist, 459 of @slipher/eslint-plugin, 206 of @marcrock22/eslintcf and
|
|
166
|
+
Every rule passes all the cases of its own upstream tests, linted as TypeScript: 29,862 cases of typescript-eslint, 14,092 of ESLint, 14,962 of eslint-plugin-unicorn, 9,528 of @stylistic/eslint-plugin, 3,278 of eslint-plugin-perfectionist, 459 of @slipher/eslint-plugin, 206 of @marcrock22/eslintcf and 10,085 of eslint-plugin-vue (its JavaScript cases with `lang="ts"`, with what ESLint gives for them). On fixtures of its own, every rule gives exactly what ESLint gives: problems, messages, positions, fixes and suggestions. The rules are also compared with ESLint on real projects (a Discord bot, zod, recharts and the TypeScript compiler).
|
|
167
167
|
|
|
168
168
|
## VS Code extension
|
|
169
169
|
|
|
@@ -172,7 +172,7 @@ The extension shows the problems of the TypeScript files you open and type, unde
|
|
|
172
172
|
## Limits
|
|
173
173
|
|
|
174
174
|
- **TypeScript only.** JavaScript files are not linted, even in a project with `allowJs`, nor the JavaScript scripts of Vue files.
|
|
175
|
-
- **Vue files:**
|
|
175
|
+
- **Vue files:** 254 rules of eslint-plugin-vue so far (the others are skipped with a warning). `<!-- eslint-disable -->` comments in a template work when `vue/comment-directive` is on, as with eslint-plugin-vue's processor. `parserOptions.vueFeatures` is not read (the defaults are used). Two scripts that are not modules (no `import` or `export`) see each other's globals in veslint, where typescript-eslint has the other `.vue` files of the program as the text of the file.
|
|
176
176
|
- **Linux x64 and Windows x64.** Other platforms need a build from source, which is not tested there.
|
|
177
177
|
- **An `eslint.config.*` needs `bun`** to be read; the resolved configuration (`--print-config`) does not. A cached resolution is reused while the files and modules the configuration read and the environment variables it read stay the same: a configuration that depends on something else (the date, a file it lists but does not read, a new `tsconfig.json` a glob of `parserOptions.project` matches) needs `VESLINT_CONFIG_CACHE=0`.
|
|
178
178
|
- **The newest TypeScript syntax** may not be read yet: veslint warns when a file has syntax it does not understand, and some problems of that file may be missing.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marcrock22/veslint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "A TypeScript linter in V that talks to TypeScript 7 (tsc --api) directly: the rules of ESLint, typescript-eslint, unicorn, @stylistic, perfectionist and seyfert, with the same results.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"veslint": "bin/veslint.js"
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"bin"
|
|
10
10
|
],
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@marcrock22/veslint-linux-x64": "0.
|
|
13
|
-
"@marcrock22/veslint-win32-x64": "0.
|
|
12
|
+
"@marcrock22/veslint-linux-x64": "0.32.0",
|
|
13
|
+
"@marcrock22/veslint-win32-x64": "0.32.0"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"typescript",
|