5.11.2 • Published 5 years ago
tslint-config-airbnb v5.11.2
TSLint Config Airbnb
This package is deprecated
Migrate to eslint
Remove
tslint.json
Remove lines from
tsconfig.json
if included
"plugins": [
{
"name": "typescript-tslint-plugin"
}
],
- Replace packages
$ npm uninstall tslint tslint-config-airbnb
$ npm uninstall typescript-tslint-plugin
$ npm install --dev eslint @typescript-eslint/eslint-plugin eslint-config-airbnb
$ npx install-peerdeps --dev eslint-config-airbnb
- Create
.eslintrc.json
{
"extends": ["airbnb"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"import/no-unresolved": 0,
"react/jsx-filename-extension": {
"extensions": [
".jsx",
".tsx"
]
}
}
}
With webpack
{
:
"rules": {
:
"import/extensions": [".js", ".json", ".jsx", ".ts", ".tsx"],
:
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
}
:
}
- if you are using Visual Studio Code, add to
vscode's settings.json
{
"[typescript]": {
"editor.formatOnSave": false,
},
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
]
}
Installation
npm install tslint-config-airbnb --save-dev
Usage
In tslint.json
:
{
"extends": "tslint-config-airbnb"
}
Rules
Versioning
+----- Major version is synchronize with tslint's major version.
| +--- Minor version has BREAKING CHANGE and feat.
| | +- Patch version has patch.
| | |
x.x.x
License
Apache 2.0
5.11.2
5 years ago
5.11.1
5 years ago
5.11.0
6 years ago
5.10.0
6 years ago
5.9.2
6 years ago
5.9.1
6 years ago
5.9.0
6 years ago
5.8.0
6 years ago
5.7.0
6 years ago
5.6.0
6 years ago
5.5.0
6 years ago
5.4.2
6 years ago
5.4.1
6 years ago
5.4.0
6 years ago
5.3.1
6 years ago
5.3.0
7 years ago
5.3.0-beta
7 years ago
5.2.1
7 years ago
5.2.0
7 years ago
5.1.2
7 years ago
5.1.1
7 years ago
5.1.0
7 years ago
5.0.1
7 years ago
5.0.0
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago