eslint-plugin-vue
eslint plugin for vue.js projects
Last updated 7 years ago by michalsnik .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install eslint-plugin-vue 
SYNC missed versions from official npm registry.

eslint-plugin-vue

NPM version NPM downloads CircleCI License

Official ESLint plugin for Vue.js

:book: Documentation

Please refer to the official website.

:anchor: Versioning Policy

This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.

:newspaper: Releases

This project uses GitHub Releases.

:beers: Contribution Guide

Contributing is welcome! See the ESLint Vue Plugin Developer Guide.

Working With Rules

Be sure to read the official ESLint guide before you start writing a new rule.

To see what an abstract syntax tree (AST) of your code looks like, you may use AST Explorer. After opening AST Explorer, select Vue as the syntax and vue-eslint-parser as the parser.

The default JavaScript parser must be replaced because Vue.js single file components are not plain JavaScript, but a custom file format. vue-eslint-parser is a replacement parser that generates an enhanced AST with nodes that represent specific parts of the template syntax, as well as the contents of the <script> tag.

To learn more about certain nodes in a produced AST, see the ESTree project page and the vue-eslint-parser AST documentation.

vue-eslint-parser provides a few useful parser services to help traverse the produced AST and access template tokens:

  • context.parserServices.defineTemplateBodyVisitor(visitor, scriptVisitor)
  • context.parserServices.getTemplateBodyTokenStore()

Check out an example rule to see usage of these services.

Be aware that depending on the code samples you write in tests, the RuleTester parser property must be set accordingly (this can be done on a test by test basis). See an example here.

If you're stuck, remember there are many rules available for reference. If you can't find the right solution, don't hesitate to reach out in issues – we're happy to help!

:lock: License

See the LICENSE file for license rights and limitations (MIT).

Current Tags

  • 3.14.0                                ...           beta (7 years ago)
  • 9.10.0                                ...           latest (2 years ago)
  • 7.0.0-beta.4                                ...           next (4 years ago)

