
Product
Introducing Socket MCP for Claude Desktop
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
@putstack/eslint-config-typescript
Advanced tools
This ESLint setup should let any new (or existing) projects adhere to best practices within TypeScript and write fewer bugs as a result! The default version is quite strict, so an existing project might opt for using the base version, see more under Usage.
The latest version (v3 and up) is using the new flat configuration from eslint and eslint v9. If you are not ready for this change, please stick with 2.6.1
or below.
To install this package run the following command in the terminal in the root directory of your application.
pnpm install -D @putstack/eslint-config-typescript
OR
npm install --save-dev @putstack/eslint-config-typescript
OR
yarn add -D @putstack/eslint-config-typescript
Ensure that your ESLint configuration is setup to utilize TypeScript's type checking API by following this guide. Note that if you're using this in a monorepo, you SHOULD keep "project":"true"
despite that the guide says otherwise in my experience.
Add this to your config by editing your eslint.config.js file or equivalent. While it is not required, it is recommended to use the config helper from typescript-eslint
to help type your eslint configuration.
import putstack from '@putstack/eslint-config-typescript';
import { config } from 'typescript-eslint';
//export default [...putstack.configs.recommended];
export default config(putstack.configs.recommended);
If the default is too strict on an existing project, you can also use the base
configuration to exclude some of the more strict rules.
To see what is dincluded in which package, please view this section.
import putstack from '@putstack/eslint-config-typescript';
import { config } from 'typescript-eslint';
//export default [...putstack.configs.base];
export default config(putstack.configs.base);
This project uses the configuration on itself, as seen in the root eslint.config.js file.
This is a list of the plugins and configurations that are extended from.
item-1
, item-2
, item-10
.Recommended extends the base setup further to add additional rules, therefore it also includes all the rules above.
FAQs
ESLint config for TypeScript
The npm package @putstack/eslint-config-typescript receives a total of 2 weekly downloads. As such, @putstack/eslint-config-typescript popularity was classified as not popular.
We found that @putstack/eslint-config-typescript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.