Renault Digital ESLint config
Installation
npm install --save-dev @renault-digital/lint-config
yarn add --dev @renault-digital/lint-config
Then, configure ESLint with one or more .eslintrc.json
files as
appropriate.
Example configurations
Bellow are some recommended uses:
A typical Server project with NodeJS and Mocha tests
.eslintrc.json
:
{
"extends": "@renault-digital/lint-config/server"
}
Lint your Gherkin features
package.json
:
{
"test:lint:gherkin" : "gherkin-lint -c node_modules/@renault-digital/lint-config/gherkin.json"
}
Lint your Markdown
package.json
:
{
"test:lint:md" : "markdownlint *.md --config node_modules/@renault-digital/lint-config/markdownlint.json"
}
Proposing changes
Major changes should be discussed GitHub.
Semver policy
Same approach as in ESLint, see Semantic Versioning Policy.