npm.io
1.0.0 • Published 6 years ago

@nicolassiufe/eslint-config

Licence
MIT
Version
1.0.0
Deps
0
Size
13 kB
Vulns
0
Weekly
0
Stars
1

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 ;-)