ESLint doesn't support globbing?
See original GitHub issueeslint 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:
- Created 9 years ago
- Reactions:2
- Comments:12 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Worth noting for anyone looking that in
package.json
this solved the eslint not globbing problem in bash / linux :All you need is single quotes around the path eg
'./some/path/with/glob/**/*.js'
.Nice catch, using
eslint . --ext .jsx
seems good enough.