vuejs / eslint-plugin-vue Public
master
Commits on Apr 12, 2022
-
* Add failing test case * fix #1836: support script[setup] in multi-word-component-names
-
* Fix #1786: Add rule match-component-import-name * Write the documentation for match-component-import-name * fix(1786): Respond to PR feedback * Update lib/rules/match-component-import-name.js Co-authored-by: Flo Edelmann <[email protected]> * Don't change utils if you can avoid it * update docs * Update docs/rules/match-component-import-name.md Co-authored-by: Flo Edelmann <[email protected]> * Update docs/rules/match-component-import-name.md Co-authored-by: Flo Edelmann <[email protected]> * Update docs/rules/match-component-import-name.md Co-authored-by: Flo Edelmann <[email protected]> * Update docs/rules/match-component-import-name.md Co-authored-by: Flo Edelmann <[email protected]> * remove case option * remove stray newline * Remove prefix; handle computed properties * but who lints the linters Co-authored-by: Flo Edelmann <[email protected]>
-
Improve usage of postcss-selector-parser (#1842)
* Add CSS selector parser * Change to use selector parser in `component-tags-order` rule. * Update tests/lib/utils/selector.js Co-authored-by: Flo Edelmann <[email protected]> * Update fixtures * Update lib/rules/component-tags-order.js Co-authored-by: Flo Edelmann <[email protected]> * Update lib/rules/component-tags-order.js Co-authored-by: Flo Edelmann <[email protected]> * Update lib/utils/selector.js Co-authored-by: Flo Edelmann <[email protected]> * Update tests/lib/utils/selector.js Co-authored-by: Flo Edelmann <[email protected]> * format and update fixtures * Refactor * rename var Co-authored-by: Flo Edelmann <[email protected]>
Commits on Apr 11, 2022
-
* Add github workflows * Fix CI errors
-
Fix #1819: Enforce order between script and script setup (#1825)
* Fix #1819: Enforce order between script and script setup * update defaults to match documentation * Use CSS selector syntax * remove incorrect documentation of default behavior for script setup * Fix bug with multiple not pseudo-selectors * revert component tags order docs * update docs * Update error message * update headers * update docs more better * Update tests/lib/rules/component-tags-order.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/component-tags-order.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/component-tags-order.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/component-tags-order.js Co-authored-by: Yosuke Ota <[email protected]> * Update docs/rules/component-tags-order.md Co-authored-by: Yosuke Ota <[email protected]> * don't move the message block Co-authored-by: Yosuke Ota <[email protected]>
Commits on Mar 23, 2022
-
Add new rule: no-restricted-html-elements (#1820)
* Add new rule: html-forbid-elements * PR Feedback * Update lib/rules/no-restricted-html-elements.js Co-authored-by: Flo Edelmann <[email protected]> * Update docs/rules/no-restricted-html-elements.md Co-authored-by: Flo Edelmann <[email protected]> * Update lib/rules/no-restricted-html-elements.js Co-authored-by: Flo Edelmann <[email protected]> * Update tests/lib/rules/no-restricted-html-elements.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/no-restricted-html-elements.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/no-restricted-html-elements.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/no-restricted-html-elements.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/no-restricted-html-elements.js Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/no-restricted-html-elements.js Co-authored-by: Yosuke Ota <[email protected]> * Update docs/rules/no-restricted-html-elements.md Co-authored-by: Yosuke Ota <[email protected]> * Update tests/lib/rules/no-restricted-html-elements.js Co-authored-by: Yosuke Ota <[email protected]> * Update docs/rules/no-restricted-html-elements.md Co-authored-by: Flo Edelmann <[email protected]> * Update docs/rules/no-restricted-html-elements.md Co-authored-by: Flo Edelmann <[email protected]> * Update docs/rules/no-restricted-html-elements.md Co-authored-by: Flo Edelmann <[email protected]> * run npm update * Remove messages block * Update docs/rules/no-restricted-html-elements.md * Update docs/rules/no-restricted-html-elements.md * Fix demo site Co-authored-by: Flo Edelmann <[email protected]> Co-authored-by: Yosuke Ota <[email protected]>
-
Add
prefer-prop-type-boolean-first
rule (#1822)* Add `prefer-prop-type-boolean-first` rule * fix docs * update docs * merge valid test cases * add more tests * Add explanation to eslint-disable comment Co-authored-by: Flo Edelmann <[email protected]>
Commits on Mar 19, 2022
-
* Add rule docs headings checker * Fix typo in rule docs heading * Standardize heading order in rule docs * Add markdownlint * Use `dash` style for all unordered lists `ul-style` MarkdownLint rule * Standardize unordered list indentation `ul-indent` MarkdownLint rule * Remove trailing spaces `no-trailing-spaces` MarkdownLint rule * Collapse consecutive empty lines `no-multiple-blanks` MarkdownLint rule * Add empty line after headings `blanks-around-headings` MarkdownLint rule * Add empty lines after code blocks `blanks-around-fences` MarkdownLint rule * Add empty lines before lists `blanks-around-lists` MarkdownLint rule * Add link title `no-bare-urls` MarkdownLint rule * Convert bold paragraph to heading `no-emphasis-as-heading` MarkdownLint rule * Fix trailing space in inline code `no-space-in-code` MarkdownLint rule * Add language to code blocks `fenced-code-language` MarkdownLint rule * Disable `no-inline-html` MarkdownLint rule in one place * Fix wrong link syntax
Commits on Mar 6, 2022
-
Auto-fix for vue/component-tags-order (#1811)
* feat:
🎸 finish sort order * Auto-fix for vue/component-tags-order * use fix:true and output for test case Apply suggestions from code review Co-authored-by: Yosuke Ota <[email protected]> * fix lint Co-authored-by: IWANABETHATGUY <[email protected]> Co-authored-by: Yosuke Ota <[email protected]>
Commits on Feb 22, 2022
Commits on Feb 16, 2022
Commits on Feb 12, 2022
-
Add
prefer-true-attribute-shorthand
rule (#1796)* Add `prefer-true-attribute-shorthand` rule * fix typo * accept suggestions * accept option `"always"` or `"never"` * ignore native HTML elements * provide suggestions instead of auto fix * meta update
Commits on Jan 27, 2022
-
-
Support template literal component names in
vue/no-undef-components
(……#1782) * Move `isStringLiteral` function to utils * Support template literal component names in `vue/no-undef-components`
Commits on Jan 25, 2022
Commits on Jan 24, 2022
-
Fix false positives for
v-bind="obj"
withv-model
in `vue/attribu……tes-order` rule (#1771) * Fix false positives for `v-bind="obj"` with `v-model` in `vue/attributes-order` rule * Update lib/rules/attributes-order.js Co-authored-by: Flo Edelmann <[email protected]> * Update lib/rules/attributes-order.js Co-authored-by: Flo Edelmann <[email protected]> Co-authored-by: Flo Edelmann <[email protected]>
Commits on Jan 20, 2022
-
* Improve wording in `vue/no-expose-after-await` docs * Improve descriptions of core extension rules * Improve example data in docs
Commits on Jan 19, 2022
-
-
-
Add
vue/no-undef-components
rule and deprecate `vue/no-unregistered……-components` rule (#1763) * Add `vue/no-undef-components-in-script-setup` rule * fix test case * Renamed rule and marked no-unregistered-components as deprecated * update doc * update doc * fix doc * Update docs/rules/no-undef-components.md Co-authored-by: Flo Edelmann <[email protected]> Co-authored-by: Flo Edelmann <[email protected]>
-
Add support for Vue2 functional component to `vue/no-unused-propertie…
…s` and `vue/no-undef-properties` rules (#1761)
-
Add
vue/no-v-text-v-html-on-component
rule (#1760)* Add `vue/no-v-text-v-html-on-component` rule * add test case