An ESLint shareable configuration focused on maximizing TypeScript type safety by enabling strict rules that catch bugs. Version 1.0.5 is the latest stable, with low release cadence. Combines rules from @typescript-eslint/eslint-plugin and eslint-plugin-sonarjs, emphasizing type-correctness and runtime error prevention over code style. Unlike other configs (e.g., eslint-config-airbnb-typescript), TypeStrict is minimalist and bug-focused, requiring manual peer dependency installation and strict tsconfig setting.
npm install eslint-config-typestrictVerified import paths — ran on the pinned version, not inferred.
Shows how to configure ESLint with typestrict config, requiring manual installation of peer plugins and strict tsconfig.
Run `npm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-sonarjs`
Set `"strict": true` in compilerOptions
Use typestrict@latest with ESLint, or use typestrict@1 for TSLint.
Override rule: `'no-invalid-this': 'off'` if needed.
Ensure `parserOptions.project` points to your tsconfig.json.
Add `"parserOptions": { "project": "./tsconfig.json" }` to ESLint config.Run `npm install --save-dev eslint-plugin-sonarjs`.
Use `"warn"` or `"error"` instead of `true`.