Skip to content

Commit

Permalink
style: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
uiolee committed Jan 23, 2024
1 parent d4dbd15 commit c4bbfbe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
coverage/
tmp/
tmp/
dist/
5 changes: 3 additions & 2 deletions test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "hexo/test"
}
"extends": "hexo/test",
"rules": { "@typescript-eslint/no-var-requires": 0 }
}
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ should();

const { join, dirname } = require('path');
const Promise = require('bluebird');
const fs = require('../lib/fs');
const fs = require('../lib/fs.ts');

function createDummyFolder(path) {
const filesMap = {
Expand All @@ -31,7 +31,7 @@ function createDummyFolder(path) {
function createAnotherDummyFolder(path) {
const filesMap = {
[join('folder', '.txt')]: 'txt',
[join('folder', '.js')]: 'js',
[join('folder', '.js')]: 'js'
};
return Promise.map(Object.keys(filesMap), key => fs.writeFile(join(path, key), filesMap[key]));
}
Expand Down Expand Up @@ -604,7 +604,7 @@ describe('fs', () => {

const checkExistsMap = {
[join('folder', '.txt')]: true,
[join('folder', '.js')]: true,
[join('folder', '.js')]: true
};

await createAnotherDummyFolder(target);
Expand Down

0 comments on commit c4bbfbe

Please sign in to comment.