Add @coderrob/eslint-plugin-zero-tolerance to ESLint config and fix violations#16
Add @coderrob/eslint-plugin-zero-tolerance to ESLint config and fix violations#16
Conversation
Co-authored-by: Coderrob <7213776+Coderrob@users.noreply.github.com>
…al fixes Co-authored-by: Coderrob <7213776+Coderrob@users.noreply.github.com>
|
@copilot ensure that the type check errors are corrected |
…ing.raw template Co-authored-by: Coderrob <7213776+Coderrob@users.noreply.github.com>
Fixed in dfdcf5d. There were 3 type errors introduced by this PR:
The remaining 52 type errors are pre-existing environment issues (e.g. |
|
@copilot continue till all lint errors are fixed. |
…iles Co-authored-by: Coderrob <7213776+Coderrob@users.noreply.github.com>
Significant progress made in ad0741f — reduced from 319 problems (7 errors, 312 warnings) down to 11 warnings, 0 errors: All 7 errors fixed:
~295 warnings resolved:
11 warnings remaining in |
Installs
@coderrob/eslint-plugin-zero-toleranceand integrates itsrecommendedruleset into the flat ESLint config. Fixes all introduced type check errors and resolves the majority of lint violations discovered.ESLint config changes
zeroToleranceimport and registered it as thezero-toleranceplugin in the TypeScript files config blockzeroTolerance.configs.recommended.rulesat the end of the TypeScript rules sectionmax-function-lines,no-magic-numbers,no-magic-strings,no-type-assertion,require-jsdoc-functions)src/utils/assert.tsto theinstanceof Errorexception list alongsideguards.tsType check fixes
barrel-content.builder.ts— replaced invalidString.rawusage with regex/\\/gtestTypes.tsandbarrel-file.generator.test.tsto use renamedILoggerConstructor/ILoggerInstanceLint violation fixes (319 → 11 warnings, 0 errors)
complexityincontent-sanitizer.ts,instanceof Errorrestriction inassert.ts, allsimple-import-sortandprettiererrorsmockResolvedValue/mockRejectedValuewithmockResolvedValueOnce/mockRejectedValueOnceno-throw-literal,no-non-null-assertion,no-identical-expressions,no-empty-catch, andno-await-in-loopacross test filesbarrel-content.builder.ts,file-system.service.ts,export.parser.ts,semaphore.ts, andstring.ts— extracted helpers, added named constants, added JSDoc, refactored boolean flags to parameter objects, and replacedawait-in-loops withPromise.allRemaining work
barrel-file.generator.tsandextension.ts(no-flag-argument,max-function-lines,no-await-in-loop,require-jsdoc-functions)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.