1.0.0 • Published 4 years ago
@nicolassiufe/eslint-config v1.0.0
Yet another eslint config
how to use
- In your project root directory, create a .eslintrc.js file
module.exports = {
"extends": "@nicolassiufe/eslint-config"
}
- Install eslint-config-haina
tnpm i -D @nicolassiufe/eslint-config eslint
- In your package.json, add a script
{
"scripts": {
"lint": "eslint --fix --ext .js,.vue src"
}
}
- Before you commit code, type npm run lint to check your code OR use husky to hook precommit ;-)
1.0.0
4 years ago