Package Exports
- eslint-plugin-typescript
- eslint-plugin-typescript/lib/rules/explicit-member-accessibility
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-typescript
TypeScript support for ESLint. (This is still in the very early stages, so please be patient.)
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install typescript-eslint-parser:
$ npm install typescript-eslint-parser --save-devLast, install eslint-plugin-typescript:
$ npm install eslint-plugin-typescript --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-typescript globally.
Usage
Add typescript-eslint-parser to the parser field and typescript to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"parser": "typescript-eslint-parser",
"plugins": [
"typescript"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"typescript/rule-name": "error"
}
}Supported Rules
typescript/type-annotation-spacing- enforces one space after the colon and zero spaces before the colon of a type annotation.typescript/explicit-member-accessibility- enforces accessibility modifiers on class properties and methods.