From 21b1a64c003564c4ea39c63e3e9f2a9a1f17ab7c Mon Sep 17 00:00:00 2001 From: Han Yeong-woo Date: Mon, 11 Mar 2024 20:55:42 +0900 Subject: [PATCH] chore: babel-eslint to @babel/eslint-parser --- package-lock.json | 221 +- package.json | 3 +- test/__snapshots__/e2e-repo.spec.ts.snap | 2655 ++++++---------------- test/repos.ts | 6 +- 4 files changed, 868 insertions(+), 2017 deletions(-) diff --git a/package-lock.json b/package-lock.json index d22c78c4..c6604c72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,8 @@ "semver": "^7.6.0" }, "devDependencies": { + "@babel/core": "^7.24.3", + "@babel/eslint-parser": "^7.24.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@tsconfig/node16": "^16.1.3", @@ -29,7 +31,6 @@ "@types/semver": "7.5.8", "@typescript-eslint/eslint-plugin": "^7.5.0", "@typescript-eslint/parser": "^7.5.0", - "babel-eslint": "^10.1.0", "benchmark": "^2.1.4", "browserslist-config-erb": "^0.0.3", "electron": "^29.x.x", @@ -138,6 +139,33 @@ "semver": "bin/semver.js" } }, + "node_modules/@babel/eslint-parser": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.24.1.tgz", + "integrity": "sha512-d5guuzMlPeDfZIbpQ8+g1NaCNuAGBBGNECh0HVqz1sjOeVLh2CEaifuOysCH18URW6R7pqXINvf5PaR/dC6jLQ==", + "dev": true, + "dependencies": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0", + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/@babel/eslint-parser/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/generator": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.1.tgz", @@ -697,6 +725,18 @@ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@eslint-community/regexpp": { "version": "4.10.0", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", @@ -1652,6 +1692,15 @@ "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.19.tgz", "integrity": "sha512-ntKBZtwWCy4XvJosdTJKqIMdmzgbxjopfoiMxgpzsml3dXqA7MIHCE/amidfQc06a6KvmMrpiVuYHIBt2feDog==" }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dev": true, + "dependencies": { + "eslint-scope": "5.1.1" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2883,6 +2932,18 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", @@ -3218,36 +3279,6 @@ "dequal": "^2.0.3" } }, - "node_modules/babel-eslint": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", - "integrity": "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==", - "deprecated": "babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/traverse": "^7.7.0", - "@babel/types": "^7.7.0", - "eslint-visitor-keys": "^1.0.0", - "resolve": "^1.12.0" - }, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "eslint": ">= 4.12.1" - } - }, - "node_modules/babel-eslint/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/babel-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", @@ -5139,26 +5170,16 @@ } } }, - "node_modules/eslint-config-bliss-typescript/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-config-bliss-typescript/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/eslint-config-bliss-typescript/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { - "node": ">=4.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-config-bliss-typescript/node_modules/prettier": { @@ -5479,26 +5500,16 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-plugin-jest/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-plugin-jest/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/eslint-plugin-jest/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { - "node": ">=4.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-plugin-jsx-a11y": { @@ -5623,19 +5634,25 @@ } }, "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "estraverse": "^4.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=8.0.0" + } + }, + "node_modules/eslint-scope/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" } }, "node_modules/eslint-utils": { @@ -5656,7 +5673,7 @@ "eslint": ">=5" } }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "node_modules/eslint-visitor-keys": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", @@ -5665,18 +5682,6 @@ "node": ">=10" } }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/eslint/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -5748,6 +5753,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint/node_modules/globals": { "version": "13.24.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", @@ -5825,6 +5858,18 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", diff --git a/package.json b/package.json index 5ad1f04b..6dc2ac9b 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,8 @@ "semver": "^7.6.0" }, "devDependencies": { + "@babel/core": "^7.24.3", + "@babel/eslint-parser": "^7.24.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@tsconfig/node16": "^16.1.3", @@ -93,7 +95,6 @@ "@types/semver": "7.5.8", "@typescript-eslint/eslint-plugin": "^7.5.0", "@typescript-eslint/parser": "^7.5.0", - "babel-eslint": "^10.1.0", "benchmark": "^2.1.4", "browserslist-config-erb": "^0.0.3", "electron": "^29.x.x", diff --git a/test/__snapshots__/e2e-repo.spec.ts.snap b/test/__snapshots__/e2e-repo.spec.ts.snap index 93c02a17..e35532f0 100644 --- a/test/__snapshots__/e2e-repo.spec.ts.snap +++ b/test/__snapshots__/e2e-repo.spec.ts.snap @@ -4,150 +4,112 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` [ [ { - "errorCount": 1, + "errorCount": 2, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 77, + "endColumn": 101, + "endLine": 107, + "line": 107, + "message": "navigator.maxTouchPoints() is not supported in Safari 9, iOS Safari 9.0-9.2, IE 10, Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 39, + "endColumn": 58, + "endLine": 108, + "line": 108, + "message": "PointerEvent is not supported in Safari 9, Opera 30, iOS Safari 9.0-9.2, IE 10, Firefox 38, Chrome 45", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "bootstrap", }, { - "errorCount": 1, + "errorCount": 8, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 9, + "endColumn": 22, + "endLine": 349, + "line": 349, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 18, + "endColumn": 31, + "endLine": 457, + "line": 457, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 7, + "endColumn": 20, + "endLine": 495, + "line": 495, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 23, + "endColumn": 36, + "endLine": 517, + "line": 517, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 7, + "endColumn": 20, + "endLine": 518, + "line": 518, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 5, + "endColumn": 18, + "endLine": 519, + "line": 519, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 5, + "endColumn": 18, + "endLine": 525, + "line": 525, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 5, + "endColumn": 18, + "endLine": 527, + "line": 527, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -157,12 +119,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 7, + "endColumn": 20, + "endLine": 181, + "line": 181, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -172,12 +135,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -187,87 +151,69 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "bootstrap", }, { - "errorCount": 1, + "errorCount": 5, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 31, + "endColumn": 50, + "endLine": 6, + "line": 6, + "message": "PointerEvent is not supported in Safari 9, Opera 30, iOS Safari 9.0-9.2, IE 10, Firefox 38, Chrome 45", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 37, + "endColumn": 56, + "endLine": 8, + "line": 8, + "message": "PointerEvent is not supported in Safari 9, Opera 30, iOS Safari 9.0-9.2, IE 10, Firefox 38, Chrome 45", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 5, + "endColumn": 24, + "endLine": 11, + "line": 11, + "message": "PointerEvent is not supported in Safari 9, Opera 30, iOS Safari 9.0-9.2, IE 10, Firefox 38, Chrome 45", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 5, + "endColumn": 24, + "endLine": 15, + "line": 15, + "message": "PointerEvent is not supported in Safari 9, Opera 30, iOS Safari 9.0-9.2, IE 10, Firefox 38, Chrome 45", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 28, + "line": 28, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -277,87 +223,285 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "bootstrap", }, { - "errorCount": 1, + "errorCount": 12, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 7, + "endColumn": 20, + "endLine": 193, + "line": 193, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 11, + "endColumn": 24, + "endLine": 267, + "line": 267, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 11, + "endColumn": 24, + "endLine": 299, + "line": 299, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 11, + "endColumn": 24, + "endLine": 335, + "line": 335, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 11, + "endColumn": 24, + "endLine": 345, + "line": 345, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 11, + "endColumn": 24, + "endLine": 383, + "line": 383, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 11, + "endColumn": 24, + "endLine": 395, + "line": 395, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 7, + "endColumn": 20, + "endLine": 434, + "line": 434, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 7, + "endColumn": 20, + "endLine": 468, + "line": 468, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 11, + "endColumn": 24, + "endLine": 497, + "line": 497, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 11, + "endColumn": 24, + "endLine": 530, + "line": 530, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "bootstrap", }, { - "errorCount": 1, + "errorCount": 14, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 10, + "line": 10, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 9, + "endColumn": 22, + "endLine": 29, + "line": 29, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 19, + "endColumn": 32, + "endLine": 390, + "line": 390, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 19, + "endColumn": 32, + "endLine": 412, + "line": 412, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 19, + "endColumn": 32, + "endLine": 432, + "line": 432, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 19, + "endColumn": 32, + "endLine": 540, + "line": 540, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 19, + "endColumn": 32, + "endLine": 558, + "line": 558, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 19, + "endColumn": 32, + "endLine": 580, + "line": 580, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 51, + "endColumn": 64, + "endLine": 762, + "line": 762, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 5, + "endColumn": 18, + "endLine": 765, + "line": 765, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 5, + "endColumn": 18, + "endLine": 768, + "line": 768, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 52, + "endColumn": 65, + "endLine": 775, + "line": 775, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 7, + "endColumn": 20, + "endLine": 780, + "line": 780, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 7, + "endColumn": 20, + "endLine": 781, + "line": 781, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -367,27 +511,39 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "bootstrap", }, { - "errorCount": 1, + "errorCount": 2, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 32, + "endColumn": 45, + "endLine": 866, + "line": 866, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -397,12 +553,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -412,12 +569,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 12, + "line": 12, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -427,12 +585,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 17, + "endColumn": 30, + "endLine": 8, + "line": 8, + "message": "document.body() is not supported in Firefox 38", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -442,211 +601,77 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 11, + "endColumn": 22, + "endLine": 85, + "line": 85, + "message": "Promise.all() is not supported in op_mini all, IE 10, android 4.4", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "bootstrap", }, + ], + [ { "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "column": 1, + "endColumn": 51, + "endLine": 1, + "line": 1, + "message": "Definition for rule '@typescript-eslint/ban-ts-ignore' was not found.", "nodeType": null, - "ruleId": null, + "ruleId": "@typescript-eslint/ban-ts-ignore", "severity": 2, }, ], - "name": "bootstrap", + "name": "electron-react-boilerplate", }, { "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "column": 1, + "endColumn": 73, + "endLine": 1, + "line": 1, + "message": "Definition for rule 'import/no-extraneous-dependencies' was not found.", "nodeType": null, - "ruleId": null, + "ruleId": "import/no-extraneous-dependencies", "severity": 2, }, ], - "name": "bootstrap", + "name": "electron-react-boilerplate", }, { - "errorCount": 1, + "errorCount": 2, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "column": 1, + "endColumn": 67, + "endLine": 1, + "line": 1, + "message": "Definition for rule 'import/no-unresolved' was not found.", "nodeType": null, - "ruleId": null, + "ruleId": "import/no-unresolved", "severity": 2, }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "column": 1, + "endColumn": 67, + "endLine": 1, + "line": 1, + "message": "Definition for rule 'import/no-self-import' was not found.", "nodeType": null, - "ruleId": null, + "ruleId": "import/no-self-import", "severity": 2, }, ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "bootstrap", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "bootstrap", - }, - ], - [ - { - "errorCount": 1, - "messages": [ - { - "column": 1, - "endColumn": 51, - "endLine": 1, - "line": 1, - "message": "Definition for rule '@typescript-eslint/ban-ts-ignore' was not found.", - "nodeType": null, - "ruleId": "@typescript-eslint/ban-ts-ignore", - "severity": 2, - }, - ], - "name": "electron-react-boilerplate", - }, - { - "errorCount": 1, - "messages": [ - { - "column": 1, - "endColumn": 73, - "endLine": 1, - "line": 1, - "message": "Definition for rule 'import/no-extraneous-dependencies' was not found.", - "nodeType": null, - "ruleId": "import/no-extraneous-dependencies", - "severity": 2, - }, - ], - "name": "electron-react-boilerplate", - }, - { - "errorCount": 2, - "messages": [ - { - "column": 1, - "endColumn": 67, - "endLine": 1, - "line": 1, - "message": "Definition for rule 'import/no-unresolved' was not found.", - "nodeType": null, - "ruleId": "import/no-unresolved", - "severity": 2, - }, - { - "column": 1, - "endColumn": 67, - "endLine": 1, - "line": 1, - "message": "Definition for rule 'import/no-self-import' was not found.", - "nodeType": null, - "ruleId": "import/no-self-import", - "severity": 2, - }, - ], - "name": "electron-react-boilerplate", + "name": "electron-react-boilerplate", }, { "errorCount": 1, @@ -1068,1242 +1093,27 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` { "column": 3, "endColumn": 31, - "endLine": 23, - "line": 23, - "message": "requestAnimationFrame is not supported in op_mini all", - "nodeType": "MemberExpression", - "ruleId": "compat/compat", - "severity": 2, - }, - ], - "name": "jquery", - }, - ], - [], - [ - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, - "severity": 2, - }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ - { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "endLine": 23, + "line": 23, + "message": "requestAnimationFrame is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], - "name": "create-react-app", + "name": "jquery", }, + ], + [], + [ { "errorCount": 1, "messages": [ { - "column": undefined, + "column": 4, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 43, + "message": "Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (43:4)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2315,10 +1125,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 4, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 7, + "message": "Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (7:4)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2330,10 +1140,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 31, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 6, + "message": "Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (6:31)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2345,10 +1155,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 2, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 8, + "message": "Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (8:2)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2357,30 +1167,26 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "name": "create-react-app", }, { - "errorCount": 1, + "errorCount": 2, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 26, + "endLine": 58, + "line": 58, + "message": "navigator.serviceWorker() is not supported in op_mini all, KaiOS 2.5, android 123", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 5, + "endLine": 105, + "line": 103, + "message": "fetch is not supported in op_mini all", + "nodeType": "CallExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -2390,10 +1196,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 2, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 155, + "message": "Parsing error: 'return' outside of function. (155:2)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2405,12 +1211,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 10, + "endColumn": 5, + "endLine": 150, + "line": 134, + "message": "Promise is not supported in op_mini all", + "nodeType": "NewExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -2420,12 +1227,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 7, + "endColumn": 9, + "endLine": 483, + "line": 451, + "message": "Promise is not supported in op_mini all", + "nodeType": "NewExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -2435,12 +1243,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 4, + "endLine": 35, + "line": 27, + "message": "fetch is not supported in op_mini all", + "nodeType": "CallExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -2450,10 +1259,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 7, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 1, + "message": "Parsing error: Missing semicolon. (1:7)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2465,132 +1274,125 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 16, + "line": 16, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "create-react-app", }, { - "errorCount": 1, + "errorCount": 4, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 18, + "line": 18, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 23, + "line": 23, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 43, + "line": 43, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 48, + "line": 48, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], "name": "create-react-app", }, { - "errorCount": 1, + "errorCount": 6, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 22, + "line": 22, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 27, + "line": 27, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 41, + "line": 41, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, - ], - "name": "create-react-app", - }, - { - "errorCount": 1, - "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 3, + "endColumn": 25, + "endLine": 46, + "line": 46, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 3, + "endColumn": 25, + "endLine": 60, + "line": 60, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", + "severity": 2, + }, + { + "column": 3, + "endColumn": 25, + "endLine": 65, + "line": 65, + "message": "fetch is not supported in op_mini all", + "nodeType": "MemberExpression", + "ruleId": "compat/compat", "severity": 2, }, ], @@ -2600,10 +1402,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 11, + "message": "Parsing error: Unexpected token, expected "from" (11:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2615,10 +1417,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 4, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 27, + "message": "Parsing error: Missing semicolon. (27:4)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2630,10 +1432,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 12, + "message": "Parsing error: Unexpected token, expected "from" (12:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2645,10 +1447,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 12, + "message": "Parsing error: Unexpected token, expected "from" (12:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2660,10 +1462,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 11, + "message": "Parsing error: Unexpected token, expected "from" (11:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2675,10 +1477,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 11, + "message": "Parsing error: Unexpected token, expected "from" (11:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2690,10 +1492,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 11, + "message": "Parsing error: Unexpected token, expected "from" (11:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2705,10 +1507,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 17, + "message": "Parsing error: Unexpected token, expected "from" (17:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2720,10 +1522,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 13, + "message": "Parsing error: Unexpected token, expected "from" (13:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2735,10 +1537,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 16, + "message": "Parsing error: Unexpected token, expected "from" (16:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2750,10 +1552,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 14, + "message": "Parsing error: Unexpected token, expected "from" (14:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2765,10 +1567,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 13, + "message": "Parsing error: Unexpected token, expected "from" (13:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2780,10 +1582,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 15, + "message": "Parsing error: Unexpected token, expected "from" (15:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2795,10 +1597,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 4, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 10, + "message": "Parsing error: Missing semicolon. (10:4)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2810,10 +1612,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 24, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 9, + "message": "Parsing error: Missing semicolon. (9:24)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2825,10 +1627,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 4, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 11, + "message": "Parsing error: Missing semicolon. (11:4)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2840,10 +1642,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 4, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 11, + "message": "Parsing error: Missing semicolon. (11:4)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2855,10 +1657,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 6, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 28, + "message": "Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (28:6)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2870,10 +1672,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 20, + "message": "Parsing error: Unexpected token, expected "from" (20:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2885,10 +1687,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 28, + "message": "Parsing error: Unexpected token, expected "from" (28:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2900,10 +1702,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 7, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 9, + "message": "Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "flow", "typescript". (9:7)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2915,10 +1717,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 39, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 9, + "message": "Parsing error: Unexpected token, expected "," (9:39)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2930,10 +1732,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 25, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 14, + "message": "Parsing error: Unexpected token, expected "," (14:25)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2945,10 +1747,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 12, + "message": "Parsing error: Unexpected token, expected "from" (12:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2960,10 +1762,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 6, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 18, + "message": "Parsing error: Unexpected token, expected "," (18:6)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2975,10 +1777,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 16, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 10, + "message": "Parsing error: Unexpected token, expected "," (10:16)", "nodeType": null, "ruleId": null, "severity": 2, @@ -2990,10 +1792,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 14, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 17, + "message": "Parsing error: Unexpected token (17:14)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3005,10 +1807,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 9, + "message": "Parsing error: Unexpected token, expected "from" (9:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3020,10 +1822,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 36, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 9, + "message": "Parsing error: Unexpected token, expected "," (9:36)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3035,10 +1837,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 38, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 9, + "message": "Parsing error: Unexpected token, expected "," (9:38)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3050,10 +1852,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 8, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 20, + "message": "Parsing error: Unexpected token, expected "," (20:8)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3065,10 +1867,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 7, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 4, + "message": "Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "flow", "typescript". (4:7)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3080,10 +1882,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 30, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 14, + "message": "Parsing error: Unexpected token, expected "," (14:30)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3095,10 +1897,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 13, + "message": "Parsing error: Unexpected token (13:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3110,10 +1912,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 21, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 14, + "message": "Parsing error: Unexpected token, expected "," (14:21)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3125,10 +1927,10 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, + "column": 12, "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", + "line": 9, + "message": "Parsing error: Unexpected token, expected "from" (9:12)", "nodeType": null, "ruleId": null, "severity": 2, @@ -3140,12 +1942,13 @@ exports[`e2e Repo Tests should match lint result snapshots 1`] = ` "errorCount": 1, "messages": [ { - "column": undefined, - "fatal": true, - "line": undefined, - "message": "Parsing error: Cannot use import statement outside a module", - "nodeType": null, - "ruleId": null, + "column": 10, + "endColumn": 5, + "endLine": 219, + "line": 164, + "message": "Promise is not supported in op_mini all", + "nodeType": "NewExpression", + "ruleId": "compat/compat", "severity": 2, }, ], diff --git a/test/repos.ts b/test/repos.ts index c7ab69de..247278ec 100644 --- a/test/repos.ts +++ b/test/repos.ts @@ -40,10 +40,11 @@ const repos: Array = [ useEslintrc: false, baseConfig: { extends: ["plugin:compat/recommended"], - parser: "babel-eslint", + parser: "@babel/eslint-parser", parserOptions: { ecmaVersion: 2022, sourceType: "module", + requireConfigFile: false, }, }, }, @@ -187,7 +188,7 @@ const repos: Array = [ useEslintrc: false, baseConfig: { root: true, - parser: "babel-eslint", + parser: "@babel/eslint-parser", extends: ["plugin:compat/recommended"], env: { browser: true, @@ -201,6 +202,7 @@ const repos: Array = [ ecmaFeatures: { jsx: true, }, + requireConfigFile: false, }, overrides: [ {