Skip to content

Mile6 coding standards for for JS. Specifically for use in our Vue.js projects

Notifications You must be signed in to change notification settings

mile6/eslint-config-mile6-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Mile6 coding standards for for JS. Specifically for use in our Vue.js projects

Resources

Stars

Watchers

Forks

Packages

No packages published