eslint-plugin-vue

Official ESLint plugin for Vue.js

MIT License

Downloads
12M
Stars
4.4K
Committers
215

Bot releases are visible (Hide)

eslint-plugin-vue -

Published by ota-meshi about 3 years ago

🐛 Bug Fixes

  • #1590 Fixed message typo in vue/no-reserved-keys rule.
  • #1591 Fixed false positives for type-only defineProps in vue/require-default-prop rule.

All commits: v7.15.0 -> v7.15.1

eslint-plugin-vue -

Published by ota-meshi about 3 years ago

✨ Enhancements

  • #1234 Added vue/no-use-computed-property-like-method rule that disallows to use computed property like method.
  • #1586 Added vue/block-lang rule rule that disallows the use of languages other than those available in the your application for the lang attribute of block elements.
  • #1576 Updated some rules to support style CSS variable injection.
    • vue/comma-spacing rule.
    • vue/dot-notation rule.
    • vue/eqeqeq rule.
    • vue/func-call-spacing rule.
    • vue/no-extra-parens rule.
    • vue/no-restricted-syntax rule.
    • vue/no-useless-concat rule.
    • vue/prefer-template rule.
    • vue/space-in-parens rule.
    • vue/space-infix-ops rule.
    • vue/space-unary-ops rule.
    • vue/template-curly-spacing rule.

🐛 Bug Fixes

  • #1584 Fixed false positives for call expression in vue/no-mutating-props rule.

⚙️ Updates

  • #1576 Upgraded vue-eslint-parser.

All commits: v7.14.0 -> v7.15.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

  • #1568 Added vue/require-expose rule that enforces the component to explicitly declare the exposed properties to the component using expose.
  • #1566 Updated vue/no-unused-properties rule to support expose
  • #1574 Updated some rules to support style CSS vars injection.
    • vue/no-parsing-error rule.
    • vue/no-unused-properties rule.
    • vue/script-setup-uses-vars rule.
    • vue/no-unsupported-features rule.
  • #1565 Improved report location of vue/valid-v-xxx rules.

🐛 Bug Fixes

  • #1569 Fixed false positives for <script setup> in vue/no-lifecycle-after-await rule.
  • #1569 Fixed false positives for <script setup> in vue/no-watch-after-await rule.
  • #1569 Fixed false positives for <script setup> in vue/no-restricted-call-after-await rule.
  • #1575 Downgraded to semver compatible with Node v8.

All commits: v7.13.0 -> v7.14.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

  • Supports <script setup>
    • #1529 Added vue/script-setup-uses-vars rule that will find variables in <script setup> used in <template> and mark them as used.
    • #1559 Added vue/no-export-in-script-setup rule that disallows ES export in <script setup>.
    • #1560 Added vue/valid-define-props rule that reports defineProps compiler macros in the following cases:
      • defineProps are referencing locally declared variables.
      • defineProps has both a literal type and an argument. e.g. defineProps<{/*props*/}>({/*props*/})
      • defineProps has been called multiple times.
      • Props are defined in both defineProps and export default {}.
      • Props are not defined in either defineProps or export default {}.
    • #1561 Added vue/valid-define-emits rule that reports defineEmits compiler macros in the following cases:
      • defineEmits are referencing locally declared variables.
      • defineEmits has both a literal type and an argument. e.g. defineEmits<(e: 'foo')=>void>(['bar'])
      • defineEmits has been called multiple times.
      • Custom events are defined in both defineEmits and export default {}.
      • Custom events are not defined in either defineEmits or export default {}.
    • #1532, #1559 Upgraded vue-eslint-parser.
    • Updated rules to support <script setup>.
      • #1531 vue/no-mutating-props rule.
      • #1535 vue/no-reserved-keys rule.
      • #1533 vue/no-async-in-computed-properties rule.
      • #1534 vue/no-side-effects-in-computed-properties rule.
      • #1536 vue/require-prop-type-constructor rule.
      • #1539 vue/no-lifecycle-after-await rule.
      • #1538 vue/require-valid-default-prop rule.
      • #1542 vue/return-in-emits-validator rule.
      • #1545 vue/require-default-prop rule.
      • #1540 vue/no-setup-props-destructure rule.
      • #1541 vue/no-watch-after-await rule.
      • #1543 vue/no-template-shadow rule.
      • #1544 vue/prop-name-casing rule.
      • #1546 vue/require-prop-types rule.
      • #1548 vue/require-explicit-emits rule.
      • #1549 vue/custom-event-name-casing rule.
      • #1550 vue/no-boolean-default rule.
      • #1551 vue/no-restricted-call-after-await rule.
      • #1552 vue/no-restricted-props rule.
      • #1553 vue/no-unregistered-components rule.
      • #1554 vue/no-unsupported-features rule.
      • #1555 vue/no-unused-properties rule.
      • #1556 vue/no-unused-refs rule.
      • #1557 vue/require-emit-validator rule.
      • #1558 vue/require-name-property rule.
  • #1543 Updated vue/no-template-shadow rule to support setup().
  • #1556 Updated vue/no-unused-refs rule to support setup().

