Registry / testing / eslint-plugin-sxzz

eslint-plugin-sxzz

JSON →
library0.4.4jsnpmunverified

A collection of ESLint rules for personal and project use, maintained by Kevin Deng. Current stable version is 0.4.4, with frequent releases. The plugin is ESM-only since v0.2.0, requires ESLint ^9.15.0 or ^10.0.0, and Node.js >=20.19.0. It includes TypeScript type definitions. Differentiators: custom rules like `require-package-field`, and breaking changes between versions (dropped CJS, dropped Node 18). Notable forked from eslint-plugin-antfu.

npm install eslint-plugin-sxzz
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-SXZZ
E
eslint-plugin-sxzz
testingjavascriptv0.4.4
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 plugin from 'eslint-plugin-sxzz'
const plugin = require('eslint-plugin-sxzz')
ESM-only since v0.2.0; CommonJS require will fail.
rules
import { rules } from 'eslint-plugin-sxzz'
import { rules } from 'eslint-plugin-sxzz/rules'
Named export for the rules object.
configs
import { configs } from 'eslint-plugin-sxzz'
import configs from 'eslint-plugin-sxzz/configs'
Named export for configs; may be undefined if not defined.

Configure ESLint flat config to use eslint-plugin-sxzz with a custom rule.

// eslint.config.js import plugin from 'eslint-plugin-sxzz'; export default [ { plugins: { sxzz: plugin }, rules: { 'sxzz/require-package-field': 'error', }, }, ];
Debug
Known issues
breakingDropped CJS build in v0.2.0; ESM-only.
fix
Use ESM imports (import) instead of require().
affects: >=0.2.0
breakingNode.js <20.19.0 is no longer supported since v0.3.0.
fix
Upgrade Node.js to >=20.19.0.
affects: >=0.3.0
breakingESLint typegen changes in v0.4.0 may break type definitions.
fix
Check TypeScript config; may need to update type imports.
affects: >=0.4.0 <0.5.0
gotchaPlugin does not export a recommended config; you must manually configure rules.
fix
Add plugin.sxzz to plugins and enable individual rules.
affects: >=0.0.0
deprecatedESLint flat config is required; legacy .eslintrc format not supported.
fix
Use 'eslint.config.js' or 'eslint.config.mjs' with flat config.
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'eslint-plugin-sxzz'
Package not installed or ESM import used in CJS project.
fix
Run 'npm install eslint-plugin-sxzz' and ensure package.json has 'type':'module' or use .mjs extension.
Failed to load plugin 'sxzz': Plugin is not an object or function
Plugin imported incorrectly (e.g., using require in CJS or missing default export).
fix
Use import plugin from 'eslint-plugin-sxzz' (ESM) and set it as { plugins: { sxzz: plugin } }.
ESLint: Error while loading rule 'sxzz/require-package-field': Rule not found
Rule name misspelled or not available in this version.
fix
Check available rules in documentation; use correct rule name like 'sxzz/require-package-field'.
Upgrade
Version history
0.4.4latest on npm
Audit
Dependencies
eslintrequiredpeer dependency - plugin requires ESLint ^9.15.0 || ^10.0.0
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-sxzz — npm install eslint-plugin-sxzz · libregistry