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

ts-ide-overrides

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-ide-overrides

TypeScript language service plugin to toggle strict checks in editors

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ts-ide-overrides

TypeScript language service plugin to override strict mode family and boolean type checking options within an editor.

The plugin helps raise visibility of strict mode issues without breaking your build process.

The strict mode family options are strict and the 8 related options: alwaysStrict, strictNullChecks, strictBindCallApply, strictFunctionTypes, strictPropertyInitialization, noImplicitAny, noImplicitThis, and useUnknownInCatchVariables.

The the other boolean type-checking options supported are allowUnreachableCode, allowUnusedLabels, exactOptionalPropertyTypes, noFallthroughCasesInSwitch, noImplicitOverride, noImplicitReturns, noPropertyAccessFromIndexSignature, noUncheckedIndexedAccess, noUnusedLocals and noUnusedParameters.

Install

Install as a dev-dependency using a package manager:

npm install --save-dev ts-ide-overrides
yarn add --save-dev ts-ide-overrides
pnpm add --save-dev ts-ide-overrides
bun add --development ts-ide-overrides

Configuration

Add plugin to tsconfig.json:

{
  "compilerOptions": {
    // (other options ommitted)
    "plugins": [
      {
        "name": "ts-ide-overrides",
        "overrides": {
          // just an example...
          "strict": true,
          "noImplicitAny": false,
          "useUnknownInCatchVariables": false
        }
      }
    ]
  }
}

Comments

The plugin supports code comments to toggle any of the 9 options for the current file:

// @ts-ide-disable-strict @ts-ide-enable-strict-null-checks

Keywords

FAQs

Package last updated on 03 Sep 2022

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