Registry / web-framework / eslint-config-tui

eslint-config-tui

JSON →
library6.39.3jsnpmunverified

ESLint shareable config for NHN Cloud TUI components. Current stable version is 6.39.3, released regularly with updates aligned to ESLint releases. It provides a flat config for ESLint v9+, replacing the legacy eslintrc format. Differentiator: maintained by NHN Cloud and follows the NHN JavaScript Style Guide. Release cadence is irregular but frequent, with major version bumps for breaking changes like ESLint v9 flat config support.

npm install eslint-config-tui
INSTALL
IMPORT
SIG · ESLINT-CONFIG-TUI
E
eslint-config-tui
web-frameworkjavascriptv6.39.3
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.

default import
import tui from 'eslint-config-tui'
const tui = require('eslint-config-tui')
Since v6.0.0, the package exports a flat config array. For CommonJS, use `const tui = require('eslint-config-tui');` with `eslint.config.js` (not `.mjs`).
ESLint config array spread
export default [...tui, { ... }]
export default tui.concat({ ... })
The exported value is an array of config objects; spread or Array.concat works, but spread is idiomatic.
Legacy v5 usage
require('eslint-config-tui') as extend in .eslintrc
import tui from 'eslint-config-tui' in flat config
v5.x and below use eslintrc format. v6+ is flat config only. If using eslintrc, use v5.x.

Create an ESLint flat config using eslint-config-tui with custom rule overrides.

// eslint.config.mjs import tui from 'eslint-config-tui'; export default [ ...tui, { rules: { // Override rules: e.g., allow console 'no-console': 'off', }, }, ];
Debug
Known issues
breakingv6.0.0 introduced a flat config format, breaking all eslintrc-based configurations.
fix
Upgrade to eslint v9 and use the flat config format as shown in the quickstart. If you must use eslintrc, stay on v5.x.
affects: >=6.0.0
breakingv6.0.0 had a bug causing 'TypeError: possibleConfig is not iterable'. Fixed in v6.0.1.
fix
Upgrade to v6.0.1 or later.
affects: 6.0.0
deprecatedFormatting rules (like semi, quotes) are deprecated and will be removed in v10.0.0.
fix
Use a formatter like Prettier instead. See https://eslint.org/docs/latest/use/formatting
affects: >=5.5.0
gotchaIf your project uses ESM, the config file must be named eslint.config.js (not .mjs) and use export default. CommonJS users should use .cjs or require() in .js.
fix
Use import/export syntax in eslint.config.js if your package.json has type: module, else use module.exports in .cjs.
affects: >=6.0.0
gotchaThe 'no-console' rule allows no methods by default; to allow specific methods like 'warn' and 'error', override the rule.
fix
Add to your config: rules: { 'no-console': ['warn', { allow: ['warn', 'error'] }] }
affects: >=6.0.0
deprecatedThe 'no-return-await' rule was removed in v5.4.0 as it is deprecated in ESLint v8.46.0+.
fix
Remove the rule from your config; ESLint will warn if you use it.
affects: >=5.4.0
gotchaSince v6.0.0, the config is an array of flat config objects. Spreading is required; using the config as a single object will cause errors.
fix
Use `export default [...tui, { ... }]` instead of `export default tui`.
affects: >=6.0.0
Errors
Common errors & fixes
TypeError: possibleConfig is not iterable
Bug in v6.0.0 that failed to export the config as an array.
fix
Upgrade to eslint-config-tui@6.0.1 or later.
ESLint: Configuration for rule 'no-console' is invalid. Value ["warn",{"allow":["warn"]}] should be array.
Misunderstanding of the rule format; the array must contain severity and options object.
fix
Use ['warn', { allow: ['warn'] }] as the rule value.
.eslintrc.js is not supported in eslint v9. Use eslint.config.js instead.
ESLint v9 dropped support for eslintrc format.
fix
Create an eslint.config.js (or .mjs) file and use the flat config format.
Parsing error: The keyword 'export' is reserved
Using ES module syntax (export) in a CommonJS file (no type: module in package.json).
fix
Set type: module in package.json or rename file to .mjs.
Upgrade
Version history
6.39.3latest on npm
Audit
Dependencies
eslintrequiredpeer dependency, required to run ESLint
globalsrequiredpeer dependency, provides global variables for ESLint
Agent activity
4 hits · last 30 days
node
4
Resources