Registry / testing / eslint-config-typestrict

eslint-config-typestrict

JSON →
library1.0.5jsnpmunverified

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-typestrict
INSTALL
IMPORT
SIG · ESLINT-CONFIG-TYPE
E
eslint-config-typestrict
testingjavascriptv1.0.5
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

typestrict
extends: 'typestrict' in .eslintrc.json
import typestrict from 'eslint-config-typestrict'
Extend via ESLint config, not import statement.
default config
module.exports = { extends: 'typestrict' }
module.exports = require('eslint-config-typestrict')
The package is an ESLint config, not a module with exported rules. Use 'extends' in ESLint configuration.
peer dependencies
npm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-sonarjs
npm install --save-dev eslint-config-typestrict
Peer dependencies must be installed manually.

Shows how to configure ESLint with typestrict config, requiring manual installation of peer plugins and strict tsconfig.

// .eslintrc.json { "extends": "typestrict", "parser": "@typescript-eslint/parser", "parserOptions": { "project": "./tsconfig.json", "ecmaVersion": 2020 }, "rules": { // optional: override rules } } // tsconfig.json { "compilerOptions": { "strict": true, "noUnusedLocals": true // ... } }
Debug
Known issues
breakingPeer dependencies must be installed manually; missing them will cause ESLint errors.
fix
Run `npm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-sonarjs`
affects: >=1.0
gotchaRequires TypeScript strict mode in tsconfig.json; will produce false positives otherwise.
fix
Set `"strict": true` in compilerOptions
affects: >=1.0
deprecatedLegacy typestrict@1 for TSLint users; modern versions are ESLint-only.
fix
Use typestrict@latest with ESLint, or use typestrict@1 for TSLint.
affects: =1.0
gotchaConfig enforces `no-invalid-this` which can conflict with class property initializers in TypeScript.
fix
Override rule: `'no-invalid-this': 'off'` if needed.
affects: >=1.0
gotchaConfig uses `@typescript-eslint/no-floating-promises` which requires parserOptions.project to be set correctly.
fix
Ensure `parserOptions.project` points to your tsconfig.json.
affects: >=1.0
Errors
Common errors & fixes
ESLint: Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires parserServices to be generated. You must provide the `parserOptions.project` property for @typescript-eslint/parser.
Missing parserOptions.project in ESLint config.
fix
Add `"parserOptions": { "project": "./tsconfig.json" }` to ESLint config.
ESLint: Cannot find module 'eslint-plugin-sonarjs'
Peer dependency not installed.
fix
Run `npm install --save-dev eslint-plugin-sonarjs`.
ESLint: Configuration for rule '@typescript-eslint/no-unnecessary-condition' is invalid: Value "true" is not a valid severity.
Incorrect rule severity format.
fix
Use `"warn"` or `"error"` instead of `true`.
Upgrade
Version history
1.0.5latest on npm
Audit
Dependencies
@typescript-eslint/eslint-pluginrequiredProvides TypeScript-specific ESLint rules used by the config
eslint-plugin-sonarjsrequiredProvides SonarJS bug-detection rules used by the config
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-typestrict — npm install eslint-config-typestrict · libregistry