question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Local .eslintrc.json ignored in 6.0.0

See original GitHub issue

Here’s my test project, simply clone it and install dependencies.

Running npm test or npm run lint works fine. Now go to the package, upgrade gulp-eslint dependency to 6.0.0, and nothing works anymore, producing tons of linting errors. It looks like from version 6.0.0 the local .eslintrc.json files are ignored.

Any idea how to fix it and/or change the project to make it work with version 6.0.0?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
cashpipepluspluscommented, Apr 3, 2021

And holy crap, here it is:

const eslint = require('gulp-eslint');

function lint() {
  return gulp.src([
    '*.js',
    'src/**/*.js',
    'extension/*.js',
  ])
  .pipe(eslint())

  // Add these:
  .pipe(eslint.format())
  .pipe(eslint.failAfterError());
}

This is all in the README, and I’m super embarrassed that I was too impatient to read it.

0reactions
vitaly-tcommented, Apr 3, 2021

Adding this makes it work:

 .pipe(eslint.format())
  .pipe(eslint.failAfterError());
Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint fails to load plugins when using ESLint 6.x #696 - GitHub
I'm using TypeScript + Yarn workspaces + Lerna and have all the plugins installed locally and globally . Failed to load plugin prettier:...
Read more >
eslint-plugin-vue - Gitter
@plakhin ESLint now tries to resolve all plugins as local installs as of 6.0.0. In your case the issue sounds like an extra...
Read more >
My create-react-app is failing to compile due to ESLint error
This flag is ignored during production and when they are any git hooks ... We are going to add another script to our...
Read more >
Configuration Files - ESLint - Pluggable JavaScript Linter
json files should not include them). You can use JavaScript-style comments for JSON files and YAML-style comments for YAML files. ESLint safely ignores...
Read more >
gulp-eslint | Yarn - Package Manager
A gulp plugin for processing files with ESLint. gulpplugin, eslint, gulp ... gulp-eslint Build Status Coverage Status ... Bump eslint dependency to ^6.0.0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found