Registry / testing / eslint-config-gulp

eslint-config-gulp

JSON →
library6.0.0jsnpmunverified

Sharable ESLint configuration for Gulp projects. Current stable version 6.0.0 (released to support ESLint flat config). Previously v5.x used traditional .eslintrc format. Breaking changes at v6: complete rewrite for flat config, dropping Node <20. Differentiators: specifically tailored for Gulp-style codebases, used by the Gulp team. Release cadence: major versions align with ESLint or Node EOL.

npm install eslint-config-gulp
INSTALL
IMPORT
SIG · ESLINT-CONFIG-GULP
E
eslint-config-gulp
testingjavascriptv6.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

default export
import gulpConfig from 'eslint-config-gulp'
const gulpConfig = require('eslint-config-gulp')
ESM-only since v6.0.0; no CJS export.
default export (as array)
export default [...gulpConfig]
module.exports = gulpConfig
gulpConfig is an array of flat config objects, not a single config object.
default export (legacy)
const config = require('eslint-config-gulp')
import config from 'eslint-config-gulp'
Only works with v5.x and older (CJS). v6+ requires ESM and flat config.

Create an ESLint flat config file that extends the Gulp config and adds a custom rule.

// eslint.config.js import gulpConfig from 'eslint-config-gulp'; export default [ ...gulpConfig, { files: ['**/*.js'], rules: { 'semi': ['error', 'always'], }, }, ];
Debug
Known issues
breakingv6.0.0 rewrites the entire config to use ESLint flat config; no longer compatible with .eslintrc formats.
fix
Migrate to flat config: replace .eslintrc.* with eslint.config.js using import gulpConfig from 'eslint-config-gulp'.
affects: >=6.0.0
breakingv6.0.0 drops support for Node.js <20.
fix
Update Node.js to version 20 or higher.
affects: >=6.0.0
breakingv5.0.0 increased minimum Node.js version to 10.
fix
Use Node.js 10+ or stick with v4.x.
affects: >=5.0.0 <6.0.0
breakingv4.0.0 removed formatting rules in favor of Prettier.
fix
Use Prettier for formatting; do not rely on this config for style rules.
affects: >=4.0.0
gotchaThe default export is an array of config objects (flat config). Spreading into an array is required.
fix
Use `export default [...gulpConfig];` not `export default gulpConfig;` which would be invalid.
affects: >=6.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/eslint-config-gulp/index.js from /path/to/eslint.config.js not supported.
v6+ is ESM-only; require() cannot load it.
fix
Use import syntax: import gulpConfig from 'eslint-config-gulp' or convert your config to ESM.
Failed to load config 'gulp' to extend from.
Using string extension reference 'gulp' in .eslintrc with v6+ which only supports flat config.
fix
Upgrade to flat config: create eslint.config.js and import the config directly.
TypeError: config is not iterable
Spreading the default export (which is iterable) incorrectly or using it directly as a single config.
fix
In flat config, spread the imported array: export default [...gulpConfig];
Upgrade
Version history
6.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-gulp — npm install eslint-config-gulp · libregistry