tslint-config-shopify
Shopify's baseline TSLint config.
Last updated 2 years ago by shopify-dep .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tslint-config-shopify 
SYNC missed versions from official npm registry.

tslint-config-shopify

Circle CI David-DM

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

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
  }
}

Current Tags

  • 3.0.2                                ...           latest (2 years ago)
  • 3.0.2-alpha.5                                ...           next (2 years ago)

20 Versions

  • 3.0.2-alpha.5                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.2-alpha.2                                ...           2 years ago
  • 3.0.2-alpha.1                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 1
Last Month 43
Dependencies (1)
Dev Dependencies (12)

Copyright 2014 - 2016 © taobao.org |