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.

ESLint doesn't support globbing?

See original GitHub issue

eslint doesn’t seem able to be run on all files in a directory to any depth, is this a limitation of optionator? As it stands I’ll have to add all the directories I want linted by hand to the npm script. That’s a lot of directories, ** support would be great.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:2
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

34reactions
anodynoscommented, Aug 16, 2016

Worth noting for anyone looking that in package.json this solved the eslint not globbing problem in bash / linux :

"scripts": {
    "lint": "eslint './src/**/*.js' './specs/**/*.js'",
 ....
  }

All you need is single quotes around the path eg './some/path/with/glob/**/*.js'.

7reactions
niheycommented, Sep 30, 2015

Nice catch, using eslint . --ext .jsx seems good enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Eslint glob (**) is not considering all directories recursively
I was under the impression that ** glob indicated recursive search? Does anyone know how I can make this behave as expected? javascript...
Read more >
ESLint | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA integrates with ESLint which brings a wide range of linting rules ... Glob patterns that define relative paths to the working...
Read more >
Node.js API - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
VS Code ESLint extension - Visual Studio Marketplace
Glob working directory support - Projects that have a complex folder structure and need to customize the working directories via eslint.
Read more >
Why you should always quote your globs in NPM scripts.
Best solution is to use node-glob package and most popular tools like ESLint already relies on it. The trick is to quote the...
Read more >

github_iconTop Related Medium Post

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