3.2.0 • Published 5 years ago
eslint-config-eyeo v3.2.0
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-eyeoUsage
To lint a JavaScript file using ESLint you run the eslint command with the
file as an argument. For example:
eslint some-file.jsFor 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.