1.1.0 • Published 5 years ago

tslint-config-lalilo v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

tslint-config-lalilo

Lalilo shared tslint rules.

install

yarn add --dev tslint tslint-config-lalilo tslint-config-prettier

Then create a file tslint.json

{
  "extends": ["tslint-config-lalilo"]
}

lint integration

We recommend you also set up these points:

make sure lint script is setup and run during continuous integration

{
  "scripts": {
    "tslint": "tslint --project ."
  }
}

automatically lint before commit

yarn add --dev lint-staged husky pretty-quick

In package.json:

{
  "lint-staged": {
    "*.{js,ts}": ["tslint --fix", "git add"]
  },
  "husky": {
    "hooks": {
      "pre-commit": "pretty-quick --staged && lint-staged"
    }
  }
}

how to deploy a new version?

Pick one of these commands:

yarn version --patch
yarn version --minor
yarn version --major

Then:

git push

CircleCI takes care of deploying to npm registry from tagged commits (yarn version tags the commit).

how to test the config locally?

In this repo run:

yarn link

In the repo where you use this package run:

yarn link tslint-config-lalilo
1.1.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago