eslint-config-ts
v4.0.1
Published
Node Style Guide for Typescript
Downloads
517
Maintainers
Readme
eslint-config-ts
Node Style Guide for Typescript.
💿 Installation
$ npm i eslint eslint-config-ts typescript -D
Requirements
- Node.js
^6.5.0
,^8.0.0
,^9.0.0
or newer versions. - ESLint
^4.19.1
or newer versions.
📖 Usage
.eslintrc.js
module.exports = {
extends: 'eslint-config-ts',
};
Use with Experimental Features
If you want to use eslint-config-ts with experimental features, you should use babel-eslint
parser:
.eslintrc.js
module.exports = {
extends: 'eslint-config-ts',
parser: 'babel-eslint',
};
Use with React in Front-End
If you want to use eslint-config-ts with react, jsx and es6 modules:
.eslintrc.js
module.exports = {
extends: 'eslint-config-ts/react',
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
};
🚥 Semantic Versioning Policy
This plugin follows semantic versioning and ESLint's Semantic Versioning Policy.