`overrides` from npm pkg throws due to `basePath` inconsistent
See original GitHub issueTell 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:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top 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 >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
I think I run into a similar issue when trying to use
overrides
withextends
for the package published to npm. Related PR: https://github.com/WordPress/gutenberg-examples/pull/87#issuecomment-526204832I 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.
I’m sorry for my late response. I have confirmed it. I will work on this.