@scalio-oss/scalio-linter
v1.1.1
Published
Company wide linter for angular projects
Downloads
7
Readme
Scal.io linter rules
This is collection of common tslint, prettier and stylelint configs used in scal.io
Installing linter
There are few super simple steps
- Install all dependencies
yarn add prettier stylelint stylelint-config-rational-order tslint tslint-config-prettier tslint-plugin-prettier
- Install this package
yarn add @scalio-oss/scalio-linter
- Update all config files
npx scalio-lint-install
- Add linting to package.json
...
"scripts": {
...
"lint": "scalio-lint",
...
- Install related browser extensions
https://marketplace.visualstudio.com/items?itemName=shinnn.stylelint
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
Using linter
Just lint:
yarn lint
Lint and try to autofix:
yarn lint --fix
Contributing to linter
- Add your favourite linting rules to
src/${packageName}/install-${packageName}.ts
- Update this README.md
- Report bugs
Contact
You can ping me (Nikita Kolozv [email protected]) wherever you want.