🐛 Bug Fixes

  • #1527 Changed the indent rule so that the union type has the same indent as the binary expression.

⚙️ Updates

  • #1528 Deprecated vue/experimental-script-setup-vars rule.

All commits: v7.12.1 -> v7.13.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

🐛 Bug Fixes

  • #1525 Fixed false positives for trailing comma with import in vue/script-indent rule.

All commits: v7.12.0 -> v7.12.1

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

  • #1520 Improved vue/script-indent rule to support TypeScript syntax.
  • #1481 Improved vue/script-indent rule and vue/html-indent rule to support ES2022 Class Fields syntax. (When using espree v8+.)

🐛 Bug Fixes

  • #1521 Fixed wrong auto-fix in vue/no-deprecated-slot-attribute rule and vue/no-deprecated-slot-scope-attribute rule.
  • #1522 Fixed false positives for default with type Function in vue/no-deprecated-props-default-this rule.

⚙️ Updates

  • #1481 Supports ES2022 Class Fields. (When using espree v8+.)

All commits: v7.11.1 -> v7.12.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

🐛 Bug Fixes

  • #1515 Fixed crash when using objectsInObjects option in vue/object-curly-spacing rule.
eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

New Rules:

  • #1506 Added vue/no-this-in-before-route-enter rule that disallow this usage in a beforeRouteEnter method.
  • #1510 Added vue/no-deprecated-v-is rule that disallow deprecated v-is directive (in Vue.js 3.1.0+).

Other changes in Rules:

  • #1501 Made vue/no-deprecated-destroyed-lifecycle rule to auto-fixable.

⚙️ Updates

  • #1509 Added supports for is="vue:" (Vue 3.1.0+).

All commits: v7.10.0 -> v7.11.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

New Rules:

  • #1487 Added vue/require-emit-validator rule that enforce the validator definition in emits.

Other changes in Rules:

  • #1493 Changed vue/this-in-template rule to support autofix.

⚙️ Updates

  • #1484 Changed vue/attribute-hyphenation rule to ignore SVG attributes.

All commits: v7.9.0 -> v7.10.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

New Rules:

  • #1466 Added vue/no-invalid-model-keys rule that disallow invalid model option keys.
  • #1474 Added vue/no-unused-refs rule that reports refs that are defined using the ref attribute in <template> but are not used via $refs.

Other changes in Rules:

  • #1465 Added singleline.allowFirstLine option to vue/max-attributes-per-line rule.

🐛 Bug Fixes

  • #1469 Fixed false negative in as expression for vue/require-valid-default-prop rule.

All commits: v7.8.0 -> v7.9.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

  • #1450 Changed vue/require-direct-export rule to allow more cases (e.g. export default defineComponent({})).
  • #1451 Changed vue/valid-v-show rule to disallow v-show in <template> tag.
eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

Changes in Rules:

  • #1444 Added ignorePublicMembers option to vue/no-unused-properties rule.

🐛 Bug Fixes

  • #1446 Fixed false negatives for member access with $ in vue/this-in-template rule.

⚙️ Updates

  • #1448 Upgrade vue-eslint-parser to v7.6.0.
    This makes the parser to case sensitive to the name used to determine the element when the file is SFC.

All commits: v7.6.0 -> v7.7.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

New Rules:

  • #1001, #1432 Added vue/html-button-has-type rule.

Other changes in Rules:

  • #1429 Added "SLOT" option to vue/attributes-order rule to specify v-slot order.
  • #1430 Changed the option schema for the following rules to be stricter. Incorrect options are reported as errors.
    • vue/attributes-order rule.
    • vue/component-tags-order rule.
    • vue/max-attributes-per-line rule.
    • vue/new-line-between-multi-line-property rule.
    • vue/no-bare-strings-in-template rule.
    • vue/no-duplicate-attributes rule.
    • vue/no-potential-component-option-typo rule.
    • vue/no-reserved-component-names rule.
    • vue/no-use-v-if-with-v-for rule.
    • vue/no-useless-mustaches rule.
    • vue/no-useless-v-bind rule.
    • vue/valid-v-slot rule.
  • #1436 Improved autofix of vue/no-deprecated-slot-attribute rule when slot name contains _.

🐛 Bug Fixes

  • #1434 Fixed false negatives for v-bind="object" in vue/attributes-order rule.

⚙️ Updates

  • #1440 Upgrade vue-eslint-parser to v7.5.0.
    This change fixes an issue that caused a crash when using some queries with vue/no-restricted-syntax rule.

All commits: v7.5.0 -> v7.6.0

eslint-plugin-vue -

Published by ota-meshi over 3 years ago

✨ Enhancements

