diff --git a/.eslint-plugin-local/code-layering.ts b/.eslint-plugin-local/code-layering.ts index 10872ae4b4e..ac77eb97cf0 100644 --- a/.eslint-plugin-local/code-layering.ts +++ b/.eslint-plugin-local/code-layering.ts @@ -38,7 +38,8 @@ export default new class implements eslint.Rule.RuleModule { const fileDirname = dirname(context.getFilename()); const parts = fileDirname.split(/\\|\//); - const ruleArgs = context.options[0] as Record; let config: Config | undefined; + const ruleArgs = context.options[0] as Record; + let config: Config | undefined; for (let i = parts.length - 1; i >= 0; i--) { if (ruleArgs[parts[i]]) { config = { diff --git a/.eslint-plugin-local/package.json b/.eslint-plugin-local/package.json index 7c3579a1f79..90e7facf0a0 100644 --- a/.eslint-plugin-local/package.json +++ b/.eslint-plugin-local/package.json @@ -1,4 +1,5 @@ { + "private": true, "type": "module", "scripts": { "typecheck": "tsgo -p tsconfig.json --noEmit"