Update linter packages
- Update ESLint
- Update typescript-eslint
- Update eslint-plugin-import
- Update Stylelint standard config
R=jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=ESLint fix
Bug: none
Change-Id: Ic1efac8b4f7b085b8f2b792a76b8b99b9f583da3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3158225
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
diff --git a/node_modules/eslint-module-utils/.eslintrc b/node_modules/eslint-module-utils/.eslintrc
new file mode 100644
index 0000000..3fd3f5e
--- /dev/null
+++ b/node_modules/eslint-module-utils/.eslintrc
@@ -0,0 +1,5 @@
+{
+ "parserOptions": {
+ "ecmaVersion": 6,
+ },
+}
diff --git a/node_modules/eslint-module-utils/CHANGELOG.md b/node_modules/eslint-module-utils/CHANGELOG.md
index 949fa8d..9160055 100644
--- a/node_modules/eslint-module-utils/CHANGELOG.md
+++ b/node_modules/eslint-module-utils/CHANGELOG.md
@@ -5,6 +5,11 @@
## Unreleased
+## v2.6.2 - 2021-08-08
+
+### Fixed
+- Use `context.getPhysicalFilename()` when available (ESLint 7.28+) ([#2160], thanks [@pmcelhaney])
+
## v2.6.1 - 2021-05-13
### Fixed
@@ -85,33 +90,35 @@
### Fixed
- `unambiguous.test()` regex is now properly in multiline mode
-[#2026]: https://github.com/benmosher/eslint-plugin-import/pull/2026
-[#1786]: https://github.com/benmosher/eslint-plugin-import/pull/1786
-[#1671]: https://github.com/benmosher/eslint-plugin-import/pull/1671
-[#1606]: https://github.com/benmosher/eslint-plugin-import/pull/1606
-[#1602]: https://github.com/benmosher/eslint-plugin-import/pull/1602
-[#1591]: https://github.com/benmosher/eslint-plugin-import/pull/1591
-[#1551]: https://github.com/benmosher/eslint-plugin-import/pull/1551
-[#1435]: https://github.com/benmosher/eslint-plugin-import/pull/1435
-[#1409]: https://github.com/benmosher/eslint-plugin-import/pull/1409
-[#1356]: https://github.com/benmosher/eslint-plugin-import/pull/1356
-[#1290]: https://github.com/benmosher/eslint-plugin-import/pull/1290
-[#1218]: https://github.com/benmosher/eslint-plugin-import/pull/1218
-[#1166]: https://github.com/benmosher/eslint-plugin-import/issues/1166
-[#1160]: https://github.com/benmosher/eslint-plugin-import/pull/1160
-[#1035]: https://github.com/benmosher/eslint-plugin-import/issues/1035
-[#599]: https://github.com/benmosher/eslint-plugin-import/pull/599
+[#2160]: https://github.com/import-js/eslint-plugin-import/pull/2160
+[#2026]: https://github.com/import-js/eslint-plugin-import/pull/2026
+[#1786]: https://github.com/import-js/eslint-plugin-import/pull/1786
+[#1671]: https://github.com/import-js/eslint-plugin-import/pull/1671
+[#1606]: https://github.com/import-js/eslint-plugin-import/pull/1606
+[#1602]: https://github.com/import-js/eslint-plugin-import/pull/1602
+[#1591]: https://github.com/import-js/eslint-plugin-import/pull/1591
+[#1551]: https://github.com/import-js/eslint-plugin-import/pull/1551
+[#1435]: https://github.com/import-js/eslint-plugin-import/pull/1435
+[#1409]: https://github.com/import-js/eslint-plugin-import/pull/1409
+[#1356]: https://github.com/import-js/eslint-plugin-import/pull/1356
+[#1290]: https://github.com/import-js/eslint-plugin-import/pull/1290
+[#1218]: https://github.com/import-js/eslint-plugin-import/pull/1218
+[#1166]: https://github.com/import-js/eslint-plugin-import/issues/1166
+[#1160]: https://github.com/import-js/eslint-plugin-import/pull/1160
+[#1035]: https://github.com/import-js/eslint-plugin-import/issues/1035
+[#599]: https://github.com/import-js/eslint-plugin-import/pull/599
-[@hulkish]: https://github.com/hulkish
-[@timkraut]: https://github.com/timkraut
-[@vikr01]: https://github.com/vikr01
-[@bradzacher]: https://github.com/bradzacher
-[@christophercurrie]: https://github.com/christophercurrie
-[@brettz9]: https://github.com/brettz9
-[@JounQin]: https://github.com/JounQin
+[@aladdin-add]: https://github.com/aladdin-add
[@arcanis]: https://github.com/arcanis
-[@sompylasar]: https://github.com/sompylasar
+[@bradzacher]: https://github.com/bradzacher
+[@brettz9]: https://github.com/brettz9
+[@christophercurrie]: https://github.com/christophercurrie
+[@hulkish]: https://github.com/hulkish
[@iamnapo]: https://github.com/iamnapo
+[@JounQin]: https://github.com/JounQin
[@kaiyoma]: https://github.com/kaiyoma
[@manuth]: https://github.com/manuth
-[@aladdin-add]: https://github.com/aladdin-add
\ No newline at end of file
+[@pmcelhaney]: https://github.com/pmcelhaney
+[@sompylasar]: https://github.com/sompylasar
+[@timkraut]: https://github.com/timkraut
+[@vikr01]: https://github.com/vikr01
\ No newline at end of file
diff --git a/node_modules/eslint-module-utils/package.json b/node_modules/eslint-module-utils/package.json
index 2ec00e6..f726b79 100644
--- a/node_modules/eslint-module-utils/package.json
+++ b/node_modules/eslint-module-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "eslint-module-utils",
- "version": "2.6.1",
+ "version": "2.6.2",
"description": "Core utilities to support eslint-plugin-import and other module-related plugins.",
"engines": {
"node": ">=4"
@@ -11,7 +11,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/benmosher/eslint-plugin-import.git"
+ "url": "git+https://github.com/import-js/eslint-plugin-import.git"
},
"keywords": [
"eslint-plugin-import",
@@ -22,9 +22,9 @@
"author": "Ben Mosher <me@benmosher.com>",
"license": "MIT",
"bugs": {
- "url": "https://github.com/benmosher/eslint-plugin-import/issues"
+ "url": "https://github.com/import-js/eslint-plugin-import/issues"
},
- "homepage": "https://github.com/benmosher/eslint-plugin-import#readme",
+ "homepage": "https://github.com/import-js/eslint-plugin-import#readme",
"dependencies": {
"debug": "^3.2.7",
"pkg-dir": "^2.0.0"
diff --git a/node_modules/eslint-module-utils/parse.js b/node_modules/eslint-module-utils/parse.js
index 9cc2380..3b2ac02 100644
--- a/node_modules/eslint-module-utils/parse.js
+++ b/node_modules/eslint-module-utils/parse.js
@@ -35,7 +35,7 @@
// @typescript-eslint/parser will parse the entire project with typechecking if you provide
// "project" or "projects" in parserOptions. Removing these options means the parser will
// only parse one file in isolate mode, which is much, much faster.
- // https://github.com/benmosher/eslint-plugin-import/issues/1408#issuecomment-509298962
+ // https://github.com/import-js/eslint-plugin-import/issues/1408#issuecomment-509298962
delete parserOptions.project;
delete parserOptions.projects;
@@ -52,11 +52,7 @@
console.warn('Line ' + e.lineNumber + ', column ' + e.column + ': ' + e.message);
}
if (!ast || typeof ast !== 'object') {
- console.warn(
- '`parseForESLint` from parser `' +
- parserPath +
- '` is invalid and will just be ignored'
- );
+ console.warn('`parseForESLint` from parser `' + parserPath + '` is invalid and will just be ignored');
} else {
return ast;
}
diff --git a/node_modules/eslint-module-utils/resolve.js b/node_modules/eslint-module-utils/resolve.js
index ea5bf5a..f488ea7 100644
--- a/node_modules/eslint-module-utils/resolve.js
+++ b/node_modules/eslint-module-utils/resolve.js
@@ -217,10 +217,7 @@
*/
function resolve(p, context) {
try {
- return relative( p
- , context.getFilename()
- , context.settings
- );
+ return relative(p, context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(), context.settings);
} catch (err) {
if (!erroredContexts.has(context)) {
// The `err.stack` string starts with `err.name` followed by colon and `err.message`.