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.
This commit is contained in:
Kevin L'Hereec committed 2026-07-22 11:45:35 +02:00
1 parent f9e56c78b1
commit 576b068cf4
1 file changed
+18 -1
+18 -1
View File
@@ -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',
},
},
]