Skip to content

kapouer/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published