Skip to content

Commit

Permalink
lint: simplify/generalize generateImages exceptions via overrides in …
Browse files Browse the repository at this point in the history
…eslintrc
  • Loading branch information
sschmid committed Jan 20, 2021
1 parent dc0c8ba commit ef3a904
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ module.exports = {
]
}
],
"overrides": [
{
"files": ["test/Util/*.js"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/typedef": "off",
}
}
],
// using this requires two extra modules: tslint and @typescript-eslint/tslint.
// "@typescript-eslint/tslint/config": [
// "error",
Expand Down
3 changes: 0 additions & 3 deletions test/Util/generateImages_browserless.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
see the semi-obsolete generateDiffImagesPuppeteerLocalhost.js
*/

/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable @typescript-eslint/typedef */

function sleep (ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
Expand Down

0 comments on commit ef3a904

Please sign in to comment.