3.0.2 • Published 6 years ago

tslint-config-minoris v3.0.2

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

tslint-config-minoris

Circle CI David-DM

⚠️ Deprecated: use eslint-plugin-shopfiy instead ⚠️

Minoris’s TSlint rules and configs.

Installation

Install TSlint and tslint-config-minoris:

With Yarn

yarn add --dev tslint tslint-config-minoris

With npm

npm install tslint tslint-config-minoris --save-dev

Usage

Minoris’s TSLint rules come bundled in tslint-config-minoris. To enable these rules, create a tslint.json file at the root level of your project, and extend tslint-config-minoris.

{
  "extends": "tslint-config-minoris"
}

Now you can run TSLint by adding the following linting script to your package.json. See here for more script configurations.

{
  "scripts": {
    "lint": "tslint './src/**/*.{ts,tsx}' --project tsconfig.json"
  }
}

Run it:

With Yarn

yarn run tslint

With npm

npm run tslint

Configuration

  • See here for more details on configuring your tslint.json.
  • See here for all the rules provided by TSlint

Some of the rules configured in tslint-config-minoris may not be sufficient for your project. You can override these rules in tslint.json:

{
  "extends": "tslint-config-minoris",
  "rules": {
    "no-console": false
  }
}