eslint-config-opuscapita
v2.0.10
Published
OpusCapita ESLint config, following our styleguide
Downloads
91
Keywords
Readme
OpusCapita ESLint config
Synopsis
This package provides OpusCapita's base .eslintrc as an extensible shared config.
Motivation
ESLint is a tool for guarantee a code style consistency across developers team. It helps to take a code more clear and readable. For example it detects an unused variables. Also with linting you automatically avoid common pit-falls
Usage
Our default export contains all of our ESLint rules, including ECMAScript 2015+ and React.
It requires:
npm install --save-dev -E eslint-config-opuscapita [email protected] [email protected] [email protected]
- add
"extends": "opuscapita"
to your .eslintrc
.eslintrc example:
{
"extends": "opuscapita",
"env": {
"jasmine": true,
"browser": true,
"node": true,
"es6": true
}
}
Tips
Rules reference
Editor configuration
It unnecessary to run npm run eslint
every time for error checking. Your editor able to highlight an errors on fly.
Some users prefer this way.
How to enable ESLint in your editor
Automatically fixing can be applied to some rules
npm run lint -- --fix
Contributors
- Kirill Volkovich [email protected]
- Daniel Zhitomirsky [email protected]
- Alexey Sergeev [email protected]
License
OpusCapita ESLint config is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.