Skip to content

wildbit/eslint-config-wildbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-wildbit

Wildbit-specific config for ESLint

Installation

  1. npm install --save-dev eslint eslint-plugin-react wildbit/eslint-config-wildbit
  2. Add following block to package.json
"eslintConfig": {
    "extends": [
      "eslint-config-wildbit"
    ]
  }

Adding a pre-commit hook

Linting makes more sense when running before committing the code.

To add a pre-commit task:

  1. npm install -D pre-commit lint-staged
  2. Add "eslint-staged": "eslint-staged" to scripts section of package.json
  3. Add "pre-commit": [ "eslint-staged" ] to package.json

About

Wildbit-specific config for ESLint

Resources

License

Stars

Watchers

Forks

Packages

No packages published