0.2.0 • Published 6 years ago
eslint-plugin-microsoft-typescript v0.2.0
eslint-plugin-microsoft-typescript
Installation
Make sure you have TypeScript and @typescript-eslint/parser installed, then install the plugin:
$ npm i eslint-plugin-microsoft-typescript --save-devUsage
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-spaceno-type-assertion-whitespacetype-operator-spacingonly-arrow-functionsno-double-spaceboolean-triviano-in-operatordebug-assertno-keywords
License and Copyright
This software is released under the terms of the MIT license.