build: fix eslint issues (#124)
* build: fix eslint issues * build: migrate to Node 16
This commit is contained in:
committed by
GitHub
parent
531a952df3
commit
96ad8afe1d
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "babel-eslint",
|
||||
"parser": "@babel/eslint-parser",
|
||||
"extends": ["airbnb-base", "plugin:prettier/recommended"],
|
||||
"plugins": ["prettier"],
|
||||
"rules": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "babel-eslint",
|
||||
"parser": "@babel/eslint-parser",
|
||||
"extends": [
|
||||
"airbnb-base",
|
||||
"plugin:prettier/recommended",
|
||||
|
||||
Generated
+14295
-12829
File diff suppressed because it is too large
Load Diff
+37
-35
@@ -34,74 +34,76 @@
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"prop-types": "^15.7.2",
|
||||
"prop-types": "^15.8.1",
|
||||
"react": "^17.0.2",
|
||||
"react-bootstrap": "^1.3.0",
|
||||
"react-bootstrap": "^1.6.4",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-transition-group": "^4.4.1"
|
||||
"react-transition-group": "^4.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.10.5",
|
||||
"@babel/core": "^7.11.1",
|
||||
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
|
||||
"@babel/plugin-transform-object-assign": "^7.10.4",
|
||||
"@babel/polyfill": "^7.10.4",
|
||||
"@babel/preset-env": "^7.11.0",
|
||||
"@babel/preset-react": "^7.10.4",
|
||||
"@babel/cli": "^7.17.6",
|
||||
"@babel/core": "^7.17.8",
|
||||
"@babel/eslint-parser": "^7.17.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.17.3",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
||||
"@babel/plugin-transform-object-assign": "^7.16.7",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@babel/preset-env": "^7.16.11",
|
||||
"@babel/preset-react": "^7.16.7",
|
||||
"@google/clasp": "2.3.1",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
|
||||
"@types/expect-puppeteer": "^4.4.6",
|
||||
"@types/expect-puppeteer": "^4.4.7",
|
||||
"@types/jest-environment-puppeteer": "^4.4.1",
|
||||
"@types/puppeteer": "^5.4.4",
|
||||
"aws-sdk": "^2.1092.0",
|
||||
"@types/puppeteer": "^5.4.5",
|
||||
"aws-sdk": "^2.1106.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"babel-loader": "^8.2.4",
|
||||
"babel-plugin-add-module-exports": "^1.0.2",
|
||||
"babel-plugin-transform-es3-member-expression-literals": "^6.22.0",
|
||||
"babel-plugin-transform-es3-property-literals": "^6.22.0",
|
||||
"copy-webpack-plugin": "^6.0.3",
|
||||
"copy-webpack-plugin": "^6.4.1",
|
||||
"cross-env": "^7.0.2",
|
||||
"css-loader": "^3.6.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"dotenv": "^8.6.0",
|
||||
"dynamic-cdn-webpack-plugin": "^5.0.0",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-airbnb-base": "^14.2.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint": "^8.12.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-config-prettier": "^6.15.0",
|
||||
"eslint-config-standard": "^14.1.1",
|
||||
"eslint-plugin-babel": "^5.3.1",
|
||||
"eslint-plugin-googleappsscript": "^1.0.3",
|
||||
"eslint-plugin-import": "^2.22.0",
|
||||
"eslint-plugin-jest": "^24.3.6",
|
||||
"eslint-plugin-jsx-a11y": "^6.3.1",
|
||||
"eslint-plugin-googleappsscript": "^1.0.4",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-jest": "^26.1.3",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-react": "^7.20.5",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"eslint-plugin-prettier": "^3.4.1",
|
||||
"eslint-plugin-promise": "^4.3.1",
|
||||
"eslint-plugin-react": "^7.29.4",
|
||||
"eslint-plugin-standard": "^4.1.0",
|
||||
"gas-client": "^1.0.0",
|
||||
"gas-lib": "^2.0.3",
|
||||
"gas-lib": "^2.0.4",
|
||||
"gas-types-detailed": "^1.0.0",
|
||||
"gas-webpack-plugin": "^1.2.3",
|
||||
"html-webpack-inline-source-plugin": "0.0.10",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-environment-node": "^27.5.1",
|
||||
"jest-image-snapshot": "^4.5.1",
|
||||
"mkdirp": "^1.0.4",
|
||||
"module-to-cdn": "^3.1.5",
|
||||
"prettier": "^1.19.1",
|
||||
"puppeteer": "^13.4.1",
|
||||
"puppeteer": "^13.5.2",
|
||||
"puppeteer-extra": "^3.2.3",
|
||||
"puppeteer-extra-plugin-stealth": "^2.9.0",
|
||||
"react-refresh": "^0.10.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"style-loader": "^1.2.1",
|
||||
"style-loader": "^1.3.0",
|
||||
"tern": "^0.24.3",
|
||||
"terser-webpack-plugin": "^2.3.7",
|
||||
"ts-loader": "^8.0.2",
|
||||
"terser-webpack-plugin": "^2.3.8",
|
||||
"ts-loader": "^8.3.0",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.12",
|
||||
"webpack-dev-server": "^3.11.0"
|
||||
"webpack-dev-server": "^3.11.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "babel-eslint",
|
||||
"parser": "@babel/eslint-parser",
|
||||
"extends": [
|
||||
"airbnb-base",
|
||||
"plugin:prettier/recommended",
|
||||
@@ -30,7 +30,6 @@
|
||||
"import/prefer-default-export": "warn",
|
||||
"import/no-extraneous-dependencies": "warn",
|
||||
"prefer-object-spread": "warn",
|
||||
"rules": {
|
||||
"import/extensions": [
|
||||
"error",
|
||||
"ignorePackages",
|
||||
@@ -41,7 +40,6 @@
|
||||
"tsx": "never"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "babel-eslint",
|
||||
"parser": "@babel/eslint-parser",
|
||||
"extends": ["airbnb-base", "plugin:prettier/recommended"],
|
||||
"plugins": ["prettier", "googleappsscript"],
|
||||
"env": {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"@babel/plugin-proposal-object-rest-spread",
|
||||
"@babel/plugin-proposal-class-properties"
|
||||
]
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "babel-eslint",
|
||||
"parser": "@babel/eslint-parser",
|
||||
"extends": [
|
||||
"airbnb-base",
|
||||
"plugin:prettier/recommended",
|
||||
|
||||
@@ -13,7 +13,7 @@ const StealthPlugin = require('puppeteer-extra-plugin-stealth');
|
||||
const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup');
|
||||
const jestPuppeteerConfig = require('./jest-puppeteer.config');
|
||||
|
||||
module.exports = async function() {
|
||||
module.exports = async function globalSetup() {
|
||||
puppeteer.use(StealthPlugin());
|
||||
const browser = await puppeteer.launch(jestPuppeteerConfig.launch);
|
||||
// store the browser instance so we can teardown it later
|
||||
|
||||
@@ -7,7 +7,7 @@ const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup');
|
||||
module.exports = async function() {
|
||||
module.exports = async function globalTeardown() {
|
||||
// close the browser instance
|
||||
await global.__BROWSER_GLOBAL__.close();
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ const { openAddon } = require('./utils/open-addon');
|
||||
|
||||
require('dotenv').config();
|
||||
|
||||
const isExtended = process.env.IS_EXTENDED == true;
|
||||
const isExtended = `${process.env.IS_EXTENDED}` === 'true';
|
||||
|
||||
const toMatchImageSnapshot = configureToMatchImageSnapshot({
|
||||
failureThreshold: 0.04,
|
||||
|
||||
@@ -11,10 +11,6 @@ const NodeEnvironment = require('jest-environment-node');
|
||||
const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup');
|
||||
|
||||
class PuppeteerEnvironment extends NodeEnvironment {
|
||||
constructor(config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
async setup() {
|
||||
await super.setup();
|
||||
// get the wsEndpoint
|
||||
|
||||
@@ -25,6 +25,7 @@ const openAddon = async page => {
|
||||
await page.click('div[data-accountrecovery]');
|
||||
await page.waitForTimeout(6000);
|
||||
} catch {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('The "choose account recovery method" page isn\'t shown');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user