🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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
Version published
Weekly downloads
641K
-23.07%
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

JavaScript Standard Style

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