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
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
config
✓ module.exports = { extends: ['niieani'] }
✗ module.exports = { extends: ['eslint-config-niieani'] }
ESLint resolves eslint-config-* prefixes automatically, so 'eslint-config-niieani' works but 'niieani' is shorter and idiomatic.
preset browser
✓ module.exports = { extends: ['niieani', 'niieani/browser'] }
The 'niieani/browser' preset enables the browser environment and compat plugin. It should not be combined with 'niieani/node'.
preset node
✓ module.exports = { extends: ['niieani', 'niieani/node'] }
The 'niieani/node' preset sets Node.js environment and enables the node plugin. Do not use with 'niieani/browser'.
preset react
✓ module.exports = { extends: ['niieani', 'niieani/react'] }
The 'niieani/react' preset adds React, React Hooks, React Perf, and JSX a11y plugins. Only applies to .tsx files and automatically extends 'niieani/browser'.
Shows how to install and configure eslint-config-niieani in an ESLint project.
// Install the config and its peer dependency
// npm install --save-dev eslint eslint-config-niieani
// .eslintrc.js
module.exports = {
root: true,
extends: [
'niieani',
// Add presets as needed, e.g.
// 'niieani/react',
],
// Override rules if necessary
rules: {
'import/prefer-default-export': 'off', // Already off in config
// ...
}
};
Errors
Common errors & fixes
Error: Failed to load config 'niieani' to extend from.
eslint-config-niieani is not installed or not in node_modules.
fixRun `npm install --save-dev eslint-config-niieani`.
Error: Cannot find module 'eslint-config-airbnb-base'
airbnb-base is a dependency of eslint-config-niieani but may not be automatically installed with npm versions below 7.
fixRun `npm install --save-dev eslint-config-airbnb-base` or use npm >=7 for automatic peer dependency resolution.
Parsing error: Cannot read file 'tsconfig.json'.
The config tries to automatically set parserOptions.project based on root tsconfig.json, but it doesn't exist.
fixCreate a tsconfig.json in your project root, or override parserOptions in your ESLint config.
Error: Failed to load config 'niieani/node' to extend from.
The preset name is incorrect or the config is not properly referenced.
fixUse 'niieani/node' (not 'eslint-config-niieani/node') in the extends array.
Audit
Dependencies
eslintrequiredpeer dependency required to run ESLint with this config