Registry / testing / eslint-config-strict

eslint-config-strict

JSON →
library14.0.1jsnpmunverified

ESLint shareable config for extremely strict linting, enforcing high code quality and consistency. The current stable version is 14.0.1, which is the final release as the package has been deprecated in favor of eslint-config-strict-es6. It provides a comprehensive set of ESLint rules documented and justified per-rule, covering ES5, ES6, Mocha, browser, and Babel environments. Unlike many other configs, it includes additive presets for React and legacy Node 0.12 support was broken in v10.0.0. No longer actively maintained; last release was in 2017.

npm install eslint-config-strict
INSTALL
IMPORT
SIG · ESLINT-CONFIG-STRI
E
eslint-config-strict
testingjavascriptv14.0.1
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.

strict
{ "extends": ["strict"] }
{ "extends": ["eslint-config-strict"] }
ESLint resolves 'strict' to 'eslint-config-strict'; the full name is also valid but unnecessary.
strict/es5
{ "extends": ["strict/es5"] }
{ "extends": ["strict/es5"] } is correct; no wrong pattern known.
ES5 configuration for projects not using ES6 features.
strict/browser
{ "extends": ["strict/browser"] }
{ "extends": ["strict/browser"] } is correct; ensure env.browser is not also set.
Sets env.browser to true; can be combined with other presets.
strict/mocha
{ "extends": ["strict/mocha"] }
{ "extends": ["strict/mocha"] } is correct; adding env.mocha is redundant.
Adds mocha env, globals, and disables certain rules.
strict/babel
{ "extends": ["strict/babel"] }
Requires eslint-plugin-babel to be installed separately.
For Babel transpiled code; requires eslint-plugin-babel plugin.

Add eslint-config-strict to a project with basic configuration for ES5 and browser environment.

// package.json { "devDependencies": { "eslint": "^6.0.0", "eslint-config-strict": "^14.0.0", "eslint-plugin-filenames": "^1.0.0" }, "eslintConfig": { "extends": ["strict", "strict/browser", "strict/es5"] } }
Debug
Known issues
deprecatedeslint-config-strict is deprecated. Use eslint-config-strict-es6 or another modern config.
fix
Switch to a maintained config like eslint-config-strict-es6 or eslint-config-airbnb.
affects: >=14.0.1
breakingNode 0.12 support dropped in v10.0.0.
fix
Upgrade Node.js to version 4 or higher.
affects: >=10.0.0
breakingOld code may cause errors with new configuration due to rule additions/enforcements in v13.0.0, v12.0.0, v11.0.0, etc.
fix
Review new rules and update code accordingly; run eslint --fix.
affects: >=11.0.0
gotchaIf using npm < v3, dependencies like eslint-plugin-filenames must be installed manually.
fix
Install eslint-plugin-filenames explicitly: npm install --save-dev eslint-plugin-filenames
affects: <1.0.0?
Errors
Common errors & fixes
Error: Cannot find module 'eslint-config-strict'
Package not installed.
fix
Run: npm install --save-dev eslint-config-strict
Error: Cannot find module 'eslint-plugin-filenames'
Missing dependency required by eslint-config-strict.
fix
Run: npm install --save-dev eslint-plugin-filenames
Configuration for rule 'some-rule' is invalid
ESLint version mismatch; newer ESLint may not support deprecated rules.
fix
Use an ESLint version compatible with eslint-config-strict (e.g., ESLint 6.x) or switch config.
Upgrade
Version history
14.0.1latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required to use shareable config
eslint-plugin-filenamesrequiredRequired dependency for file naming rules
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-strict — npm install eslint-config-strict · libregistry