eslint-plugin-icedfrisby
raw JSON → 0.3.0 verified Sat Apr 25 auth: no javascript
An ESLint plugin providing lint rules for IcedFrisby, an HTTP API testing framework. Current stable version is 0.3.0, with no clear release cadence. Key differentiators: it enforces best practices like preventing exclusive tests (`.only`) and skipped tests (`.skip`) in test suites. It supports ESLint >=9 and requires flat config format. The plugin exports a recommended config and is minimal, with only two rules.
Common errors
error ESLint couldn't find the plugin "eslint-plugin-icedfrisby". ↓
cause Plugin not installed or not properly configured in flat config plugins object.
fix
Ensure eslint-plugin-icedfrisby is installed and added to plugins in flat config: plugins: { icedfrisby }.
error Configuration for rule "icedfrisby/no-exclusive-tests" is invalid: Value "warn" is not allowed. ↓
cause Trying to set rule severity to 'warn' which may not be supported or using incorrect config format.
fix
Use severity 'error' or 'off'; or check ESLint version compatibility.
error Failed to load config "eslint-plugin-icedfrisby/recommended" to extend from. ↓
cause Using legacy extends in eslintrc format which is not supported by this plugin.
fix
Use flat config and import configs directly: const icedfrisby = require('eslint-plugin-icedfrisby'); then icedfrisby.configs.recommended.
Warnings
breaking Requires ESLint >=9; flat config only; no .eslintrc support since v0.2.0. ↓
fix Use flat config format and ESLint >=9.
breaking Dropped support for ESLint <8.21.0 in v0.2.0. ↓
fix Upgrade ESLint to >=8.21.0 or use v0.1.x.
deprecated No breaking changes or deprecations reported yet; minimal version. ↓
fix N/A
gotcha Plugin only works with flat config; does not support legacy eslintrc. ↓
fix Use .eslint.config.js and flat config format.
Install
npm install eslint-plugin-icedfrisby yarn add eslint-plugin-icedfrisby pnpm add eslint-plugin-icedfrisby Imports
- default wrong
const icedfrisby = require('eslint-plugin-icedfrisby'); // ESM-only? No, CJS require works too, but typical usage uses CJS require in flat config.correctimport icedfrisby from 'eslint-plugin-icedfrisby' - configs
icedfrisby.configs.recommended - rules wrong
// not imported directly; rules are strings like 'icedfrisby/no-exclusive-tests'correct// rules are accessed via plugin object in ESLint flat config: 'icedfrisby/no-exclusive-tests' or 'icedfrisby/no-skipped-tests' - no-exclusive-tests wrong
// not imported directly; rules are strings like 'icedfrisby/no-exclusive-tests'correct// rules are accessed via plugin object in ESLint flat config: 'icedfrisby/no-exclusive-tests' or 'icedfrisby/no-skipped-tests'
Quickstart
// Install: npm i --save-dev eslint eslint-plugin-icedfrisby
// .eslint.config.js
const icedfrisby = require("eslint-plugin-icedfrisby");
module.exports = [
icedfrisby.configs.recommended,
{
plugins: { icedfrisby },
rules: {
"icedfrisby/no-skipped-tests": ["error"],
},
},
];