Small cleanup

This commit is contained in:
Matt Bierner
2025-11-14 14:39:44 -08:00
parent b8329a3ffc
commit 22663c3fe7
2 changed files with 3 additions and 1 deletions

View File

@@ -38,7 +38,8 @@ export default new class implements eslint.Rule.RuleModule {
const fileDirname = dirname(context.getFilename()); const fileDirname = dirname(context.getFilename());
const parts = fileDirname.split(/\\|\//); const parts = fileDirname.split(/\\|\//);
const ruleArgs = context.options[0] as Record<string, string[]>; let config: Config | undefined; const ruleArgs = context.options[0] as Record<string, string[]>;
let config: Config | undefined;
for (let i = parts.length - 1; i >= 0; i--) { for (let i = parts.length - 1; i >= 0; i--) {
if (ruleArgs[parts[i]]) { if (ruleArgs[parts[i]]) {
config = { config = {

View File

@@ -1,4 +1,5 @@
{ {
"private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"typecheck": "tsgo -p tsconfig.json --noEmit" "typecheck": "tsgo -p tsconfig.json --noEmit"