1.0.13 • Published 5 years ago

@visuallylab/tslint-config-frontend v1.0.13

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

tslint-config-frontend

Lint rules related to web frontend development using React

Prerequisite

  1. tslint
  2. typescript
  3. prettier

Usage

Follow these steps to use the rules in tslint, and enable the pre-commit hook. 1. Install the package

npm install --save-dev @visuallylab/tslint-config-frontend lint-staged husky

or

yarn add --dev @visuallylab/tslint-config-frontend lint-staged husky
  1. Add config in tslint.json
{
  "extends": "@visuallylab/tslint-config-frontend"
}
  1. Add configs to the package.json of your project
{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{ts,tsx,js,json,css,md}": ["prettier --write", "git add"]
  },
  "prettier": {
  "singleQuote": true,
  "jsxSingleQuote": false,
  "trailingComma": "all"
  }
}
1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

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.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago