- If you haven't already, install Eslint:
npm install eslint --save-dev. - Install the CSNW Linter using the latest release tag. See tags here.For example:
npm install https://github.com/CSNW/csnw-linter.git#v1.0.3. - Install the "Eslint" VS Code extension (by Dirk Baeumer).
- Create an
.eslintrcfile in the project root (or update the existing one) and add{"extends": "@csnw/eslint-config-csnw"}. You are free to further define project specific rules and exceptions here (examples here) - To enable automatic small fixes on file save, add
"eslint.autoFixOnSave": trueto VSCodesettings.json. - See Also: https://github.com/CSNW/onboarding-standards
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
CSNW/csnw-linter
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|