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` from npm pkg throws due to `basePath` inconsistent

See original GitHub issue

Tell us about your environment

  • ESLint Version: v6.1.0
  • Node Version: v12.7.0
  • npm Version: 6.10.0

What parser (default, Babel-ESLint, etc.) are you using? @typescript-eslint/parser

Please show your full configuration:

Configuration
{
  "eslintConfig": {
    "root": true,
    "extends": "1stg/react",
    "rules": {
      "@typescript-eslint/no-explicit-any": 0,
      "react/prop-types": 0
    }
  }
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

My base config: https://github.com/JounQin/eslint-config-1stg/blob/typescript/config.js

eslint . --ext ts,tsx

What did you expect to happen? No error

What actually happened? Please include the actual, raw output from ESLint.

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected

+ '/Users/JounQin/Workspaces/GitHub/Slides'
- '/Users/JounQin/Workspaces/GitHub/Slides/node_modules/eslint-config-1stg'

Are you willing to submit a pull request to fix this bug? Not sure how to fix it.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gziolocommented, Aug 29, 2019

I think I run into a similar issue when trying to use overrides with extends for the package published to npm. Related PR: https://github.com/WordPress/gutenberg-examples/pull/87#issuecomment-526204832

I was able to track it down to the following line in code:

https://github.com/eslint/eslint/blob/00d2c5be9a89efd90135c4368a9589f33df3f7ba/lib/cli-engine/config-array-factory.js#L485

I also added a comment in the PR where this feature was added: https://github.com/eslint/eslint/pull/11554#issuecomment-526235032.

0reactions
mysticateacommented, Sep 3, 2019

I’m sorry for my late response. I have confirmed it. I will work on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ts-node - npm
Override the module type of certain files, ignoring the package.json "type" field. See Module type overrides for details. Default: obeys package ...
Read more >
How do I override nested NPM dependency versions?
Overrides provide a way to replace a package in your dependency tree with another version, or another package entirely. These changes can be...
Read more >
TSConfig Reference - Docs on every TSConfig option
The configuration from the base file are loaded first, then overridden by those in the inheriting config file. All relative paths found in...
Read more >
Migration Guide | Cypress Documentation
Migrating to Cypress 12.0 This guide details the changes and how to change your code to migrate to Cypress version 12.0.
Read more >
Serverless Dotenv Plugin
npm i -D serverless-dotenv-plugin ... --env will not be supported due to changes to the Serverless Framework. ... {ENV}.local will override other envs ......
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