Registry / testing / jarb
library3.0.10-0jsnpmunverified

Reusable lint, webpack, babel and jest configuration package, version 3.0.10-0. Provides shared configurations for JavaScript/TypeScript projects, reducing setup overhead. Release cadence is irregular. Key differentiator: combines multiple tool configs into one dependency, but note that many projects now prefer using eslint-config-* or @babel/preset-env directly with more flexibility.

npm install jarb
INSTALL
IMPORT
SIG · JARB
J
jarb
testingjavascriptv3.0.10-0
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.

jarb
import jarb from 'jarb'
const jarb = require('jarb')
ESM-only since v3; no CommonJS support.
lintConfig
import { lintConfig } from 'jarb'
const { lintConfig } = require('jarb')
Named export for ESLint configuration.
webpackConfig
import { webpackConfig } from 'jarb'
Named export for webpack configuration.

Imports and uses all config exports from jarb package.

import jarb from 'jarb'; import { lintConfig, webpackConfig, babelConfig, jestConfig } from 'jarb'; // Use configurations directly // For example, in .eslintrc.js: module.exports = lintConfig; // In webpack.config.js: module.exports = webpackConfig; // In .babelrc: module.exports = babelConfig; // In jest.config.js: module.exports = jestConfig; // Or use the default export for combined setup: const config = jarb(); console.log(config);
Debug
Known issues
breakingVersion 3.0.0 drops CommonJS support; require() will fail.
fix
Switch to ESM imports or use dynamic import() if necessary.
affects: >=3.0.0
deprecatedThe default export jarb() may be deprecated in future versions in favor of named exports.
fix
Use named exports like lintConfig, webpackConfig, etc.
affects: >=3.0.0
gotchaConfiguration objects are frozen and cannot be mutated; merging with overrides requires cloning.
fix
Use Object.assign or spread operator to create a new config object.
affects: >=3.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: .../node_modules/jarb/index.js
Using require() on an ESM-only package in Node.js.
fix
Change to import statement or use --es-module-specifier-resolution=node flag.
TypeError: Cannot assign to read only property 'rules' of object '#<Object>'
Attempting to mutate the frozen config object.
fix
Create a copy: const myConfig = { ...lintConfig, rules: { ...lintConfig.rules, 'my-rule': 'warn' } };
Upgrade
Version history
3.0.10-0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
jarb — npm install jarb · libregistry