New Rules:

  • #1401 Added vue/no-constant-condition rule applies no-constant-condition rule to expressions in <template>, v-if, v-show and v-else-if.
  • #1400 Added vue/next-tick-style rule that enforces whether the callback version or Promise version should be used in Vue.nextTick and this.$nextTick.
  • #1404 Added vue/valid-next-tick rule that enforce valid nextTick function calls.

Other changes in Rules:

  • #1396 Make vue/no-ref-as-operand rule fixable.

🐛 Bug Fixes

  • #1398 Added computed() support to vue/no-async-in-computed-properties rule.
  • #1406 Added computed() support to vue/return-in-computed-property rule.
  • #1407 Added computed() support to vue/no-side-effects-in-computed-properties rule.
  • #1419 Fixed false positives for mixin() in vue/one-component-per-file and vue/require-name-property rules.
  • #1421 Fixed crash for toLocaleString() in vue/no-unused-properties rule.
  • #1420 Fixed false positives for quoted 'emits' in vue/require-explicit-emits rule.

⚙️ Updates

  • #1422 Upgrade vue-eslint-parser to 7.4.1

⚙️ Chores

  • #1392 Refactor vue/attributes-order rule.
  • #1405 Refactor vue/no-async-in-computed-properties rule.

All commits: v7.4.1 -> v7.5.0

eslint-plugin-vue -

Published by ota-meshi almost 4 years ago

🐛 Bug Fixes


All commits: v7.4.0 -> v7.4.1

eslint-plugin-vue -

Published by ota-meshi almost 4 years ago

✨ Enhancements

New Rules:

  • #1381 Added vue/no-restricted-call-after-await rule that reports your restricted calls after the await expression.
  • #1388 Added vue/v-on-event-hyphenation rule that enforces using hyphenated v-on event names on custom components in Vue templates.
  • #1389 Added vue/no-restricted-block rule that allows you to specify block names that you don't want to use in your application.

Other changes in Rules:

  • #1387 Added deepData option to vue/no-unused-properties rule.

🐛 Bug Fixes

  • #1382 Fixed multiple reporting of same warnings in vue/no-unregistered-component rule.
  • #1391 Fixed false positives for v-bind="object" syntax in vue/attributes-order rule.

All commits: v7.3.0 -> v7.4.0

eslint-plugin-vue -

Published by ota-meshi almost 4 years ago

✨ Enhancements

  • #1080 Added vue/new-line-between-multiline-property rule that enforces new lines between multi-line properties.
  • #1376 Added vue/no-restricted-props rule that disallows prop names that you don't want to use.
  • #1377 Added vue/no-restricted-custom-event rule that disallows custom event names that you don't want to use.

⚙️ Updates


All commits: v7.2.0 -> v7.3.0

eslint-plugin-vue -

Published by ota-meshi almost 4 years ago

✨ Enhancements

  • #1364 Added casing option to vue/custom-event-name-casing rule.

⚙️ Updates

  • #1365 Upgraded vue-eslint-parser to 7.2.0
  • #1364 Removed vue/custom-event-name-casing rule from "plugin:vue/essential" and "plugin:vue/vue3-essential" configurations

🐛 Bug Fixes

  • #1335 Fixed false positives when using is attr in vue/valid-v-bind-sync rule.
  • #1366 Fixed false positives when using v-for variable for v-slot in vue/valid-v-slot rule
  • #1367 Fixed false positives when using in vue/valid-v-slot and vue/valid-v-model rule
  • #1368 Fixed false negatives when using handler property in vue/no-arrow-functions-in-watch rule
  • #1369 Fixed false positives for methods whose arguments should not be changed in vue/v-on-function-call rule.

All commits: v7.1.0 -> v7.2.0

eslint-plugin-vue -

Published by ota-meshi about 4 years ago

✨ Enhancements

New Rules:

  • #1328 Added vue/block-tag-newline rule that enforces a line break (or no line break) after opening and before closing block tags.
  • #1326 Added vue/array-bracket-newline rule applies array-bracket-newline rule to expressions in <template>.

Other changes in Rules:

  • #1321 Added ignores option to vue/custom-event-name-casing rule.
  • #1330 Added allowModifiers option to vue/valid-v-slot rule.

🐛 Bug Fixes

  • #1332 Fixed CRLF issues.
  • #1305 Fixed false positives for recursive components in vue/no-unregistered-components rule.
  • #1324 Fixed false positives when used via argument in vue/no-unused-properties

⚙️ Updates

  • #1322 Changed not to use ESLint internal modules.

⚙️ Chores

  • #1337 Added Types for ES2021.
  • #1332 Upgraded vue-eslint-parser to 7.1.1

All commits: v7.0.1 -> v7.1.0

eslint-plugin-vue -

Published by ota-meshi about 4 years ago

🐛 Bug Fixes

  • #1317 Avoid redundant global self-require of the plugin.

All commits: v7.0.0 -> v7.0.1