Skip to content

Commit

Permalink
fix: ignore manufacturerProprietary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Sep 21, 2023
1 parent e55fc81 commit 6cd7316
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/eslint-plugin/src/rules/consistent-cc-classes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
import path from "node:path";
import {
findDecorator,
findDecoratorContainingCCId,
Expand Down Expand Up @@ -26,6 +27,13 @@ export const consistentCCClasses = ESLintUtils.RuleCreator.withoutDocs({
loc: node.id.loc,
messageId: "wrong-filename",
});
} else if (
context.getFilename().split(path.sep).includes(
"manufacturerProprietary",
)
) {
// The rules for manufacturer proprietary CCs are different
return;
}

// ...have an @commandClass decorator
Expand Down

0 comments on commit 6cd7316

Please sign in to comment.