Skip to content

ESLint shareable config for the Vacuumlabs JavaScript style guide

License

Notifications You must be signed in to change notification settings

vacuumlabs/eslint-config-vacuumlabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-vacuumlabs

ESLint shareable config for the VacuumLabs JavaScript style guide.

Installation

$ yarn add --dev eslint babel-eslint eslint-config-vacuumlabs eslint-plugin-react eslint-plugin-import

Config

Once the eslint-config-vacuumlabs package is installed, you can use it by specifying vacuumlabs in the extends section of your ESLint configuration.

{
  "extends": "vacuumlabs",
  "rules": {
    // Additional, per-project rules...
  }
}

Running eslint

Run locally-installed eslint on the current folder:

`npm-which eslint` .

For running as a npm script, put this to package.json (this also uses local eslint)

"scripts": {
  "eslint": "eslint .",
  ...
}

If you want eslint to fail on warnings (you usually want this on the CI environment)

"scripts": {
  "eslint": "eslint . --max-warnings=0",
  ...
}

Eslint also supports silencing warnings using --quiet option. You can use this during rapid development, especially if you find a way how to hack --quiet option into your eslint-editor integration.

About

ESLint shareable config for the Vacuumlabs JavaScript style guide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •