Skip to content

Vue eslint plugin with rules to make you code stricter: enforce jsdoc, restrict rootGetters, rootState and more.

License

Notifications You must be signed in to change notification settings

GlebkaF/eslint-plugin-strict-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-strict-vue

NPM version

Various ESLint rules to make you Vue(x) code a bit stricter

🥋 Requirements

  • ESLint >=4.15.0
  • Node.js >=8.0.0

🏋 Installation

$ npm i eslint eslint-plugin-strict-vue --save-dev

🤹‍ Usage

Configure it in .eslintrc or package.json:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"parserOptions": {
			"ecmaVersion": 2018,
			"sourceType": "module"
		},
		"plugins": [
			"strict-vue"
		],
		"rules": {
			"strict-vue/require-jsdoc": "error",
			"strict-vue/no-root-store-calls": "error",
			"strict-vue/no-root-store-assets": "error",
		}
	}
}

🎭 Rules

License

MIT

About

Vue eslint plugin with rules to make you code stricter: enforce jsdoc, restrict rootGetters, rootState and more.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published