Registry /
devops / eslint-config-vipul-base
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.
default export
✓ import vipulBase from 'eslint-config-vipul-base';
✗ const vipulBase = require('eslint-config-vipul-base');
ESLint 9 flat config requires ESM imports. CommonJS require will fail.
default import in ESLint config file
✓ import baseConfig from 'eslint-config-vipul-base'; export default [...baseConfig, { /* overrides */ }];
✗ module.exports = require('eslint-config-vipul-base');
Configs must be array-spread; do not use module.exports in ESLint 9.
TypeScript usage (if types shipped)
✓ import vipulBase from 'eslint-config-vipul-base';
✗ import * as vipulBase from 'eslint-config-vipul-base';
This package may ship type definitions; default import is correct.
ESLint 9 flat config using eslint-config-vipul-base with an additional rule override.
// eslint.config.js
import baseConfig from 'eslint-config-vipul-base';
export default [
...baseConfig,
{
rules: {
'no-console': 'warn',
},
},
];
Debug
Known issues
breakingVersion 2.0.0 only supports ESLint 9 flat config. The previous version 1.x used .eslintrc format and is incompatible.fixUpgrade ESLint to >=9.29.0 and use flat config (eslint.config.js).
affects: >=2.0.0
breakingRequires Node.js >=18 for ESM support in ESLint flat config.fixUpdate Node.js to 18 or higher.
affects: >=2.0.0
deprecatedNo known deprecations yet.
gotchaThe config file must be named eslint.config.js (or .mjs) and use ESM exports.fixRename file or use .mjs extension.
affects: >=2.0.0
gotchaCommonJS require() is not supported for this config; use import statements.fixSwitch to ESM imports.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Failed to load config 'vipul-base' to extend from.
Using .eslintrc with an old version of ESLint or incorrectly importing in flat config.
fixUse flat config (eslint.config.js) with import vipulBase from 'eslint-config-vipul-base'.
TypeError: (0 , baseConfig) is not a function or its return value is not iterable
Forgetting the spread operator when using the config in flat config array.
fixUse ...baseConfig instead of baseConfig directly.
Audit
Dependencies
eslintrequiredRequired peer dependency; the config only works with ESLint 9.x flat config.