Registry / testing / eslint-config-landr

eslint-config-landr

JSON →
library2.0.0jsnpmunverified

LANDR's shareable ESLint configuration for JavaScript and TypeScript projects. Current stable version is 2.0.0, released with peer dependencies eslint >=8 and prettier >=3. Extends eslint-config-prettier and eslint-plugin-prettier to show formatting issues as ESLint errors. Supports framework-specific configs for React and test files. Requires TypeScript parser for JS/TS linting, with typescript as a peer dependency. Includes rules for import ordering with TypeScript path patterns and Lingui i18n.

npm install eslint-config-landr
INSTALL
IMPORT
SIG · ESLINT-CONFIG-LAND
E
eslint-config-landr
testingjavascriptv2.0.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

landr config
✓ extends: ['landr']
✗ extends: ['eslint-config-landr']
Use shorthand 'landr' in extends array, not full package name.
landr/react
✓ extends: ['landr/react']
✗ extends: ['landr'] (missing react-specific rules)
React framework config extends base landr config.
landr/test
✓ extends: ['landr/test']
✗ extends: ['landr'] (missing test-specific rules)
Test framework config extends base landr config.

Shows how to install and configure eslint-config-landr base config with required peer dependencies.

// .eslintrc.js module.exports = { extends: ['landr'], }; // Install peer dependencies yarn add -D eslint-config-landr eslint prettier typescript eslint-plugin-prettier eslint-config-prettier @typescript-eslint/parser @typescript-eslint/eslint-plugin
Debug
Known issues
breakingVersion 2.0.0 requires eslint >=8 and prettier >=3. Older versions may not work.
fix
Update eslint and prettier to compatible versions.
affects: >=2.0.0
gotchaTypeScript parser is used even for JS files; typescript must be installed as a peer dependency.
fix
Install typescript as a devDependency.
affects: >=1.0.0
gotchaPrettier configuration is expected from a .prettierrc.js file in the project root; if missing, default prettier options are used.
fix
Create a .prettierrc.js file or use prettier-config-landr.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin '@typescript-eslint' declared in 'eslint-config-landr'
Missing @typescript-eslint plugins as dependencies
fix
Install @typescript-eslint/parser and @typescript-eslint/eslint-plugin.
Error: Cannot find module 'prettier'
prettier not installed
fix
Add prettier as a devDependency.
Error: ESLint configuration in .eslintrc.js is invalid: "landr" is not a valid configuration
Extension shorthand not recognized
fix
Ensure eslint-config-landr is installed and correctly listed in extends.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
typescriptrequiredRequired by the TypeScript parser for linting JS/TS files
eslintrequiredPeer dependency for ESLint functionality
prettierrequiredPeer dependency for prettier integration via eslint-config-prettier and eslint-plugin-prettier
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-landr — npm install eslint-config-landr · libregistry