New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-typescript-tc

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-typescript-tc

ESLint shareable config for TypeScript projects

  • 10.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

eslint-config-typescript-tc

ESLint shareable config for TypeScript projects

license npm ci

What is eslint-config-typescript-tc?

Shared configuration for ESLint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file!

How do I install it?

First thing first, let's make sure you have the necessary pre-requisites.

System Dependencies

Node
  • Node.js - v16.0.0+
  • npm - v8.0.0+

Command

npx install-peerdeps --dev eslint-config-typescript-tc

@typescript-eslint/parser and eslint-config-prettier are peer dependencies and must be installed.

This module works best when paired with eslint-config-tc. Please follow its install instructions.

Usage

Add the following to your .eslintrc.js file:

module.exports = {
  extends: ['eslint-config-tc', 'eslint-config-typescript-tc'],
  parserOptions: {
    project: './tsconfig.json',
    tsconfigRootDir: __dirname,
  },
};

If you need to override a rule, your .eslintrc.js file should look like the example below. All shared rules will be used, but @typescript-eslint/array-type will be turned off.

module.exports = {
  	extends: ['eslint-config-tc', 'eslint-config-typescript-tc'],
  	parserOptions: {
    	project: './tsconfig.json',
   	 	tsconfigRootDir: __dirname,
  	},
	"rules": {
		"@typescript-eslint/array-type": "off"
	}
};

Contributing

Please see the CONTRIBUTING.md file for more information.

Change Log

Please see the CHANGELOG.md for more information.

License

Copyright (c) 2020-2023 Thomas Lindner. Licensed under the MIT license.

Keywords

FAQs

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