Branch: master
Find file History
bradzacher chore(*): Enable comma-dangle (#271)
As per the discussion on slack.
Enable `comma-dangle` eslint rule + prettier config.
Good for two reasons:
1) (the main reason) It will create less noise in PRs:
```diff
 {
-  "foo": true
+  "foo": true,
+  "bar": false
 }
```
2) It makes reordering members easier because there is always a comma at the end.

----

Steps to create this PR:
1) add line in eslint config
2) add prettier config
3) run `yarn format`
4) ???
5) profit.

No other code was manually touched in the making of this PR.
Latest commit 1d9ca84 Feb 19, 2019

README.md

ESLint Plugin TSLint

ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.

Azure Pipelines GitHub license NPM Version NPM Downloads Commitizen friendly

Installation

npm i @typescript-eslint/eslint-plugin-tslint --save-dev

Usage

Configure in your eslint config file:

{
  "plugins": [
    "@typescript-eslint/tslint"
  ],
  "parserOptions": {
      "project": "tsconfig.json",
  },
  "rules": {
    "@typescript-eslint/tslint/config": ["warn", {
      "lintFile": "", // path to tslint.json of your project
      "rules": {
        // tslint rules (will be used if `lintFile` is not specified)
      },
      "rulesDirectory": [
        // array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' (will be used if `lintFile` is not specified)
      ]
    }],
  }
}

Note: The ability to automatically fix problems with --fix is unavailable for tslint rules loaded with this plugin.

Rules

Plugin contains only single rule @typescript-eslint/tslint/config.

Examples

TSLint Plugins