0.2.0 • Published 5 years ago

eslint-plugin-microsoft-typescript v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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.

0.2.0

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago