chore: enforce lint across codebase and ban "maybe" in identifiers
Remove member-ordering and complexity eslint-disable comments by reordering class members and applying targeted fixes. Add metoyou/no-maybe-in-naming, type-safe WebRTC e2e harness helpers, and resolve remaining lint errors so npm run lint exits cleanly. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -43,6 +43,7 @@ module.exports = tseslint.config(
|
||||
}
|
||||
],
|
||||
'metoyou/no-unicode-symbols': 'error',
|
||||
'metoyou/no-maybe-in-naming': 'error',
|
||||
'@typescript-eslint/no-extraneous-class': 'off',
|
||||
'@angular-eslint/component-class-suffix': [ 'error', { suffixes: ['Component','Page','Stub'] } ],
|
||||
'@angular-eslint/directive-class-suffix': 'error',
|
||||
@@ -177,6 +178,7 @@ module.exports = tseslint.config(
|
||||
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
|
||||
rules: {
|
||||
'metoyou/no-unicode-symbols': 'error',
|
||||
'metoyou/no-maybe-in-naming': 'error',
|
||||
// Angular template best practices
|
||||
'@angular-eslint/template/button-has-type': 'warn',
|
||||
'@angular-eslint/template/cyclomatic-complexity': ['warn', { maxComplexity: 10 }],
|
||||
|
||||
Reference in New Issue
Block a user