
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@lockerstock/react-tsconfig
Advanced tools
A TypeScript config basis. Includes, tsconfig, tslint, tslint.commit, and prettier configurations.
A TypeScript config basis. Includes, tsconfig, tslint, tslint.commit, and prettier configurations.
npm install --save-dev @lockerstock/react-tsconfig
yarn add @lockerstock/react-tsconfig --dev
This tool has peer dependencies and will download them as needed.
Reference it in package.json using the prettier property:
{
"name": "my-projects-name",
"prettier": "@lockerstock/react-tsconfig",
"devDependencies": {
"@lockerstock/react-tsconfig": "^1.0.0",
"husky": "^4.3.0",
"lint-staged": "^10.3.0",
"prettier": "^2.1.1"
},
"scripts": {
"lint": "tslint --project tsconfig.json -c tslint.commit.json --fix"
},
"lint-staged": {
"src/**/*.{ts,tsx}": ["yarn lint", "prettier --write"]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}
Extend the config in tsconfig.json
{
"extends": "@lockerstock/react-tsconfig/tslint.json"
}
Extend the config in tslint.json
{
"extends": "@alehechlockerstockka/react-tsconfig/tslint.json"
}
Extend the config in tslint.commit.json
{
"extends": ["@lockerstock/react-tsconfig/tslint.commit.json"]
}
If you're using VS Code, turn on the formatOnSave feature by adding .vscode/settings.json:
{
"editor.formatOnSave": true
}
FAQs
A TypeScript config basis. Includes, tsconfig, tslint, tslint.commit, and prettier configurations.
We found that @lockerstock/react-tsconfig 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.