1.0.1 • Published 4 years ago

eslint-config-nuxt-sohocl v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Opinionated Linter and Formatter for Nuxt projects

Be sure to have eslint extension in vscode

https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

Run

npm i eslint-config-sohocl

Create .eslintrc.js file in root project and add these lines

module.exports = {
  extends: 'eslint-config-sohocl'
}

Then, you can add lint and lintfix scripts to your package.json:

"scripts": {
  "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
  "lintfix": "eslint --fix --ext .js,.vue --ignore-path .gitignore ."
}