vue-eslint-parser

The ESLint custom parser for `.vue` files.

MIT License

Downloads
16.8M
Stars
429
Committers
14

Bot releases are visible (Hide)

vue-eslint-parser -

Published by ota-meshi about 3 years ago

βš™οΈ Updates

  • #124 Changed to determine parser by extension when parsing non-vue files using multiple parserOptions.parser.

πŸ› Bug fixes

  • #126 Fixed bug when script tags are missing and multiple parserOptions.parser is used.
vue-eslint-parser -

Published by ota-meshi about 3 years ago

✨ Enhancements

  • #119 Added defineDocumentVisitor to parserServices.

πŸ› Bug fixes

  • #120 Fixed incorrect AST for commented CSS vars injection.
vue-eslint-parser -

Published by ota-meshi over 3 years ago

✨ Enhancements

  • #118 Changed to parse v-bind() in <style>. This feature can optionally be turned off.
vue-eslint-parser -

Published by ota-meshi over 3 years ago

✨ Enhancements

  • #116 Change parserOptions.parser to accept multiple lang parsers.

πŸ› Bug fixes

  • #115 Fixed parsing error when combining <script> and export in <script setup>.
vue-eslint-parser -

Published by ota-meshi over 3 years ago

πŸ› Bug Fixes

  • #113 Downgrade packages that are incompatible with Node v8.
    • Downgrade espree
    • Downgrade semver
    • Change the parser so that if the user explicitly installs espree v8 and specifies espree for parserOptions.parser, it will be use.
vue-eslint-parser -

Published by ota-meshi over 3 years ago

βš™οΈ Updates

  • #111 Revert: changed to use sourceType: module by default when parsing <script setup>.
vue-eslint-parser -

Published by ota-meshi over 3 years ago

βš™οΈ Updates

  • #108, #110 Added support for <script setup>
    • Changed two <script> tags to be parseable when using <script setup>.
    • Upgraded the dependency espree to v8.
      (However, by default it uses the eslint dependency espree.)
      This allows to parse Top Level Await by configuring parserOptions.
      Note that espree v8 is not compatible with some rules of ESLint v7.
    • Changed to use sourceType: module by default when parsing <script setup>.
    • Changed to use ES2022 by default when using espree v8+ and parsing <script setup>.
    • Added an option to defineTemplateBodyVisitor to change the trigger to visit the template nodes.
      This is used to create special rules that suppress warnings for no-unused-vars rule. e.g. vue/script-setup-uses-vars rule
vue-eslint-parser -

Published by ota-meshi over 3 years ago

πŸ› Bug fixes

  • #103 Changes the parser to be case sensitive for the name used to determine the element when the file is SFC.
vue-eslint-parser -

Published by ota-meshi over 3 years ago

βš™οΈ Updates

  • #100 Upgrade esquery and use new option. You can now use queries such as :first-child to traverse templates.
vue-eslint-parser -

Published by ota-meshi over 3 years ago

πŸ› Bug fixes

  • #97 Fixed wrong AST for v-for="(a, index) in list"
vue-eslint-parser -

Published by ota-meshi over 3 years ago

πŸ› Bug fixes

  • #96 Fixed parsing errors in multiple v-for aliases in ecmaVersion: 5.
vue-eslint-parser -

Published by ota-meshi almost 4 years ago

✨ Enhancements

  • #91 Added defineCustomBlocksVisitor() to parserServices.

βš™οΈ Updates

  • #90 Changed the parsing of custom block to parse like Vue3 parser.

βš™οΈ Chores

  • #92 Upgrade @typescript-eslint and prettier
vue-eslint-parser -

Published by ota-meshi almost 4 years ago

✨ Enhancements

  • Added parserOptions.vueFeatures option.
    • #88 Added parserOptions.vueFeatures.interpolationAsNonHTML option.
    • #89 Added parserOptions.vueFeatures.filter option.

πŸ› Bug fixes

  • #85 Fixed type of VDirectiveKey.
  • #87 Fixed the wrong location when using with @typescript-eslint
vue-eslint-parser -

Published by ota-meshi about 4 years ago

πŸ› Bug Fixes

  • #74 fixed wrong location calculation when including CRLF.
vue-eslint-parser -

Published by mysticatea over 4 years ago

✨ Enhancements

  • 27a275f530b27e4714183c535d2e121aadf9e3bd updates the default parser loading logic to use the espree of loaded ESLint.

πŸ› Bug fixes

  • 6c1ac6845c937d533766c0faba19419ec087e3cc fixed the parser to generate correct comment data.
vue-eslint-parser -

Published by mysticatea almost 5 years ago

πŸ’₯ Breaking Changes

  • 57c86241b16e3bd3670a340a0f9c117dd419191c dropped Node.js 6.x support. And the validation of parserOptions got more strict (by espree's update).

✨ Enhancements

  • 075d3ff208fbbb73925c44ecdb50729c9cb829de added a new parser service: parserServices.getDocumentFragment(). You can get the root node of *.vue file's AST.
vue-eslint-parser -

Published by mysticatea almost 5 years ago

πŸ› Bug Fixes

  • af6a986683e17f779b565b0efde6c57bc63e517b fixed installation warning about ESLint v6.
vue-eslint-parser -

Published by mysticatea almost 5 years ago

πŸ› Bug Fixes

  • 7d729691da6bc365a7f18e379bb966c7d0ff0acc fixed false positive of memory-leak detection.
vue-eslint-parser -

Published by mysticatea over 5 years ago

πŸ› Bug fixes

vue-eslint-parser -

Published by mysticatea over 5 years ago

πŸ› Bug fixes

  • ba72875586379c11a8dc6697bf203caaebf2249d fixed a bug that references in dynamic argument is not resolved.