Skip to content

Commit cefa51b

Browse files
committed
fix: Correct eslint config
1 parent e622c60 commit cefa51b

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.eslintrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
'use strict';
2+
13
module.exports = {
24
root: true,
35
parser: '@typescript-eslint/parser',
46
plugins: ['@typescript-eslint'],
57
parserOptions: {
68
project: true,
79
tsconfigRootDir: __dirname,
10+
project: ['./tsconfig.eslint.json'],
811
},
912
extends: [
1013
'plugin:@typescript-eslint/recommended-type-checked',

test/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ async function main() {
2525
}
2626
}
2727

28-
main();
28+
void main();

tsconfig.eslint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"types": ["@types/node"],
4+
"noEmit": true,
5+
"allowJs": true
6+
},
7+
"extends": "./tsconfig.json",
8+
"include": ["src/**/*.ts", "test/**/*.ts", ".eslintrc.cjs"]
9+
}

0 commit comments

Comments
 (0)