3.0.2 • Published 6 years ago

tslint-config-shopify v3.0.2

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

tslint-config-shopify

Circle CI David-DM

Shopify’s TSlint rules and configs.

Installation

Install TSlint and tslint-config-shopify:

With Yarn

yarn add --dev tslint tslint-config-shopify

With npm

npm install tslint tslint-config-shopify --save-dev

Usage

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

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

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-shopify may not be sufficient for your project. You can override these rules in tslint.json:

{
  "extends": "tslint-config-shopify",
  "rules": {
    "no-console": false
  }
}
3.0.2-alpha.5

6 years ago

3.0.2

6 years ago

3.0.2-alpha.2

6 years ago

3.0.2-alpha.1

6 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago