Skip to content

micro-tools/eslint-config-micro-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-micro-tools

Shareable eslint config as used by micro-tools and nodefluent.

Setup

Install this module (and eslint) and add it to package.json's devDependencies:

npm install -D eslint-config-micro-tools

Create a basic .eslintrc.json file in your project's root:

{
    "extends": "eslint-config-micro-tools"
}

Add your own rules/global to this config file.

Optional

  • add a run script to your package.json:

  "scripts": {
    
    "lint": "eslint .",
    
  },
  • create an .eslintignore to exclude generated code, e.g. istanbul coverage reports

Commit-Hook

This package will install a pre-commit-hook into your project that runs "npm run lint" prior each commit.

Disabling rules

If you want to disable specific rules selectively see eslint documentation.

About

the best eslint configuration so far

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published