@mile6/eslint-config-mile6-vue

1.1.1 • Public • Published

eslint-config-mile6-vue

Install package and dependencies

npx install-peerdeps --dev @mile6/eslint-config-mile6-vue

Create and configure your .eslintrc.js

touch .eslintrc.js

Add the following to your .eslintrc.js

{
	"extends": "@mile6/mile6-vue"
}

Add scripts to package.json

Add the following two script to your package.json file.

You'll need to replace <src> with the location of the files you'd like ESLint to target. This may be different for each project.

"scripts": {
	"lint": "eslint --ext .ts,.js,.vue <src>",
	"lint:fix": "eslint --ext .ts,.js,.vue <src> --fix"
},

Run lint

Will display any errors or warnings ESLint finds in the codebase

npm run lint

Run fix

Will attempt to fix any errors or warnings that ESLint finds

npm run lint:fix

Package Sidebar

Install

npm i @mile6/eslint-config-mile6-vue

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

9.64 kB

Total Files

6

Last publish

Collaborators

  • jim_rhoades
  • michaeldeck
  • patschmitt
  • t_eisenhower