0.2.1 • Published 3 years ago
@cgnal/eslint-config v0.2.1
CGnal ESLint rules
Linting rules for CGnal's JavaScript projects.
Installation
npm install @cgnal/eslint-config --save-devThe package requires the following peer dependencies:
eslint>=7eslint-plugin-import>=2if you're using JS ruleseslint-plugin-react>=7if 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 bumpupdates version number using an interactive shellnpm run checkvalidates all rules and performs the linting checknpm run check-jsvalidates JS rulesnpm run check-reactvalidates React rulesnpm run check-rulesvalidates all rulesnpm run lintperforms the linting check