From 20f91343c73eedb4dddee45f831a017924789fee Mon Sep 17 00:00:00 2001 From: Susisu Date: Wed, 21 Feb 2024 01:32:31 +0900 Subject: [PATCH] chore: enable naming-convention rule --- eslint.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 844959e..f282c79 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,7 +5,15 @@ export default config({}, [ { files: ["src/**/*.ts"], rules: { - "@typescript-eslint/naming-convention": "off", + "@typescript-eslint/naming-convention": [ + // a better exention mechanism is needed + ...config.tsTypeChecked().rules["@typescript-eslint/naming-convention"], + { + selector: ["typeProperty"], + filter: { match: true, regex: "^__rec$" }, + format: null, + }, + ], "@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "^_" }], }, },