1.1.0 • Published 5 years ago

@clickagy/eslint-config v1.1.0

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

ESlint config

npm (scoped with tag) npm

Table of Contents

Installation

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

Create an .eslintrc file

For simple babel projects

{
  "root": true,
  "extends": ["@clickagy"]
}

For Vue projects

{
  "root": true,
  "extends": ["@clickagy/eslint-config/vue"]
}

For Nuxt projects

{
  "root": true,
  "extends": ["@clickagy/eslint-config/nuxt"]
}

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 ."
}
1.1.0

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago