包详细信息

@bigcommerce/tslint-config

bigcommerce5kMIT4.1.0

Default TSLint configuration used at BigCommerce

自述文件

@bigcommerce/tslint-config

This package is a configuration preset for TSLint. It contains a set of rules applied to most TypeScript projects at BigCommerce.

Install

npm install --save-dev @bigcommerce/tslint-config

Usage

Add @bigcommerce/tslint-config to your project's TSLint configuration file. i.e.:

{
    "extends": "@bigcommerce/tslint-config"
}

If possible, try not to override the preset unless you have a special reason.

Release

To release:

npm run release

Please refer to the documentation of standard-version for more options.

License

MIT

更新日志

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

4.1.0 (2020-03-10)

Features

  • common: CHP-6324 Disable object-literal-sort-keys (#21) (db7dfd7)

4.0.1 (2019-07-16)

Bug Fixes

  • common: CHECKOUT-4136 Exclude json files no matter where tslint is placed (67f6a93)

4.0.0 (2019-07-09)

Bug Fixes

  • common: CHECKOUT-4231 Remove preblock because it requires an empty spaces for empty objects (36002c6)
  • common: FE-40 Prevent tslint from processing json files (f01995a)

Features

  • common: CHECKOUT-4231 Add more whitespace checking (3fd08ed)
  • common: CHECKOUT-4231 Add no-async-without-await (beeeff4)
  • common: CHECKOUT-4231 Enable no-duplicate-imports (922b1ad)
  • common: CHECKOUT-4231 Enforce ; as the type terminator (c489bc9)

3.0.2 (2019-01-20)

Bug Fixes

  • common: FE-33 Remove no-unused-variable since it is deprecated (be050d2)

3.0.1 (2018-12-16)

Bug Fixes

  • core: CHECKOUT-3790 Make sure trailing comma is ES compliant (b5cc2ce)

3.0.0 (2018-11-30)

Features

  • core: CHECKOUT-3079 Enable no-non-null-assertion rule (7d4fde1)

BREAKING CHANGES

  • core: Using ! assertion is now considered to be an error.

2.0.2 (2018-06-20)

Bug Fixes

  • common: MERC-3598 Allow tagged template literals (d2ad2e0)

2.0.1 (2018-04-27)

2.0.0 (2018-04-22)

Features

  • core: CHECKOUT-3079 Enable cyclomatic-complexity rule (f5f7081)
  • core: CHECKOUT-3079 Enable match-default-export-name rule (1483d14)
  • core: CHECKOUT-3079 Enable newline-before-return rule (f2b409c)
  • core: CHECKOUT-3079 Enable newline-per-chained-call rule (832fb26)
  • core: CHECKOUT-3079 Enable no-used-variable rule (bf74ca3)
  • core: CHECKOUT-3079 Enable prefer-method-signature rule (4461478)
  • core: CHECKOUT-3092 Enable no-unnecessary-type-assertion rule (d9ebe2e)

BREAKING CHANGES

  • core: Default modules must be imported and exported with the same name.
  • core: Throw an error if there is an unnecessary type assertion.
  • core: You must now define methods as foo(): void in interfaces and types.
  • core: You must now have a blank line before any return statement.
  • core: You must now remove all unused variables.
  • core: Chained method calls now need to be broken apart onto separate lines.
  • core: Your linter now complains if your code exceeds the cyclomatic complexity threshold.

1.0.0 (2018-04-12)

Features

  • core: CHECKOUT-3079 Extract TSLint recommended preset into standalone file (6b6a641)