Questions tagged [gulp-eslint]
18 questions
0
votes
1 answer
How do you configure and use the gulp eslint task?
I'm trying to get gulp-eslint working. Here is my package.json:
"devDependencies": {
"eslint": "^5.4.0",
"eslint-plugin-babel": "^5.1.0",
"gulp": "^3.9.1",
"gulp-eslint": "^5.0.0",
}
There was no mention of dependencies on the…

Michael Lynch
- 2,682
- 3
- 31
- 59
0
votes
2 answers
How do I share global javascript variables among multiple files prior to compiling?
What's the best way to handle linting when there are multiple files that will be compiled to a single file that share global variables/functions. For example:
file_1.js:
{
const my_flag = 1;
}
file_2.js:
{
if (my_flag) {
// etc.
When the two…

Phil Sinatra
- 419
- 3
- 11
0
votes
0 answers
gulp-eslint not linting even though eslint directly is linting correctly
I have a project that shows an error when linting without gulp, but fails to show the same error when linting via gulp-eslint.
gulpfile.js
const gulp = require('gulp');
const inject = require('gulp-inject'); // Should error since this is never…

Catfish
- 18,876
- 54
- 209
- 353