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

eslint-config-standard-with-typescript

Package Overview
Dependencies
Maintainers
13
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-standard-with-typescript

An ESLint Shareable Config for JavaScript Standard Style with TypeScript support

  • 43.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
578K
decreased by-1.48%
Maintainers
13
Weekly downloads
 
Created

What is eslint-config-standard-with-typescript?

The eslint-config-standard-with-typescript package is an ESLint shareable config that extends the popular eslint-config-standard with TypeScript support. It provides a set of rules and configurations to enforce standard JavaScript and TypeScript coding styles, ensuring code quality and consistency across projects.

What are eslint-config-standard-with-typescript's main functionalities?

Standard JavaScript Style

This configuration extends the standard JavaScript style guide with TypeScript support. It ensures that your code adheres to a consistent style, making it easier to read and maintain.

{"extends":["standard-with-typescript"],"parserOptions":{"project":"./tsconfig.json"}}

TypeScript Specific Rules

This configuration includes TypeScript-specific rules, such as enforcing explicit return types for functions and warning about unused variables. These rules help catch common TypeScript issues early in the development process.

{"extends":["standard-with-typescript"],"parserOptions":{"project":"./tsconfig.json"},"rules":{"@typescript-eslint/explicit-function-return-type":"error","@typescript-eslint/no-unused-vars":"warn"}}

Integration with Prettier

This configuration can be extended to integrate with Prettier, a code formatter. This ensures that your code is not only linted but also formatted according to a consistent style, reducing the need for manual formatting.

{"extends":["standard-with-typescript","prettier"],"parserOptions":{"project":"./tsconfig.json"}}

Other packages similar to eslint-config-standard-with-typescript

Keywords

FAQs

Package last updated on 20 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