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.

overrides paths don't support `./`

See original GitHub issue

Tell 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ljharbcommented, Feb 24, 2018

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.

1reaction
platinumazurecommented, Feb 6, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

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