eslint-config-vacuumlabs

10.2.0 • Public • Published

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.

Package Sidebar

Install

npm i eslint-config-vacuumlabs

Weekly Downloads

404

Version

10.2.0

License

Unlicense

Unpacked Size

8.32 kB

Total Files

4

Last publish

Collaborators

  • hleumas
  • tomas.kulich
  • jurom
  • marcelka
  • mlenik