
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
eslint-config-typescript-airbnb
Advanced tools
Eslint airbnb configuration configuration for typescript
This package provides Airbnb's JS .eslintrc as an extensible shared config.
npm info "eslint-config-typescript-airbnb@latest" peerDependencies
if you using npm 5+, use this shortcut
npx install-peerdeps --dev eslint-config-typescript-airbnb
This will work with yarn, npx will detect that you are using yarn and install dependencies via yarn.
Add "extends": "typescript-airbnb"
to your .eslintrc.
For non React applications use "extends": "typescript-airbnb/base"
Edit package.json
file and following scripts
"lint": "eslint --ext .ts,.tsx 'src/**/*.ts?'"
"lint:fix": "yarn lint --fix",
"lint": "eslint --ext .ts,.tsx 'src/**/*.ts?'"
"lint:fix": "npm run lint -- --fix",
tslint
eslint
help
> find actions
ts,tsx
to eslint.additional.file.extensions
Webstorm cannot have eslint fix on save
You should uninstall tslint
and Prettier
from extensions.
File
> Preferences
> Settings
Edit in settings.json
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
]
Eslint: Auto Fix On Save
This config was inspired by eslint-config-react-app and eslint-config-airbnb.
FAQs
Eslint airbnb configuration configuration for typescript
We found that eslint-config-typescript-airbnb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.