From 576b068cf4ddc4988716e37a3c2a3123b86e9a88 Mon Sep 17 00:00:00 2001 From: Kevin L'Hereec Date: Wed, 22 Jul 2026 11:45:35 +0200 Subject: [PATCH] chore: relax naming-convention/filename-case lint rules for legacy CWMP protocol files app/protocol/cwmp-1-*.ts and app/utils/cwmp-events.ts mirror TR-069 spec version numbers in their type/class names (e.g. Cwmp_1_0, EventCode_1_1), which trips @unicorn/filename-case and @typescript-eslint/naming-convention. Renaming these would be a large, risky refactor across the protocol layer for no functional benefit, so the two rules are disabled for this specific file set via an eslint.config.js override. This unblocks 'eslint app/' from reporting pre-existing, unfixable errors, allowing a pre-push git hook (lint app/ + tsc --noEmit) to be enabled without a large unrelated renaming effort. --- eslint.config.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 9be1be3..9a3dbe5 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,2 +1,19 @@ import { configApp } from '@adonisjs/eslint-config' -export default configApp() + +export default [ + ...configApp(), + { + // Legacy CWMP protocol version files (cwmp-1-0.ts ... cwmp-1-4.ts, cwmp-events.ts): + // filenames and type names mirror the TR-069 spec version numbers (e.g. Cwmp_1_0, + // EventCode_1_1). Renaming would be a large, risky refactor across the protocol + // layer for no functional benefit, so these naming rules are relaxed here. + files: [ + 'app/protocol/cwmp-1-*.ts', + 'app/utils/cwmp-events.ts', + ], + rules: { + '@unicorn/filename-case': 'off', + '@typescript-eslint/naming-convention': 'off', + }, + }, +]