@scalio-oss/scalio-linter

Company wide linter for angular projects

Usage no npm install needed!

<script type="module">
  import scalioOssScalioLinter from 'https://cdn.skypack.dev/@scalio-oss/scalio-linter';
</script>

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

  1. Install all dependencies

yarn add prettier stylelint stylelint-config-rational-order tslint tslint-config-prettier tslint-plugin-prettier

  1. Install this package

yarn add @scalio-oss/scalio-linter

  1. Update all config files

npx scalio-lint-install

  1. Add linting to package.json
...
"scripts": {
    ...
    "lint": "scalio-lint",
    ...
  1. 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

  1. Add your favourite linting rules to

src/${packageName}/install-${packageName}.ts

  1. Update this README.md
  2. Report bugs

Contact

You can ping me (Nikita Kolozv nikita@scal.io) wherever you want.