141 Versions

  • 9.10.0                                ...           2 years ago
  • 9.9.0                                ...           2 years ago
  • 9.8.0                                ...           2 years ago
  • 9.7.0                                ...           2 years ago
  • 9.6.0                                ...           2 years ago
  • 9.5.1                                ...           2 years ago
  • 9.5.0                                ...           2 years ago
  • 9.4.0                                ...           2 years ago
  • 9.3.0                                ...           2 years ago
  • 9.2.0                                ...           2 years ago
  • 9.1.1                                ...           2 years ago
  • 9.1.0                                ...           3 years ago
  • 9.0.1                                ...           3 years ago
  • 9.0.0                                ...           3 years ago
  • 8.7.1                                ...           3 years ago
  • 8.7.0                                ...           3 years ago
  • 8.6.0                                ...           3 years ago
  • 8.5.0                                ...           3 years ago
  • 8.4.1                                ...           3 years ago
  • 8.4.0                                ...           3 years ago
  • 8.3.0                                ...           3 years ago
  • 8.2.0                                ...           3 years ago
  • 8.1.1                                ...           3 years ago
  • 8.1.0                                ...           3 years ago
  • 8.0.3                                ...           3 years ago
  • 8.0.2                                ...           3 years ago
  • 8.0.1                                ...           3 years ago
  • 8.0.0                                ...           3 years ago
  • 7.20.0                                ...           3 years ago
  • 7.19.1                                ...           3 years ago
  • 7.19.0                                ...           3 years ago
  • 7.18.0                                ...           3 years ago
  • 7.17.0                                ...           3 years ago
  • 7.16.0                                ...           3 years ago
  • 7.15.2                                ...           3 years ago
  • 7.15.1                                ...           3 years ago
  • 7.15.0                                ...           3 years ago
  • 7.14.0                                ...           3 years ago
  • 7.13.0                                ...           3 years ago
  • 7.12.1                                ...           3 years ago
  • 7.12.0                                ...           3 years ago
  • 7.11.1                                ...           3 years ago
  • 7.11.0                                ...           3 years ago
  • 7.10.0                                ...           4 years ago
  • 7.9.0                                ...           4 years ago
  • 7.8.0                                ...           4 years ago
  • 7.7.0                                ...           4 years ago
  • 7.6.0                                ...           4 years ago
  • 7.5.0                                ...           4 years ago
  • 7.4.1                                ...           4 years ago
  • 7.4.0                                ...           4 years ago
  • 7.3.0                                ...           4 years ago
  • 7.2.0                                ...           4 years ago
  • 7.1.0                                ...           4 years ago
  • 7.0.1                                ...           4 years ago
  • 7.0.0                                ...           4 years ago
  • 7.0.0-beta.4                                ...           4 years ago
  • 7.0.0-beta.3                                ...           4 years ago
  • 7.0.0-beta.2                                ...           4 years ago
  • 7.0.0-beta.1                                ...           4 years ago
  • 7.0.0-beta.0                                ...           4 years ago
  • 7.0.0-alpha.10                                ...           4 years ago
  • 7.0.0-alpha.9                                ...           4 years ago
  • 7.0.0-alpha.8                                ...           4 years ago
  • 7.0.0-alpha.7                                ...           4 years ago
  • 7.0.0-alpha.6                                ...           4 years ago
  • 7.0.0-alpha.5                                ...           5 years ago
  • 7.0.0-alpha.4                                ...           5 years ago
  • 7.0.0-alpha.3                                ...           5 years ago
  • 7.0.0-alpha.2                                ...           5 years ago
  • 7.0.0-alpha.1                                ...           5 years ago
  • 7.0.0-alpha.0                                ...           5 years ago
  • 6.2.2                                ...           5 years ago
  • 6.2.1                                ...           5 years ago
  • 6.2.0                                ...           5 years ago
  • 6.1.2                                ...           5 years ago
  • 6.1.1                                ...           5 years ago
  • 6.1.0                                ...           5 years ago
  • 6.0.2                                ...           5 years ago
  • 6.0.1                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 5.2.3                                ...           5 years ago
  • 5.2.2                                ...           6 years ago
  • 5.2.1                                ...           6 years ago
  • 5.2.0                                ...           6 years ago
  • 5.1.0                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 5.0.0-beta.6                                ...           6 years ago
  • 5.0.0-beta.5                                ...           6 years ago
  • 5.0.0-beta.4                                ...           6 years ago
  • 5.0.0-beta.3                                ...           6 years ago
  • 5.0.0-beta.2                                ...           6 years ago
  • 5.0.0-beta.1                                ...           6 years ago
  • 5.0.0-beta.0                                ...           6 years ago
  • 4.7.1                                ...           6 years ago
  • 4.7.0                                ...           6 years ago
  • 4.6.0                                ...           6 years ago
  • 4.5.0                                ...           7 years ago
  • 4.4.0                                ...           7 years ago
  • 4.3.0                                ...           7 years ago
  • 4.2.2                                ...           7 years ago
  • 4.2.1                                ...           7 years ago
  • 4.2.0                                ...           7 years ago
  • 4.1.0                                ...           7 years ago
  • 4.0.1                                ...           7 years ago
  • 4.0.0                                ...           7 years ago
  • 4.0.0-beta.5                                ...           7 years ago
  • 4.0.0-beta.4                                ...           7 years ago
  • 4.0.0-beta.3                                ...           7 years ago
  • 4.0.0-beta.2                                ...           7 years ago
  • 4.0.0-beta.1                                ...           7 years ago
  • 4.0.0-beta.0                                ...           7 years ago
  • 3.14.0                                ...           7 years ago
  • 3.13.1                                ...           7 years ago
  • 3.13.0                                ...           7 years ago
  • 3.12.0                                ...           7 years ago
  • 3.11.0                                ...           7 years ago
  • 3.10.0                                ...           7 years ago
  • 3.9.0                                ...           7 years ago
  • 3.8.0                                ...           7 years ago
  • 3.7.0                                ...           7 years ago
  • 3.6.0                                ...           7 years ago
  • 3.5.1                                ...           7 years ago
  • 3.5.0                                ...           7 years ago
  • 3.4.0                                ...           7 years ago
  • 3.3.0                                ...           7 years ago
  • 3.2.2                                ...           7 years ago
  • 3.2.1                                ...           7 years ago
  • 3.2.0                                ...           7 years ago
  • 3.1.3                                ...           7 years ago
  • 3.1.2                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 3.1.1                                ...           7 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |