@kapouer/eslint-config

2.0.0 • Public • Published

eslint-config

How to use

npm install --save-dev @kapouer/eslint-config

In package.json:

"eslintConfig": {
 "extends": "@kapouer/eslint-config",
 "globals": {
  "HttpError": true
 },
 "overrides": [
  {
   "files": [
    "models/**",
    "resources/**",
    "routes/**",
    "app.js"
   ],
   "env": {
    "node": true,
    "es6": true
   }
  },
  {
   "files": [
    "public/js/**"
   ],
   "env": {
    "browser": true
   }
  }
 ]
}

It's a good idea to override files/env as they usually depend on the project.

Using pnpm ?

Put these into your ~/.npmrc

public-hoist-pattern[]=eslint
public-hoist-pattern[]=eslint-*
public-hoist-pattern[]=@kapouer/eslint-plugin-no-return-in-loop

Readme

Keywords

Package Sidebar

Install

npm i @kapouer/eslint-config

Weekly Downloads

11

Version

2.0.0

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • kapouer