Skip to content

strict

Check that strict mode is enabled in tsconfig

PropertyValue
Rule IDtypes/strict
Categorytypes
Severity🟡 warning
FixableNo

What it Checks

TypeScript strict mode catches more errors at compile time. Libraries should use strict mode to ensure type safety for consumers.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "types/strict"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "types/strict": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.