Skip to content

Commit 3e34879

Browse files
authored
test: lint no-undef (#106)
Signed-off-by: koooge <[email protected]>
1 parent 7c11425 commit 3e34879

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

eslint.config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@ module.exports = {
77
"rules": {
88
"func-names": 0,
99
"global-require": 0,
10+
"no-undef": "error",
1011
"prefer-destructuring": 0,
1112
"strict": 0,
1213
// Include rules from airbnb configuration directly here
1314
// Make sure to copy the rules from the airbnb configuration
1415
},
1516
"languageOptions": {
1617
"globals": {
17-
// Define global variables here for your files
18-
"mocha": true
18+
__dirname: true,
19+
console: true,
20+
describe: true,
21+
it: true,
22+
module: true,
23+
require: true,
1924
}
20-
}
25+
},
2126
};

0 commit comments

Comments
 (0)