ESLint fixes

This commit is contained in:
Kevin McCormack 2024-04-06 15:53:29 -04:00
parent 587904cc33
commit 08b621907a
7 changed files with 9 additions and 36 deletions

View File

@ -171,7 +171,8 @@ const AutoType = {
} else { } else {
if (!windowInfo.url) { if (!windowInfo.url) {
// try to find a URL in the title // try to find a URL in the title
const urlMatcher = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\\+.~#?&\/=]*)/; const urlMatcher =
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\\+.~#?&\/=]*)/;
const urlMatches = urlMatcher.exec(windowInfo.title); const urlMatches = urlMatcher.exec(windowInfo.title);
windowInfo.url = urlMatches && urlMatches.length > 0 ? urlMatches[0] : null; windowInfo.url = urlMatches && urlMatches.length > 0 ? urlMatches[0] : null;
} }

View File

@ -74,8 +74,7 @@ class StorageDropbox extends StorageBase {
_getOAuthConfig() { _getOAuthConfig() {
return { return {
scope: scope: 'files.content.read files.content.write files.metadata.read files.metadata.write',
'files.content.read files.content.write files.metadata.read files.metadata.write',
url: 'https://www.dropbox.com/oauth2/authorize', url: 'https://www.dropbox.com/oauth2/authorize',
tokenUrl: 'https://api.dropboxapi.com/oauth2/token', tokenUrl: 'https://api.dropboxapi.com/oauth2/token',
clientId: this._getKey(), clientId: this._getKey(),

View File

@ -21,10 +21,7 @@ for (let i = 65 /* 'A' */; i <= 90 /* 'Z' */; i++) {
} }
const symbolsPerCharClass = new Uint8Array([ const symbolsPerCharClass = new Uint8Array([
95 /* ASCII symbols */, 95 /* ASCII symbols */, 10 /* digits */, 26 /* lowercase letters */, 26 /* uppercase letters */
10 /* digits */,
26 /* lowercase letters */,
26 /* uppercase letters */
]); ]);
function passwordStrength(password) { function passwordStrength(password) {

View File

@ -1,4 +1,5 @@
const MobileRegex = /iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile|WPDesktop|Windows Phone|webOS/i; const MobileRegex =
/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile|WPDesktop|Windows Phone|webOS/i;
const MinDesktopScreenWidth = 800; const MinDesktopScreenWidth = 800;
const isDesktop = !!(window.process && window.process.versions && window.process.versions.electron); const isDesktop = !!(window.process && window.process.versions && window.process.versions.electron);

View File

@ -8,8 +8,7 @@ const CharRanges = {
digits: '123456789', digits: '123456789',
special: '!@#$%^&*_+-=,./?;:`"~\'\\', special: '!@#$%^&*_+-=,./?;:`"~\'\\',
brackets: '(){}[]<>', brackets: '(){}[]<>',
high: high: '¡¢£¤¥¦§©ª«¬®¯°±²³´µ¶¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþ',
'¡¢£¤¥¦§©ª«¬®¯°±²³´µ¶¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþ',
ambiguous: 'O0oIl' ambiguous: 'O0oIl'
}; };

View File

@ -27,31 +27,7 @@ class GeneratorView extends View {
}; };
valuesMap = [ valuesMap = [
3, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 30, 32, 48,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
22,
24,
26,
28,
30,
32,
48,
64 64
]; ];

View File

@ -6,7 +6,7 @@ const webpack = require('webpack');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin');
// const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); // const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin');
const rootDir = path.join(__dirname, '..'); const rootDir = path.join(__dirname, '..');