ESlint config
Add this package and its peerDependencies to your devDependencies
npm i -D @clickagy/eslint-config eslint babel-eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
Optionally, if using on a Vue or Nuxt project, also install eslint-plugin-vue
npm i -D eslint-plugin-vue
{
"root": true,
"extends": ["@clickagy"]
}
{
"root": true,
"extends": ["@clickagy/eslint-config/vue"]
}
{
"root": true,
"extends": ["@clickagy/eslint-config/nuxt"]
}
"scripts": {
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lintfix": "eslint --fix --ext .js,.vue --ignore-path .gitignore ."
}