Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WRR-16854: Upgrade to eslint 9 flat config #14

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion get-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ function getGlobalConfig({
}

supportGlobalResolving(eslintResolver, search);

console.log(eslintResolver, search);
}
// If eslint/lib/shared/relative-module-resolver.js does not exist, then
// our global resolving support cannot be patched in.
// As a meaningful fallback, and to backward-support ESLint <=5.x, still
// should extend the desired ruleset.
return {extends: ruleset};
return ruleset;
}

module.exports = {
Expand Down
1 change: 1 addition & 0 deletions global-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const supportGlobalResolving = (resolver, globalPaths) => {
const doResolve = resolver.resolve;
if (!Array.isArray(globalPaths)) globalPaths = [globalPaths];
resolver.resolve = function(moduleName, relativeToPath) {
console.log(`[${moduleName}] ${relativeToPath}`);
try {
// attempt normal resolving to support local & overrides
return doResolve.call(resolver, moduleName, relativeToPath);
Expand Down