.eslintignore -> .gitignore, no-unused-vars: ignore args starting with _
https://eslint.org/docs/latest/rules/no-unused-vars#argsignorepattern https://eslint.org/docs/latest/rules/no-undef
This commit is contained in:
parent
dec0b519a5
commit
2eaf6f0598
3 changed files with 3 additions and 0 deletions
1
.eslintignore
Symbolic link
1
.eslintignore
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
.gitignore
|
||||||
|
|
@ -23,5 +23,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
'rules': {
|
'rules': {
|
||||||
'semi': 'error',
|
'semi': 'error',
|
||||||
|
'no-unused-vars': ["error", { "argsIgnorePattern": "^_" }],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ if (!cfg.debug) context.setDefaultTimeout(cfg.timeout);
|
||||||
|
|
||||||
const page = context.pages().length ? context.pages()[0] : await context.newPage(); // should always exist
|
const page = context.pages().length ? context.pages()[0] : await context.newPage(); // should always exist
|
||||||
// console.debug('userAgent:', await page.evaluate(() => navigator.userAgent));
|
// console.debug('userAgent:', await page.evaluate(() => navigator.userAgent));
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
if (cfg.debug) console.debug(await page.evaluate(() => window.screen));
|
if (cfg.debug) console.debug(await page.evaluate(() => window.screen));
|
||||||
if (cfg.record && cfg.debug) {
|
if (cfg.record && cfg.debug) {
|
||||||
// const filter = _ => true;
|
// const filter = _ => true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue