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.
20 lines
640 B
JavaScript
20 lines
640 B
JavaScript
import { configApp } from '@adonisjs/eslint-config'
|
|
|
|
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',
|
|
},
|
|
},
|
|
]
|