Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@putstack/eslint-config-typescript

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putstack/eslint-config-typescript

ESLint config for TypeScript

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

An ESLint configuration by Putro

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.

Installation

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

Usage

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.

Add this to your config by editing your .eslintrc.cjs or equivalent.

{
    extends: ['@putstack/typescript'],
}

If the default is too strict on an existing project, you can also use the baseto exclude some of the more strict rules. To see what is dincluded in which package, please view this section.

{
    extends: ['@putstack/typescript/base']
}

Example

This project uses the configuration on itself, as seen in the root .eslintrc.cjs file.

ESLint rules

ESLint PLugins and Configurations

This is a list of the plugins and configurations that are extended from.

Base

Plugins
Configurations

Recommended extends the base setup further to add additional rules, therefore it also includes all the rules above.

Plugins
  • eslint-plugin-unicorn - This plugin provides more than 100 powerful ESLint rules of which many are auto-fixable making it easy to fix any issues that arise!
Configurations

Keywords

FAQs

Package last updated on 13 Jan 2024

Did you know?

Socket

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.

Install

Related posts

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