New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tslint-config-airbnb

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-config-airbnb - npm Package Compare versions

Comparing version 5.11.1 to 5.11.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

<a name="5.11.2"></a>
## [5.11.2](https://github.com/progre/tslint-config-airbnb/compare/5.11.1...5.11.2) (2019-09-19)
<a name="5.11.1"></a>

@@ -2,0 +7,0 @@ ## [5.11.1](https://github.com/progre/tslint-config-airbnb/compare/5.11.0...5.11.1) (2018-11-15)

2

package.json
{
"name": "tslint-config-airbnb",
"description": "A TSLint config for Airbnb JavaScript Style",
"version": "5.11.1",
"version": "5.11.2",
"author": "progre",

@@ -6,0 +6,0 @@ "bugs": {

@@ -8,2 +8,88 @@ # TSLint Config Airbnb

---
## This package is deprecated
### Migrate to eslint
1. Remove `tslint.json`
2. Remove lines from `tsconfig.json` if included
```json
"plugins": [
{
"name": "typescript-tslint-plugin"
}
],
```
3. Replace packages
```bash
$ 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
```
4. Create `.eslintrc.json`
```json
{
"extends": ["airbnb"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"import/no-unresolved": 0,
"react/jsx-filename-extension": {
"extensions": [
".jsx",
".tsx"
]
}
}
}
```
With webpack
```json
{
:
"rules": {
:
"import/extensions": [".js", ".json", ".jsx", ".ts", ".tsx"],
:
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
}
:
}
```
5. if you are using Visual Studio Code, add to `vscode's settings.json`
```json
{
"[typescript]": {
"editor.formatOnSave": false,
},
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
]
}
```
---
## Installation

@@ -27,6 +113,6 @@

* [tslint](https://www.npmjs.com/package/tslint)
* [tslint-consistent-codestyle](https://www.npmjs.com/package/tslint-consistent-codestyle)
* [tslint-eslint-rules](https://www.npmjs.com/package/tslint-eslint-rules)
* [tslint-microsoft-contrib](https://www.npmjs.com/package/tslint-microsoft-contrib)
- [tslint](https://www.npmjs.com/package/tslint)
- [tslint-consistent-codestyle](https://www.npmjs.com/package/tslint-consistent-codestyle)
- [tslint-eslint-rules](https://www.npmjs.com/package/tslint-eslint-rules)
- [tslint-microsoft-contrib](https://www.npmjs.com/package/tslint-microsoft-contrib)

@@ -33,0 +119,0 @@ ## Versioning

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc