@cgnal/eslint-config
v0.2.1
Published
Linting rules for CGnal's JavaScript projects.
Downloads
7
Readme
CGnal ESLint rules
Linting rules for CGnal's JavaScript projects.
Installation
npm install @cgnal/eslint-config --save-dev
The package requires the following peer dependencies:
eslint
>=7
eslint-plugin-import
>=2
if you're using JS ruleseslint-plugin-react
>=7
if you're using React rules
Usage
Add the rulesets you want in the extends
section of your ESLint configuration file.
e.g. to use both JS and React's rules:
// ...
extends: [
"@cgnal/eslint-config/js",
"@cgnal/eslint-config/react"
]
// ...
npm scripts
npm run bump
updates version number using an interactive shellnpm run check
validates all rules and performs the linting checknpm run check-js
validates JS rulesnpm run check-react
validates React rulesnpm run check-rules
validates all rulesnpm run lint
performs the linting check