This package has been deprecated

Author message:

Package no longer supported.

eslint-plugin-microsoft-typescript

0.2.0 • Public • Published

eslint-plugin-microsoft-typescript

GitHub license npm version Travis (.com) master npm downloads

Installation

Make sure you have TypeScript and @typescript-eslint/parser installed, then install the plugin:

$ npm i eslint-plugin-microsoft-typescript --save-dev

Usage

Add @typescript-eslint/parser to the parser field and eslint-plugin-microsoft-typescript to the plugins section of your .eslintrc configuration file:

{
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  }, 
  "plugins": ["microsoft-typescript"]
}

Then configure the rules you want to use under the rules section.

{
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "plugins": ["microsoft-typescript"],
  "rules": {
    "microsoft-typescript/rule-name": "error"
  }
}

Rules

  • object-literal-surrounding-space
  • no-type-assertion-whitespace
  • type-operator-spacing
  • only-arrow-functions
  • no-double-space
  • boolean-trivia
  • no-in-operator
  • debug-assert
  • no-keywords

License and Copyright

This software is released under the terms of the MIT license.

Package Sidebar

Install

npm i eslint-plugin-microsoft-typescript

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

27.6 kB

Total Files

15

Last publish

Collaborators

  • otarasiuk