mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Chore: Housekeeping & Make ESLint Happy
This commit is contained in:
@@ -20,11 +20,8 @@ import { SOURCE_DIR } from './constants/dir';
|
||||
if (isDirectory) return true;
|
||||
|
||||
const extname = path.extname(filepath);
|
||||
if (extname === '.js' || extname === '.ts') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return !(extname === '.js' || extname === '.ts');
|
||||
})
|
||||
.crawl(SOURCE_DIR)
|
||||
.withPromise();
|
||||
|
||||
Reference in New Issue
Block a user