tslint-config-lalilo

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tslint-config-lalilo

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • nicgirault