2.0.0 • Published 4 years ago

@equisoft/tslint-config-react v2.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

Equisoft's TSLint configuration

This project hosts Equisoft's TSLint configuration for React project. It is aimed to be used alongside the base Equisoft's TSLint configuration, @equisoft/tslint-config.

Versioning

The versioning of this project respects semver. That means your project's package.json can caret (^) import it.

Installation

Install the libraries in your project:

yarn add --dev @equisoft/tslint-config @equisoft/tslint-config-react tslint

Then create a tslint.json file that uses Equisoft's configuration:

{
  "extends": [
    "@equisoft/tslint-config",
    "@equisoft/tslint-config-react"
  ]
}

Finally create a script in your package.json to easily run TSLint:

{
  "scripts": {
    "tslint": "tslint -p tsconfig.json 'src/**/*.{ts,tsx}'",
    "tslint:ci": "yarn tslint --format junit -o build/tests/tslint/junit.xml"
  }
}

Now you can use yarn tslint to validate the code style of your TypeScript files!

Additional steps

Read the main configuration (@equisoft/tslint-config) to get more details on how to bootstrap your TypeScript project using Equisoft's strict set of rules.