Registry / devops / gruntify-eslint

gruntify-eslint

JSON →
library5.0.0jsnpmunverified

Grunt plugin for ESLint that lints JavaScript files using the ESLint engine. Current stable version is 5.0.0, which supports ESLint 5.x. Release cadence follows ESLint major versions with breaking changes. Differentiators: integrates ESLint into Grunt workflows, supports custom config files, rule paths, formatters, silent mode, maxWarnings, outputFile, and a callback for post-processing results.

npm install gruntify-eslint
INSTALL
IMPORT
SIG · GRUNTIFY-ESLINT
G
gruntify-eslint
devopsjavascriptv5.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.

gruntify-eslint
grunt.loadNpmTasks('gruntify-eslint')
require('gruntify-eslint')
Grunt plugins are registered via loadNpmTasks, not imported directly.
eslint task
grunt.initConfig({ eslint: { src: ['file.js'] } })
grunt.initConfig({ gruntify-eslint: { src: ['file.js'] } })
Task name is 'eslint', not 'gruntify-eslint'.
eslint options
eslint: { options: { configFile: '.eslintrc' }, src: ['file.js'] }
eslint: { configFile: '.eslintrc', src: ['file.js'] }
Config goes under options key.

Install and configure gruntify-eslint with a basic eslint task that lints JavaScript files.

// Install: npm install --save-dev grunt gruntify-eslint eslint // Gruntfile.js module.exports = function(grunt) { grunt.initConfig({ eslint: { target: { src: ['**/*.js', '!node_modules/**'] } } }); grunt.loadNpmTasks('gruntify-eslint'); grunt.registerTask('default', ['eslint']); };
grunt --version
Debug
Known issues
breakingVersion 4.0.0 drops support for ESLint 3.x; requires ESLint 4.x or later.
fix
Update to ESLint 4.x or later.
affects: >=4.0.0
breakingVersion 3.0.0 drops support for ESLint 2.x; requires ESLint 3.x or later.
fix
Update to ESLint 3.x or later.
affects: >=3.0.0 <4.0.0
breakingVersion 2.0.0 drops support for ESLint 1.x; requires ESLint 2.x or later.
fix
Update to ESLint 2.x or later.
affects: >=2.0.0 <3.0.0
gotchaThe task name is 'eslint', not 'gruntify-eslint'. Using the wrong name in grunt.loadNpmTasks or initConfig will fail.
fix
Use grunt.loadNpmTasks('gruntify-eslint') and task name 'eslint'.
affects: all
gotchaOptions like silent, maxWarnings, callback, terminateOnCallback, outputFile are not passed to ESLint API; they are handled by the plugin itself.
fix
Use these options only in grunt config, not in ESLint configuration files.
affects: all
Errors
Common errors & fixes
Task 'eslint' not found
grunt.loadNpmTasks('gruntify-eslint') missing or typo in task name.
fix
Add grunt.loadNpmTasks('gruntify-eslint') to your Gruntfile.
Error: Cannot find module 'gruntify-eslint'
Missing npm install of gruntify-eslint as devDependency.
fix
Run npm install --save-dev gruntify-eslint
Warning: No files found. Use --force to continue.
The src pattern matches no files or the property is misconfigured.
fix
Ensure src is an array of glob patterns that match existing files.
Upgrade
Version history
5.0.0latest on npm
Audit
Dependencies
gruntrequiredpeer dependency required to run as Grunt plugin
eslintrequiredpeer dependency for linting engine
Agent activity
6 hits · last 30 days
node
6
Resources
gruntify-eslint — npm install gruntify-eslint · libregistry