eslint-config-eyeo
v3.2.0
Published
ESLint configuration as used by eyeo.
Downloads
13,460
Maintainers
Readme
eslint-config-eyeo
An ESLint configuration that checks for compliance with the Adblock Plus coding style guide which is used for all eyeo projects.
Installation
npm install -g eslint eslint-config-eyeo
Usage
To lint a JavaScript file using ESLint you run the eslint
command with the
file as an argument. For example:
eslint some-file.js
For advanced usage see eslint --help
.
In order to use eslint-config-eyeo your project's ESLint configuration should extend from it. A minimal example looks like this:
{
"extends": "eslint-config-eyeo",
"root": true
}
For projects without an ESLint configuration you can create your own
personal configuration in ~/.eslintrc.json
, but take care to remove
the "root": true
section from the above example.