GlebkaF / eslint-plugin-strict-vue

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:JavaScript 100.0%