-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix many tests, add hot-patching to get the ball rolling
- Loading branch information
Showing
15 changed files
with
258 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,6 @@ | |
}, | ||
"dependencies": { | ||
"@rollup/pluginutils": "4.1.1", | ||
"eslint": "8.0.0-beta.1" | ||
"eslint": "8.0.0-rc.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
diff --git a/node_modules/eslint/lib/cli-engine/cli-engine.js b/node_modules/eslint/lib/cli-engine/cli-engine.js | ||
index aae7160..45c7156 100644 | ||
--- a/node_modules/eslint/lib/cli-engine/cli-engine.js | ||
+++ b/node_modules/eslint/lib/cli-engine/cli-engine.js | ||
@@ -595,6 +595,7 @@ class CLIEngine { | ||
cwd: options.cwd, | ||
ignorePath: options.ignorePath, | ||
resolvePluginsRelativeTo: options.resolvePluginsRelativeTo, | ||
+ resolver: options.resolver, | ||
rulePaths: options.rulePaths, | ||
specificConfigPath: options.configFile, | ||
useEslintrc: options.useEslintrc, | ||
diff --git a/node_modules/eslint/lib/cli.js b/node_modules/eslint/lib/cli.js | ||
index 477310d..af6a75a 100644 | ||
--- a/node_modules/eslint/lib/cli.js | ||
+++ b/node_modules/eslint/lib/cli.js | ||
@@ -83,6 +83,7 @@ function translateOptions({ | ||
quiet, | ||
reportUnusedDisableDirectives, | ||
resolvePluginsRelativeTo, | ||
+ resolver, | ||
rule, | ||
rulesdir | ||
}) { | ||
@@ -119,6 +120,7 @@ function translateOptions({ | ||
overrideConfigFile: config, | ||
reportUnusedDisableDirectives: reportUnusedDisableDirectives ? "error" : void 0, | ||
resolvePluginsRelativeTo, | ||
+ resolver, | ||
rulePaths: rulesdir, | ||
useEslintrc: eslintrc | ||
}; | ||
diff --git a/node_modules/eslint/lib/eslint/eslint.js b/node_modules/eslint/lib/eslint/eslint.js | ||
index b4a1d02..89213d0 100644 | ||
--- a/node_modules/eslint/lib/eslint/eslint.js | ||
+++ b/node_modules/eslint/lib/eslint/eslint.js | ||
@@ -173,6 +173,7 @@ function processOptions({ | ||
plugins = {}, | ||
reportUnusedDisableDirectives = null, // ← should be null by default because if it's a string then it overrides the 'reportUnusedDisableDirectives' setting in config files. And we cannot use `overrideConfig.reportUnusedDisableDirectives` instead because we cannot configure the `error` severity with that. | ||
resolvePluginsRelativeTo = null, // ← should be null by default because if it's a string then it suppresses RFC47 feature. | ||
+ resolver = null, | ||
rulePaths = [], | ||
useEslintrc = true, | ||
...unknownOptions | ||
@@ -305,6 +306,7 @@ function processOptions({ | ||
ignorePath, | ||
reportUnusedDisableDirectives, | ||
resolvePluginsRelativeTo, | ||
+ resolver: resolver ? require(resolver) : undefined, | ||
rulePaths, | ||
useEslintrc | ||
}; | ||
diff --git a/node_modules/eslint/lib/options.js b/node_modules/eslint/lib/options.js | ||
index 2dd186d..dfe32c1 100644 | ||
--- a/node_modules/eslint/lib/options.js | ||
+++ b/node_modules/eslint/lib/options.js | ||
@@ -115,6 +115,11 @@ module.exports = optionator({ | ||
type: "path::String", | ||
description: "A folder where plugins should be resolved from, CWD by default" | ||
}, | ||
+ { | ||
+ option: "resolver", | ||
+ type: "path::String", | ||
+ description: "Absolute path to a resolver module" | ||
+ }, | ||
{ | ||
heading: "Specifying rules and plugins" | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js b/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js | ||
index bda956c..29be68e 100644 | ||
--- a/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js | ||
+++ b/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js | ||
@@ -17,7 +17,7 @@ var _arrayIncludes = require('array-includes');var _arrayIncludes2 = _interopReq | ||
* @author René Fermann | ||
*/ // eslint/lib/util/glob-util has been moved to eslint/lib/util/glob-utils with version 5.3 | ||
// and has been moved to eslint/lib/cli-engine/file-enumerator in version 6 | ||
-var listFilesToProcess = void 0;try {var FileEnumerator = require('eslint/lib/cli-engine/file-enumerator').FileEnumerator; | ||
+var listFilesToProcess = void 0;try {var FileEnumerator = require('eslint/use-at-your-own-risk').FileEnumerator; | ||
listFilesToProcess = function listFilesToProcess(src, extensions) { | ||
var e = new FileEnumerator({ | ||
extensions: extensions }); |
Oops, something went wrong.