Registry / type-stubs / eslint-config-niieani

eslint-config-niieani

JSON →
library1.2.10jsnpmunverified

A modern TypeScript-only ESLint configuration package extending Airbnb's base config with additional rules for promises, unicorn, import sorting, and Jest. Version 1.2.10 requires ESLint >=7.32.0 and Node.js >=12.22.12. It ships TypeScript types and is part of the scaffold monorepo. Designed for Beemo-configured projects, it uses tabs over spaces, prefers named exports, and automatically detects tsconfig.json. Optional presets for browser, Node, and React are available.

npm install eslint-config-niieani
INSTALL
IMPORT
SIG · ESLINT-CONFIG-NIIE
E
eslint-config-niieani
type-stubsjavascriptv1.2.10
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.

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 // ... } };
Debug
Known issues
gotchaThe config requires source files to be located in a 'src' folder. Moving source files elsewhere will cause rules to not apply or produce errors.
fix
Place all source files under a 'src/' directory.
affects: >=1.0.0
gotchaTest files must end with '*.test.{ts,tsx}' and be inside 'tests' or '__tests__' folders for Jest-specific rules to apply.
fix
Name test files accordingly and place them in the correct directory.
affects: >=1.0.0
gotchaThe config uses tabs over spaces for accessibility. If your project uses spaces, this will cause formatting conflicts.
fix
Either adopt tabs or override the 'indent' rule in your ESLint config.
affects: >=1.0.0
gotchaThe config relies on TypeScript for parsing; files must be in a TypeScript-supported format (.ts, .tsx). JavaScript files (.js, .jsx) are not parsed.
fix
Ensure all source files are TypeScript or override the parser.
affects: >=1.0.0
breakingPeer dependency eslint >=7.32.0 is required. Older versions are not supported.
fix
Upgrade ESLint to version >=7.32.0.
affects: >=1.2.0
Errors
Common errors & fixes
Error: Failed to load config 'niieani' to extend from.
eslint-config-niieani is not installed or not in node_modules.
fix
Run `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.
fix
Run `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.
fix
Create 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.
fix
Use 'niieani/node' (not 'eslint-config-niieani/node') in the extends array.
Upgrade
Version history
1.2.10latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required to run ESLint with this config
Agent activity
31 hits · last 30 days
node
26
OpenAI (training)
1
Resources
eslint-config-niieani — npm install eslint-config-niieani · libregistry