9.23.0 • Published 7 days ago

eslint-plugin-vue v9.23.0

Weekly downloads
1,653,857
License
MIT
Repository
github
Last release
7 days ago

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).

@wtting/eslint-config@yysmx/eslint-config@yysmx/eslint-config-vue@adbros/eslint-pluginwhzbcx_web_comswhzbcx_web_cxwhzbcx_web_cx3whzbcx_web_cxewhzbcx_web_cxgiswhzbcx_web_gwwhzbcx_web_sjzxwhzbcx_web_swdzwhzbcx_web_xjwhzbcx_web_yzwiseweb-eslint-configwti-form-source-code@linan919/nan-image-slider@linan919/nan-test@lawandorga/components@lvyunlong/eslint-config@lvyunlong/eslint-config-vue@opendreamnet/eslint-config-nuxtjs@obstinate/vue-script@jcamp/eslint-config-vue@jiqi/eslint-config@jiqi/eslint-config-vue@jiralite/eslint-config-neon@kaivanwong/eslint-config-vue@rjqh/eslint-config-vue@rain-star/eslint-config-vue@penjj/eslint-config-vue@penjj/eslint-config-vue2@cyenoch/eslint-config@cyenoch/eslint-config-vue@cuiqg/eslint-config@asasinmode/eslint-config@mediinfo/eslint-config@hokify/eslint-config@ainultech/eslint-config@equt/eslint-config-vueeslint-config-metamocicadaqqqq-eslint-config@maiscrm/eslint-config-frontendtrs-vue-cli@igbominadeveloper/eslint-config-vuets@totominc/eslint-config@kolesa-group/eslint-configvue-cli-plugin-agdk@suozhao/eslint-vue-168ch168vueeslinteslint-vue-168moan-elmoan-el-testscreen-spec-mdvideocapturing@aqsc/eslint-config-aqsclsh-test1kolesa-group-eslint-configkg-stylelint-confighaodfplusmagnoabsass-sdfddabc-jdjdjjdvue-express-mongodb-boilerplatealexeistukov-clieuaaaiofrontend-javascript-dev-kiteslint-config-vue-vincent@zebra-c/eslintrc@jo.christianto/eslint-config-jochristianto-base@mole/eslint-config-vueidvcnuxt-dualgears-shared-toolseslint-config-superstrict@gametactic/meta-buildeslint-config-wmoeslint-config-mobilemetamo-eslint-configmetamo-lint-configeslint-config-prettystandard-vuenoodles-standardzjlab-clieslint-plugin-zjlabtemp2-test-scripts@kzx/eslint-configeslint-config-mti1eslint-config-8haodi8haodi-font-end-check-configfont-end-check-config-8haodigoalkeeper-eslint-configeslint-config-dqyfp-base@conten2/eslint-config-vuebb-chateslink-cli@yujinpan/vue-component-pack@psimk/porter-react-base-skeleton@psimk/porter-react-skeleton@psimk/porter-vue-skeleton@cooperhanke/eslint-config-view
9.23.0

7 days ago

9.22.0

25 days ago

9.21.1

2 months ago

9.21.0

2 months ago

9.20.1

2 months ago

9.20.0

2 months ago

9.19.0

4 months ago

9.19.1

4 months ago

9.19.2

4 months ago

9.18.0

5 months ago

9.18.1

5 months ago

9.17.0

7 months ago

9.16.0

8 months ago

9.16.1

8 months ago

9.15.1

9 months ago

9.15.0

9 months ago

9.14.0

10 months ago

9.14.1

10 months ago

9.13.0

10 months ago

9.12.0

10 months ago

9.11.1

11 months ago

9.11.0

11 months ago

9.10.0

12 months ago

9.9.0

1 year ago

9.8.0

1 year ago

9.7.0

1 year ago

9.4.0

2 years ago

9.5.1

2 years ago

9.5.0

2 years ago

9.6.0

1 year ago

9.0.1

2 years ago

9.0.0

2 years ago

9.1.1

2 years ago

9.1.0

2 years ago

9.3.0

2 years ago

9.2.0

2 years ago

8.6.0

2 years ago

8.7.1

2 years ago

8.7.0

2 years ago

8.2.0

2 years ago

8.4.1

2 years ago

8.4.0

2 years ago

8.3.0

2 years ago

8.5.0

2 years ago

8.1.0

2 years ago

8.1.1

2 years ago

8.0.1

2 years ago

8.0.0

2 years ago

8.0.3

2 years ago

8.0.2

2 years ago

7.20.0

2 years ago

7.19.1

2 years ago

7.19.0

2 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

3 years ago

7.9.0

3 years ago

7.8.0

3 years ago

7.7.0

3 years ago

7.6.0

3 years ago

7.5.0

3 years ago

7.4.1

3 years ago

7.4.0

3 years ago

7.3.0

3 years ago

7.2.0

3 years ago

7.1.0

3 years ago

7.0.1

3 years ago

7.0.0

3 years ago

7.0.0-beta.4

3 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

4 years ago

7.0.0-alpha.4

4 years ago

7.0.0-alpha.3

4 years ago

7.0.0-alpha.2

4 years ago

7.0.0-alpha.1

4 years ago

7.0.0-alpha.0

4 years ago

6.2.2

4 years ago

6.2.1

4 years ago

6.2.0

4 years ago

6.1.2

4 years ago

6.1.1

4 years ago

6.1.0

4 years ago

6.0.2

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago

5.2.3

5 years ago

5.2.2

5 years ago

5.2.1

5 years ago

5.2.0

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

5.0.0-beta.6

5 years ago

5.0.0-beta.5

5 years ago

5.0.0-beta.4

5 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

6 years ago

4.4.0

6 years ago

4.3.0

6 years ago

4.2.2

6 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

4.0.0-beta.5

6 years ago

4.0.0-beta.4

6 years ago

4.0.0-beta.3

6 years ago

4.0.0-beta.2

6 years ago

4.0.0-beta.1

6 years ago

4.0.0-beta.0

6 years ago

3.14.0

6 years ago

3.13.1

6 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

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago