From 6c5c099d159684ce24a9a5a451e26b27dc8419fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Goetz?= Date: Thu, 14 Oct 2021 22:27:23 +0200 Subject: [PATCH] Update to ESLint 8 --- packages/crafty-preset-babel/package.json | 2 +- packages/crafty-preset-babel/src/gulp.js | 10 +- packages/crafty-preset-eslint/package.json | 2 +- .../src/commands/jsLint.js | 2 +- .../src/patchModuleResolver.js | 66 +-------- packages/crafty-preset-swc/package.json | 2 +- packages/crafty-preset-swc/src/gulp.js | 10 +- .../crafty-preset-typescript/package.json | 2 +- packages/crafty-preset-typescript/src/gulp.js | 8 +- .../eslint-plugin-swissquote/jest.config.js | 5 +- .../eslint-plugin-swissquote/package.json | 4 +- packages/rollup-plugin-eslint/package.json | 2 +- yarn.lock | 126 +++++++++--------- 13 files changed, 102 insertions(+), 139 deletions(-) diff --git a/packages/crafty-preset-babel/package.json b/packages/crafty-preset-babel/package.json index 53f6c1fff..0a3d703bc 100644 --- a/packages/crafty-preset-babel/package.json +++ b/packages/crafty-preset-babel/package.json @@ -21,7 +21,7 @@ "babel-loader": "8.2.2", "gulp-babel": "8.0.0", "gulp-concat": "2.6.1", - "gulp-eslint7": "0.3.2", + "gulp-eslint-new": "0.4.0", "gulp-newer": "1.4.0", "gulp-sourcemaps": "3.0.0", "gulp-terser": "2.1.0" diff --git a/packages/crafty-preset-babel/src/gulp.js b/packages/crafty-preset-babel/src/gulp.js index ead7f81d6..37c9dcc1c 100644 --- a/packages/crafty-preset-babel/src/gulp.js +++ b/packages/crafty-preset-babel/src/gulp.js @@ -18,8 +18,14 @@ module.exports = function createTask(crafty, bundle, StreamHandler) { const { toTempFile } = require("@swissquote/crafty-preset-eslint/src/eslintConfigurator"); - const eslint = require("gulp-eslint7"); - stream.add(eslint(toTempFile(crafty.config.eslint))).add(eslint.format()); + const eslint = require("gulp-eslint-new"); + stream + .add( + eslint({ + overrideConfigFile: toTempFile(crafty.config.eslint) + }) + ) + .add(eslint.format()); // Fail the build if we have linting // errors and we build directly diff --git a/packages/crafty-preset-eslint/package.json b/packages/crafty-preset-eslint/package.json index 12283530a..b3f345fc1 100644 --- a/packages/crafty-preset-eslint/package.json +++ b/packages/crafty-preset-eslint/package.json @@ -17,7 +17,7 @@ "@swissquote/rollup-plugin-eslint": "1.16.3", "copy-anything": "2.0.3", "debug": "^4.1.0", - "eslint": "7.32.0", + "eslint": "8.0.1", "eslint-webpack-plugin": "3.0.1", "merge-anything": "4.0.1", "resolve-from": "5.0.0", diff --git a/packages/crafty-preset-eslint/src/commands/jsLint.js b/packages/crafty-preset-eslint/src/commands/jsLint.js index 11b639534..dd5cee090 100755 --- a/packages/crafty-preset-eslint/src/commands/jsLint.js +++ b/packages/crafty-preset-eslint/src/commands/jsLint.js @@ -17,4 +17,4 @@ if (process.argv[2] === "jsLint") { process.argv.push("--config"); process.argv.push(tmpfile); -require("eslint/bin/eslint"); +require(".bin/eslint"); diff --git a/packages/crafty-preset-eslint/src/patchModuleResolver.js b/packages/crafty-preset-eslint/src/patchModuleResolver.js index 4629548ad..8e498303c 100644 --- a/packages/crafty-preset-eslint/src/patchModuleResolver.js +++ b/packages/crafty-preset-eslint/src/patchModuleResolver.js @@ -13,25 +13,6 @@ const path = require("path"); const fs = require("fs"); -function getESLintFolderFromModule() { - let currentModule = module; - - while ( - !/[\\/]eslint[\\/]lib[\\/]cli-engine[\\/]config-array-factory\.js/i.test( - currentModule.filename - ) - ) { - if (!currentModule.parent) { - // This was tested with ESLint 7.5.0; other versions may not work - throw new Error( - "Failed to patch ESLint because the calling module was not recognized" - ); - } - currentModule = currentModule.parent; - } - return path.join(path.dirname(currentModule.filename), "../.."); -} - function getESLintrcFolderFromModule() { let currentModule = module; @@ -51,31 +32,9 @@ function getESLintrcFolderFromModule() { return path.join(path.dirname(currentModule.filename), ".."); } -function checkESLintVersion(eslintPath) { - // Detect the ESLint package version - const eslintPackageJson = fs - .readFileSync(path.join(eslintPath, "package.json")) - .toString(); - const eslintPackageObject = JSON.parse(eslintPackageJson); - const eslintPackageVersion = eslintPackageObject.version; - const versionMatch = /^([0-9]+)\./.exec(eslintPackageVersion); // parse the SemVer MAJOR part - if (!versionMatch) { - throw new Error(`Unable to parse ESLint version: ${eslintPackageVersion}`); - } - const eslintMajorVersion = Number(versionMatch[1]); - if (eslintMajorVersion !== 7) { - throw new Error( - `The patch-eslint.js script has only been tested with ESLint version 7.x. (Your version: ${eslintPackageVersion})` - ); - } -} - function patch(eslintPath) { - const moduleResolverPath = path.join( - eslintPath, - "lib/shared/relative-module-resolver" - ); - const ModuleResolver = require(moduleResolverPath); + const moduleResolverPath = path.join(eslintPath, "dist/eslintrc.cjs"); + const ModuleResolver = require(moduleResolverPath).Legacy.ModuleResolver; const originalResolve = ModuleResolver.resolve; @@ -98,27 +57,6 @@ function patch(eslintPath) { let succeeded = false; const errors = []; -// Patch ESLint directly -// This works if it's a version from before it was separated into @eslint/eslintrc -const eslintPossiblePaths = [ - getESLintFolderFromModule, - () => require.resolve("eslint/package.json").replace(/\/package\.json$/, ""), - () => path.join(process.cwd(), "node_modules", "eslint") -]; - -eslintPossiblePaths.forEach(mainEslintFolderFn => { - try { - const mainEslintFolder = mainEslintFolderFn(); - if (fs.existsSync(mainEslintFolder)) { - checkESLintVersion(mainEslintFolder); - patch(mainEslintFolder); - succeeded = true; - } - } catch (e) { - errors.push(e); - } -}); - // Patch @eslint/eslintrc when it's found const eslintrcPossiblePaths = [ getESLintrcFolderFromModule, diff --git a/packages/crafty-preset-swc/package.json b/packages/crafty-preset-swc/package.json index 2e1c17cb7..776e676ca 100644 --- a/packages/crafty-preset-swc/package.json +++ b/packages/crafty-preset-swc/package.json @@ -20,7 +20,7 @@ "debug": "^4.1.0", "find-up": "5.0.0", "gulp-concat": "2.6.1", - "gulp-eslint7": "0.3.2", + "gulp-eslint-new": "0.4.0", "gulp-newer": "1.4.0", "gulp-sourcemaps": "3.0.0", "gulp-swc": "1.1.1", diff --git a/packages/crafty-preset-swc/src/gulp.js b/packages/crafty-preset-swc/src/gulp.js index 1f8b238ba..bb6b6f7ea 100644 --- a/packages/crafty-preset-swc/src/gulp.js +++ b/packages/crafty-preset-swc/src/gulp.js @@ -18,8 +18,14 @@ module.exports = function createTask(crafty, bundle, StreamHandler) { const { toTempFile } = require("@swissquote/crafty-preset-eslint/src/eslintConfigurator"); - const eslint = require("gulp-eslint7"); - stream.add(eslint(toTempFile(crafty.config.eslint))).add(eslint.format()); + const eslint = require("gulp-eslint-new"); + stream + .add( + eslint({ + overrideConfigFile: toTempFile(crafty.config.eslint) + }) + ) + .add(eslint.format()); // Fail the build if we have linting // errors and we build directly diff --git a/packages/crafty-preset-typescript/package.json b/packages/crafty-preset-typescript/package.json index 7cb5c1779..6ee7a17b2 100644 --- a/packages/crafty-preset-typescript/package.json +++ b/packages/crafty-preset-typescript/package.json @@ -21,7 +21,7 @@ "find-up": "5.0.0", "fork-ts-checker-webpack-plugin": "6.3.4", "gulp-babel": "8.0.0", - "gulp-eslint7": "0.3.2", + "gulp-eslint-new": "0.4.0", "gulp-sourcemaps": "3.0.0", "gulp-typescript": "5.0.1", "tmp": "0.2.1", diff --git a/packages/crafty-preset-typescript/src/gulp.js b/packages/crafty-preset-typescript/src/gulp.js index a813789aa..3aa847c59 100644 --- a/packages/crafty-preset-typescript/src/gulp.js +++ b/packages/crafty-preset-typescript/src/gulp.js @@ -18,9 +18,13 @@ module.exports = function createTask(crafty, bundle, StreamHandler) { const { toTempFile } = require("@swissquote/crafty-preset-eslint/src/eslintConfigurator"); - const eslint = require("gulp-eslint7"); + const eslint = require("gulp-eslint-new"); stream - .add(eslint({ configFile: toTempFile(crafty.config.eslint) })) + .add( + eslint({ + overrideConfigFile: toTempFile(crafty.config.eslint) + }) + ) .add(eslint.format()); // Fail the build if we have linting diff --git a/packages/eslint-plugin-swissquote/jest.config.js b/packages/eslint-plugin-swissquote/jest.config.js index 397403872..25fa7c8a2 100644 --- a/packages/eslint-plugin-swissquote/jest.config.js +++ b/packages/eslint-plugin-swissquote/jest.config.js @@ -6,5 +6,8 @@ module.exports = { ], testEnvironment: "node", verbose: true, - coveragePathIgnorePatterns: ["node_modules", "coverage"] + coveragePathIgnorePatterns: ["node_modules", "coverage"], + moduleNameMapper: { + "eslint/use-at-your-own-risk": "eslint/lib/unsupported-api.js" + } }; diff --git a/packages/eslint-plugin-swissquote/package.json b/packages/eslint-plugin-swissquote/package.json index 96212633c..4073c3c3b 100644 --- a/packages/eslint-plugin-swissquote/package.json +++ b/packages/eslint-plugin-swissquote/package.json @@ -34,10 +34,10 @@ "typescript": "4.4.4" }, "peerDependency": { - "eslint": "^6.0.0 | ^7.0.0" + "eslint": "^6.0.0 | ^7.0.0 | ^8.0.0" }, "devDependencies": { - "eslint": "7.32.0", + "eslint": "8.0.1", "jest": "27.2.5" }, "engines": { diff --git a/packages/rollup-plugin-eslint/package.json b/packages/rollup-plugin-eslint/package.json index 80dbdce64..ce9baf1a6 100644 --- a/packages/rollup-plugin-eslint/package.json +++ b/packages/rollup-plugin-eslint/package.json @@ -35,6 +35,6 @@ }, "dependencies": { "@rollup/pluginutils": "4.1.1", - "eslint": "7.32.0" + "eslint": "8.0.1" } } diff --git a/yarn.lock b/yarn.lock index fecaf4d1d..0d16562a1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,13 +2,6 @@ # yarn lockfile v1 -"@babel/code-frame@7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" - integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== - dependencies: - "@babel/highlight" "^7.10.4" - "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.14.5", "@babel/code-frame@^7.15.8", "@babel/code-frame@^7.8.3": version "7.15.8" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.15.8.tgz#45990c47adadb00c03677baa89221f7cc23d2503" @@ -258,7 +251,7 @@ "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.4" -"@babel/highlight@^7.10.4", "@babel/highlight@^7.14.5": +"@babel/highlight@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9" integrity sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg== @@ -984,14 +977,14 @@ resolved "https://registry.yarnpkg.com/@csstools/sass-import-resolve/-/sass-import-resolve-1.0.0.tgz#32c3cdb2f7af3cd8f0dca357b592e7271f3831b5" integrity sha512-pH4KCsbtBLLe7eqUrw8brcuFO8IZlN36JjdKlOublibVdAIPHCzEnpBWOVUXK5sCf+DpBi8ZtuWtjF0srybdeA== -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== +"@eslint/eslintrc@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.0.3.tgz#41f08c597025605f672251dcc4e8be66b5ed7366" + integrity sha512-DHI1wDPoKCBPoLZA3qDR91+3te/wDSc1YhKg3jR8NxKKRJq2hwHwcWv31cSwSYvIBrmbENoYMWcenW8uproQqg== dependencies: ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" + debug "^4.3.2" + espree "^9.0.0" globals "^13.9.0" ignore "^4.0.6" import-fresh "^3.2.1" @@ -1018,10 +1011,10 @@ normalize-path "^2.0.1" through2 "^2.0.3" -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== +"@humanwhocodes/config-array@^0.6.0": + version "0.6.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.6.0.tgz#b5621fdb3b32309d2d16575456cbc277fa8f021a" + integrity sha512-JQlEKbcgEUjBFhLIF4iqM7u/9lwgHRBcpHrmUNCALK0Q3amXN6lxdoXLnF0sm11E9VqTmBALR87IlUg1bZ8A9A== dependencies: "@humanwhocodes/object-schema" "^1.2.0" debug "^4.1.1" @@ -1913,12 +1906,12 @@ acorn@^6.4.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6" integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ== -acorn@^7.1.1, acorn@^7.4.0: +acorn@^7.1.1: version "7.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.0.4, acorn@^8.2.4, acorn@^8.4.1: +acorn@^8.0.4, acorn@^8.2.4, acorn@^8.4.1, acorn@^8.5.0: version "8.5.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2" integrity sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q== @@ -2126,6 +2119,11 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + arr-diff@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-1.1.0.tgz#687c32758163588fef7de7b36fabe495eb1a399a" @@ -3462,7 +3460,7 @@ debug@3.X, debug@^3.1.1, debug@^3.2.7: dependencies: ms "^2.1.1" -debug@4, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: +debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2: version "4.3.2" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== @@ -4035,12 +4033,13 @@ eslint-scope@5.1.1, eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" -eslint-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== +eslint-scope@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-6.0.0.tgz#9cf45b13c5ac8f3d4c50f46a5121f61b3e318978" + integrity sha512-uRDL9MWmQCkaFus8RF5K9/L/2fn+80yoW3jkD53l4shjCh26fCtvJGasxjUqP5OT87SYTxCVA3BwTUzuELx9kA== dependencies: - eslint-visitor-keys "^1.1.0" + esrecurse "^4.3.0" + estraverse "^5.2.0" eslint-utils@^3.0.0: version "3.0.0" @@ -4049,11 +4048,6 @@ eslint-utils@^3.0.0: dependencies: eslint-visitor-keys "^2.0.0" -eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== - eslint-visitor-keys@^2.0.0, eslint-visitor-keys@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" @@ -4075,37 +4069,36 @@ eslint-webpack-plugin@3.0.1: normalize-path "^3.0.0" schema-utils "^3.1.0" -eslint@7.32.0, eslint@^7.32.0: - version "7.32.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== +eslint@8.0.1, eslint@^8.0.0: + version "8.0.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.0.1.tgz#3610e7fe4a05c2154669515ca60835a76a19f700" + integrity sha512-LsgcwZgQ72vZ+SMp4K6pAnk2yFDWL7Ti4pJaRvsZ0Hsw2h8ZjUIW38a9AFn2cZXdBMlScMFYYgsSp4ttFI/0bA== dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" + "@eslint/eslintrc" "^1.0.3" + "@humanwhocodes/config-array" "^0.6.0" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" - debug "^4.0.1" + debug "^4.3.2" doctrine "^3.0.0" enquirer "^2.3.5" escape-string-regexp "^4.0.0" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - espree "^7.3.1" + eslint-scope "^6.0.0" + eslint-utils "^3.0.0" + eslint-visitor-keys "^3.0.0" + espree "^9.0.0" esquery "^1.4.0" esutils "^2.0.2" fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" functional-red-black-tree "^1.0.1" - glob-parent "^5.1.2" + glob-parent "^6.0.1" globals "^13.6.0" ignore "^4.0.6" import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" - js-yaml "^3.13.1" + js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" lodash.merge "^4.6.2" @@ -4113,22 +4106,21 @@ eslint@7.32.0, eslint@^7.32.0: natural-compare "^1.4.0" optionator "^0.9.1" progress "^2.0.0" - regexpp "^3.1.0" + regexpp "^3.2.0" semver "^7.2.1" strip-ansi "^6.0.0" strip-json-comments "^3.1.0" - table "^6.0.9" text-table "^0.2.0" v8-compile-cache "^2.0.3" -espree@^7.3.0, espree@^7.3.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" - integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== +espree@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.0.0.tgz#e90a2965698228502e771c7a58489b1a9d107090" + integrity sha512-r5EQJcYZ2oaGbeR0jR0fFVijGOcwai07/690YRXLINuhmVeRY4UKSAsQPe/0BNuDgwP7Ophoc1PRsr2E3tkbdQ== dependencies: - acorn "^7.4.0" + acorn "^8.5.0" acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" + eslint-visitor-keys "^3.0.0" esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" @@ -4764,6 +4756,13 @@ glob-parent@^5.1.2, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" +glob-parent@^6.0.1: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + glob-stream@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4" @@ -4892,12 +4891,12 @@ gulp-concat@2.6.1: through2 "^2.0.0" vinyl "^2.0.0" -gulp-eslint7@0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/gulp-eslint7/-/gulp-eslint7-0.3.2.tgz#713617567a920b25ac6a5a240be73ca36ad49cd6" - integrity sha512-zDb/sz8sXmP2jv6BTM9mH1DhoOX7nq5Q3ESHelqw+Fqd7lbU0GoOUVte3NvpqP+oWaGn2+t0AKEs0kXEQRMUIw== +gulp-eslint-new@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/gulp-eslint-new/-/gulp-eslint-new-0.4.0.tgz#fae4befebf2b62691a8148619c1d48b4e4996f19" + integrity sha512-WZPoj58nyrLT+xjrvO/ZK41Y/KAQrzw5xlSyL7JtGc8GtrIC2fLHzdOoKZ8/Zk3hm8cIhsPv/mqxBoZ+DXNZDQ== dependencies: - eslint "^7.32.0" + eslint "^8.0.0" fancy-log "^1.3.3" plugin-error "^1.0.1" @@ -6322,6 +6321,13 @@ js-yaml@^3.10.0, js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + jsdom@^16.6.0: version "16.7.0" resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" @@ -8638,7 +8644,7 @@ regexp.prototype.flags@^1.2.0, regexp.prototype.flags@^1.3.1: call-bind "^1.0.2" define-properties "^1.1.3" -regexpp@^3.1.0: +regexpp@^3.1.0, regexpp@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== @@ -9764,7 +9770,7 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -table@^6.0.9, table@^6.6.0: +table@^6.6.0: version "6.7.2" resolved "https://registry.yarnpkg.com/table/-/table-6.7.2.tgz#a8d39b9f5966693ca8b0feba270a78722cbaf3b0" integrity sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==