Registry / testing / eslint-plugin-fsecond

eslint-plugin-fsecond

JSON →
library1.5.0jsnpmunverified

ESLint plugin providing opinionated rules for JavaScript, TypeScript, and React projects. Current stable version is 1.5.0 (February 2026). Requires Node.js >=22 and ESLint >=9.0.0. Supports TypeScript via peer dependency typescript >=5.0.0. Key differentiators: includes rules like no-inline-interfaces (auto-fixable), prefer-destructured-optionals, valid-event-listener, and no-redundant-jsx-prop-usage (requires type information). Offers recommended and recommendedTypeChecked configs. Actively maintained with regular releases.

npm install eslint-plugin-fsecond
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-FSEC
E
eslint-plugin-fsecond
testingjavascriptv1.5.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fsecond
✓ import fsecond from 'eslint-plugin-fsecond'
✗ const fsecond = require('eslint-plugin-fsecond')
Default import of the plugin object. ESM-only as the package does not export a CommonJS entry point.
fsecond.configs.recommended
✓ import fsecond from 'eslint-plugin-fsecond'; export default [...fsecond.configs.recommended]
✗ import { configs } from 'eslint-plugin-fsecond'
Accessing configs via named import may fail because the default export is the plugin object with a configs property.
no-inline-interfaces
✓ import fsecond from 'eslint-plugin-fsecond'; ... rules: { 'fsecond/no-inline-interfaces': 'error' }
✗ import { rules } from 'eslint-plugin-fsecond'
Rules are accessed via the plugin prefix in ESLint configs, not by importing individual rule objects.

Shows how to use the recommended config and override a rule with options.

// eslint.config.ts import fsecond from 'eslint-plugin-fsecond'; export default [ ...fsecond.configs.recommended, { rules: { 'fsecond/no-inline-interfaces': ['error', { allowObjectTypes: false }], }, }, ];
Debug
Known issues
breakingNode.js >=22 required; older Node versions are not supported.
fix
Upgrade Node.js to version 22 or higher.
affects: >=1.0.0
breakingESLint >=9.0.0 required; flat config only (no .eslintrc).
fix
Migrate to ESLint flat config (eslint.config.js/ts) and upgrade ESLint to 9+.
affects: >=1.0.0
deprecatedThe rule 'valid-event-listener' has an option 'checkWindowListener' that was deprecated in v1.1.0; use 'checkGlobalListeners' instead.
fix
Replace 'checkWindowListener' with 'checkGlobalListeners' in rule options.
affects: >=1.1.0
gotchaDefault import is ESM-only; require() will throw an error.
fix
Use import statements or dynamic import().
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module ...
Package is ESM-only; using require() in a CommonJS file.
fix
Switch to import syntax or use dynamic import: const fsecond = await import('eslint-plugin-fsecond');
ESLint couldn't find the plugin "eslint-plugin-fsecond". Are you sure it's installed?
ESLint plugin not installed or not in node_modules.
fix
Run: pnpm add -D eslint-plugin-fsecond
Upgrade
Version history
1.5.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency: ESLint >=9.0.0 required for plugin to work
typescriptoptionaloptional peer dependency for TypeScript rules (>=5.0.0)
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-fsecond — npm install eslint-plugin-fsecond · libregistry