- 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
.eslintrc
file 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": true
to VSCodesettings.json
. - See Also: https://github.com/CSNW/onboarding-standards
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
CSNW/csnw-linter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Linter based on CSNW style guide
Resources
Stars
Watchers
Forks
Packages 0
No packages published