Registry / development / eslint-plugin-jethr

eslint-plugin-jethr

JSON →
library1.0.4jsnpmunverified

An ESLint plugin providing custom rules for Jet HR projects, currently at version 1.0.4. It enforces import ordering and structure within JavaScript/TypeScript codebases. The plugin is designed to work with ESLint's flat config (eslint.config.js) and offers a recommended preset. Key differentiator: it allows fine-grained control over import grouping (named, default, side-effect, namespace) with support for file-type constraints (e.g., .vue, .js). Release cadence is low; no recent updates. This is a small, focused tool likely for internal use or specific organizational needs, not a widely adopted community standard.

npm install eslint-plugin-jethr
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-JETH
E
eslint-plugin-jethr
developmentjavascriptv1.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

plugin
import jetEslintPlugin from 'eslint-plugin-jethr'
const jetEslintPlugin = require('eslint-plugin-jethr')
ESM import works; CJS require may also work but ESM is recommended for flat config.
plugins config
plugins: { jethr: jetEslintPlugin }
plugins: ['jethr']
Use object syntax with plugin instance, not string array. Works in eslint.config.js.
recommended config
extends: ['plugin:jethr/recommended']
extends: ['jethr/recommended']
Must include 'plugin:' prefix when using string extends. In flat config, use plugin object and rules.

Shows installation and minimal configuration for the jethr/imports-order rule with custom grouping order.

// Install: npm install --save-dev eslint eslint-plugin-jethr // eslint.config.js import jetEslintPlugin from 'eslint-plugin-jethr'; export default [ { plugins: { jethr: jetEslintPlugin, }, rules: { 'jethr/imports-order': ['error', 'always', { order: [ ['named'], ['default', 'js'], ['sideeffect'], ['namespace'], ['default', 'vue'], ], }], }, }, ];
Debug
Known issues
gotchaPlugin supports only ESLint flat config (eslint.config.js). Using older .eslintrc format may not work as expected.
fix
Migrate to eslint.config.js flat config. See ESLint documentation.
affects: >=1.0.0
gotchaThe 'extends' string must include 'plugin:' prefix, e.g., 'plugin:jethr/recommended'. Omitting prefix will not load rules.
fix
Use 'plugin:jethr/recommended' in extends array or apply rules manually.
affects: >=1.0.0
gotchaThe 'plugins' field in flat config expects an object with the plugin instance, not an array of strings.
fix
Use plugins: { jethr: jetEslintPlugin } instead of plugins: ['jethr'].
affects: >=1.0.0
gotchaRule 'jethr/imports-order' options are not validated; malformed order array may cause silent failure.
fix
Ensure order array contains arrays with strings (e.g., ['named'], ['default', 'js']). Check plugin source for exact schema.
affects: >=1.0.0
gotchaThe plugin may not be compatible with ESLint v9+ due to internal changes. No official compatibility statement.
fix
Test with your ESLint version. Consider pinning ESLint to v8 if issues arise.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'jethr': Cannot find module 'eslint-plugin-jethr'
Plugin not installed or not in node_modules
fix
Run 'npm install --save-dev eslint-plugin-jethr' and ensure it's in project dependencies.
Configuration for rule 'jethr/imports-order' is invalid: Expected an array but got object
Rule option should be an array with severity and optional config
fix
Use 'jethr/imports-order': ['error', 'always', {...}] or ['error', 'always']
TypeError: Cannot read properties of undefined (reading 'imports-order')
Plugin not properly loaded in config's plugins object
fix
Ensure plugins: { jethr: jetEslintPlugin } is set and plugin instance is imported correctly.
Upgrade
Version history
1.0.4latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required for plugin to function
Agent activity
44 hits · last 30 days
node
40
Perplexity
1
OpenAI (training)
1
Resources
eslint-plugin-jethr — npm install eslint-plugin-jethr · libregistry