@kalan3/eslint-config

1.0.1 • Public • Published

ESlint config

npm (scoped with tag) npm

Table of Contents

Installation

Add this package and its peerDependencies to your devDependencies

npm i -D @kalan3/eslint-config eslint babel-eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise

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": ["@kalan3"]
}

For Vue projects

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

For Nuxt projects

{
  "root": true,
  "extends": ["@kalan3/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 ."
}

Package Sidebar

Install

npm i @kalan3/eslint-config

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

8.94 kB

Total Files

10

Last publish

Collaborators

  • kalan3