1.2.0 • Published 7 years ago
@episerver/eslint-config v1.2.0
eslint-config-episerver
ESLint shareable config for the Episerver JavaScript style guide
Installation
yarn
yarn add --dev eslint-config-episervernpm
npm install --save-dev eslint-config-episerverUsage
Once the eslint-config-episerver package is installed, you can use it by specifying episerver in the extends section of your ESLint configuration.
{
"extends": "episerver",
"rules": {
// Additional, per-project rules...
}
}Using the episerver config with eslint:recommended
There are several rules in the eslint:recommended ruleset that the Episerver style is not opinionated about that you might want to enforce in your project.
To use the Episerver style in conjunction with ESLint's recommended rule set, extend them both, making sure to list episerver last:
{
"extends": ["eslint:recommended", "episerver"],
"rules": {
// Additional, per-project rules...
}
}License
MIT © Episerver
1.2.0
7 years ago