You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@tsconfig/node10

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsconfig/node10

A base TSConfig for working with Node 10.


Version published
Maintainers
2
Install size
2.26 kB
Created

Package description

What is @tsconfig/node10?

@tsconfig/node10 is a TypeScript configuration preset specifically tailored for Node.js version 10. It provides a set of default TypeScript compiler options that are optimized for developing Node.js applications using TypeScript.

What are @tsconfig/node10's main functionalities?

TypeScript Configuration Preset

This feature allows you to extend the default TypeScript configuration for Node.js 10 by simply referencing the preset in your `tsconfig.json` file. This helps in setting up a TypeScript project quickly with sensible defaults for Node.js 10.

{
  "extends": "@tsconfig/node10/tsconfig.json"
}

Node.js 10 Compatibility

The configuration ensures compatibility with Node.js 10 by setting the appropriate ECMAScript version and module system. This helps in leveraging the features available in Node.js 10 while maintaining compatibility.

{
  "compilerOptions": {
    "lib": ["es2018"],
    "module": "commonjs",
    "target": "es2018"
  }
}

Other packages similar to @tsconfig/node10

Readme

Source

A base TSConfig for working with Node 10.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/node10
yarn add --dev @tsconfig/node10

Add to your tsconfig.json:

"extends": "@tsconfig/node10/tsconfig.json"

The tsconfig.json:

{
  "$schema": "https://json.schemastore.org/tsconfig",

  "compilerOptions": {
    "lib": ["es2018"],
    "module": "commonjs",
    "target": "es2018",

    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "moduleResolution": "node"
  }
}

You can find the code here.

Keywords

FAQs

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc