Registry / testing / eslint-plugin-baseui

eslint-plugin-baseui

JSON →
library13.0.0jsnpmunverified

ESLint plugin providing lint rules for Base Web (Uber's React component library). Current stable version is 13.0.0. Release cadence is irregular, tied to Base Web releases. Key differentiator: enforces best practices specific to Base Web, such as correct import paths, proper use of theme and overrides, and deprecation warnings. Requires ESLint 3-8.

npm install eslint-plugin-baseui
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-BASE
E
eslint-plugin-baseui
testingjavascriptv13.0.0
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.

plugin
import plugin from 'eslint-plugin-baseui'
const plugin = require('eslint-plugin-baseui')
ESM default import; CommonJS require also works but is not recommended.
rules
import { rules } from 'eslint-plugin-baseui'
Named export for accessing individual rule definitions.
configs
import { configs } from 'eslint-plugin-baseui'
const configs = require('eslint-plugin-baseui').configs
Named export for recommended configurations.

Configure ESLint to use baseui plugin with recommended rules for deprecated theme API, deep imports, and override extend.

// .eslintrc.json { "plugins": ["baseui"], "rules": { "baseui/deprecated-theme-api": "error", "baseui/no-deep-imports": "error", "baseui/no-override-extend": "warn" } }
Debug
Known issues
breakingESLint 7 removal of some rules
fix
Update to ESLint 8 or remove conflicting rules
affects: >=7.0.0
deprecatedRule 'baseui/no-deep-imports' has been deprecated in v13
fix
Use no-relative-imports rule or remove rule from config
affects: >=13.0.0
breakingRule 'baseui/theme' removed in v12
fix
Replace with 'baseui/deprecated-theme-api' if needed
affects: >=12.0.0
gotchaPlugin may not work with ESLint 9 flat config without explicit adapter
fix
Use eslint-define-config or convert to flat config manually
affects: <=13.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'baseui': Cannot find module 'eslint-plugin-baseui'
Plugin not installed as dev dependency
fix
npm install eslint-plugin-baseui --save-dev
Definition for rule 'baseui/*' was not found
Plugin not listed in 'plugins' array or rule name typo
fix
Ensure 'baseui' is in plugins and rule is spelled correctly (e.g. 'baseui/deprecated-theme-api')
ESLint: TypeError: Cannot read properties of undefined (reading 'someRule')
Incompatible ESLint major version (e.g. ESLint 9)
fix
Use ESLint 8 or check plugin compatibility table
Upgrade
Version history
13.0.0latest on npm
Audit
Dependencies
eslintoptionalpeer dependency, required as the host for the plugin
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-baseui — npm install eslint-plugin-baseui · libregistry