Skip to content

Commit a136e08

Browse files
Remove usages of Node.js typings
Exclude Webpack config from linting.
1 parent 463b1e9 commit a136e08

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/coverage/
22
/demo/lib/
3+
/demo/webpack.config.js
34
/lib/

demo/src/demo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function generatePattern(words: string): RegExp {
4141
return pattern;
4242
}
4343

44-
let clearSuccessIndicatorHandle: NodeJS.Timeout;
44+
let clearSuccessIndicatorHandle: number;
4545
function displayPattern(pattern: RegExp): void {
4646
$output.value = pattern.toString();
4747
$output.dispatchEvent(new Event('input'));
@@ -50,7 +50,7 @@ function displayPattern(pattern: RegExp): void {
5050
$output.classList.add('is-valid');
5151

5252
clearTimeout(clearSuccessIndicatorHandle);
53-
clearSuccessIndicatorHandle = setTimeout(
53+
clearSuccessIndicatorHandle = window.setTimeout(
5454
() => $output.classList.remove('is-valid'),
5555
1000
5656
);

demo/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
]
1111
},
1212
"extends": "../tsconfig.json",
13-
"include": ["../src", "./src", "./webpack.config.js"]
13+
"include": ["../src", "./src"]
1414
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@types/escape-string-regexp": "^1.0.0",
4444
"@types/jest": "^24.0.18",
4545
"@types/jest-when": "^2.7.0",
46-
"@types/node": "^12.7.5",
4746
"@typescript-eslint/eslint-plugin": "^2.2.0",
4847
"@typescript-eslint/parser": "^2.2.0",
4948
"codecov": "^3.6.1",

0 commit comments

Comments
 (0)