Registry / testing / eslint-config-hyoban

eslint-config-hyoban

JSON →
library7.0.3jsnpmunverified

A personal ESLint configuration preset based on @antfu/eslint-config, extended with import-sort for import ordering, extra Markdown linting rules via eslint-plugin-markdown and markdown-preferences, optional Tailwind CSS support, and over 30 integrated plugins for JavaScript, TypeScript, React, JSON, YAML, and more. Currently at v7.0.3, it requires ESLint v9+ and flat config. It ships TypeScript types and provides a single `defineConfig` export. Breaking changes include removal of the `hyoban` option in v7.0.0 and migration to the antfu-based config in v6.0.0.

npm install eslint-config-hyoban
INSTALL
IMPORT
SIG · ESLINT-CONFIG-HYOB
E
eslint-config-hyoban
testingjavascriptv7.0.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.

defineConfig
import { defineConfig } from 'eslint-config-hyoban'
import { defineConfig } from 'eslint-config-hyoban/defineConfig'
Main entry point. ESM-only. For CommonJS use dynamic import or set type: module.
default
import hyobanConfig from 'eslint-config-hyoban'
const hyobanConfig = require('eslint-config-hyoban')
Default export is not available; use named export `defineConfig`.
defineConfig types
import type { ConfigItem } from 'eslint-config-hyoban'
import { ConfigItem } from 'eslint-config-hyoban'
Type exports are separated. `ConfigItem` is only available as a type import (TS 5+).

Shows basic usage of defineConfig with optional Tailwind CSS and React support. The config file is ESM and uses named export.

// eslint.config.mjs import { defineConfig } from 'eslint-config-hyoban' import { process } from 'node:process' export default defineConfig({ tailwindcss: { settings: { tailwindConfig: process.env.TAILWIND_CONFIG ?? './tailwind.config.ts', }, }, react: true, jsdoc: { override: { 'jsdoc/require-description': 'warn', }, }, })
Debug
Known issues
breakingRemoval of hyoban option in v7.0.0: The 'hyoban' config option has been removed. Users must rely solely on antfu-based options.
fix
Remove any references to the hyoban option from your config. Use antfu-based options or override rules directly.
affects: >=7.0.0
breakingMigration to antfu-based config in v6.0.0: The entire config structure changed. Previous v5 configs are not compatible.
fix
Migrate your config to the flat config format and use 'defineConfig' from eslint-config-hyoban as shown in the docs.
affects: >=6.0.0 <6.0.0
deprecatedThe 'perfectionist' sorting plugin is replaced by 'import-sort' as the default sorting plugin.
fix
Enable perfectionist manually if needed: defineConfig({ perfectionist: true }).
affects: >=6.0.0
gotchaESM-only package: This package exports only ES modules. CommonJS require() will fail.
fix
Use dynamic import: const { defineConfig } = await import('eslint-config-hyoban'); or set 'type': 'module' in package.json.
affects: >=6.0.0
gotchaFlat config only: ESLint v9 flat config (.mjs or .js with type: module) is required. Legacy .eslintrc is not supported.
fix
Use eslint.config.mjs or eslint.config.js with 'type': 'module'.
affects: >=6.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-config-hyoban'
Package has not been installed or is installed globally instead of locally.
fix
Run 'npm install eslint-config-hyoban --save-dev' (or 'yarn add -D eslint-config-hyoban' / 'pnpm add -D eslint-config-hyoban').
TypeError: defineConfig is not a function
CommonJS require() used on an ESM-only package.
fix
Change your config file to .mjs or set type: module in package.json and use import { defineConfig } from 'eslint-config-hyoban'.
Could not find 'tailwindcss' settings in defineConfig
Tailwind CSS preset requires explicit enablement via 'tailwindcss: true' or settings object.
fix
Add 'tailwindcss: { settings: { tailwindConfig: './tailwind.config.ts' } }' to defineConfig options.
ESLint couldn't find the config 'eslint-config-hyoban'
The package is not installed or ESLint cannot resolve it due to flat config migration issues.
fix
Ensure the package is installed as a dev dependency and that you are using eslint.config.mjs with proper resolution.
Upgrade
Version history
7.0.3latest on npm
Audit
Dependencies
eslintrequiredpeer dependency - ESLint config is intended for use with ESLint v9+
@antfu/eslint-configrequiredbase config that all rules are built upon
eslint-plugin-markdown-preferencesoptionalextra markdown linting rules
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-hyoban — npm install eslint-config-hyoban · libregistry