overrides paths don't support `./`
See original GitHub issueTell us about your environment
- ESLint Version: v4.16.0
- Node Version: v8.9.1
- npm Version: v5.6.0
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
Configuration
mostly irrelevant except:
"overrides": [
{
"files": ["./foo.js"],
"rules": {
"no-undef": 2,
},
},
],
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
foo = 3;
eslint foo.js
What did you expect to happen? A warning.
What actually happened? Please include the actual, raw output from ESLint. No warning.
When I changed ./foo.js
to foo.js
, I got a warning.
In other words, I think that overrides globs should be able to support leading .
or /
, like a normal node path + globs.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Changing the build path to lib doesnt work #441 - GitHub
Changing the target build path to lib is throwing an exception. Below is the config-overrides.js: const path = require('path'); ...
Read more >absolute path with react, react-app-rewire and typescript
Step 5: Creates a new file config-overrides.js , adding your alias and relative paths on it: ... Path aliases are no longer supported....
Read more >Creating path aliases in create-react-app with react-app-rewired
Just update their path resolution in config-overrides. js, and you are good to go. During the build stage, the react-app-rewired will interpret ...
Read more >Allow path-based breadcrumb overrides [#2987339] | Drupal.org
Allow users to override a generated breadcrumb trail based on the current page's path: Example of rendered breadcrumbs:
Read more >Overrides - PrestaShop Developer Documentation
Overrides. Overriding is a way to “override” class files and controller files. PrestaShop's ingenious class auto-loading function makes the “switch” to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
It might indeed be obviated by a solution to #9740, but I think it’s a different enough problem that it should be its own issue.
Definitely seems like a bug to me, but I don’t know 100% how this is supposed to be designed. I know that we have some special-casing for dotfiles and I’m really hoping that isn’t somehow causing this case.