Skip to content

Viktor949/Eslint-Plugin-Vue

Repository files navigation

Official ESLint plugin for Vue.js

📖 Documentation

Please refer to the official website.

⚓ Versioning Policy

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

📰 Releases

This project uses GitHub Releases.

Working With Rules

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.

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published