21 files + 499 − 355 Inline Compare changes Side-by-side Inline Show whitespace changes Files 21 eslint.config.mjs +26 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,16 @@ import jsdocPlugin from 'eslint-plugin-jsdoc'; import headerplugin from 'eslint-plugin-header'; import tseslint from 'typescript-eslint'; import globals from 'globals'; import googleConfig from 'eslint-config-google'; headerplugin.rules.header.meta.schema = false; const safeGoogleRules = Object.fromEntries( Object.entries(googleConfig.rules || {}).filter( ([rule]) => !['valid-jsdoc', 'require-jsdoc'].includes(rule) ) ); export default [ { files: ['**/*.ts'], Loading @@ -29,9 +37,16 @@ export default [ header: headerplugin }, rules: { ...safeGoogleRules, 'new-cap': ['error', { newIsCap: true, capIsNew: false, // Allow capitalized functions like decorators properties: false // Prevent false positives on object properties }], // Max total lines per file 'max-lines': ['error', { max: 1000, max: 300, skipBlankLines: true, skipComments: true }], Loading Loading @@ -70,5 +85,14 @@ export default [ mode: 'typescript' } } }, { files: ['**/.spec.ts', '**/.test.ts', '**/seed.ts'], rules: { 'max-lines': 'off', 'max-lines-per-function': 'off', 'max-len': 'off' } } ]; No newline at end of file
eslint.config.mjs +26 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,16 @@ import jsdocPlugin from 'eslint-plugin-jsdoc'; import headerplugin from 'eslint-plugin-header'; import tseslint from 'typescript-eslint'; import globals from 'globals'; import googleConfig from 'eslint-config-google'; headerplugin.rules.header.meta.schema = false; const safeGoogleRules = Object.fromEntries( Object.entries(googleConfig.rules || {}).filter( ([rule]) => !['valid-jsdoc', 'require-jsdoc'].includes(rule) ) ); export default [ { files: ['**/*.ts'], Loading @@ -29,9 +37,16 @@ export default [ header: headerplugin }, rules: { ...safeGoogleRules, 'new-cap': ['error', { newIsCap: true, capIsNew: false, // Allow capitalized functions like decorators properties: false // Prevent false positives on object properties }], // Max total lines per file 'max-lines': ['error', { max: 1000, max: 300, skipBlankLines: true, skipComments: true }], Loading Loading @@ -70,5 +85,14 @@ export default [ mode: 'typescript' } } }, { files: ['**/.spec.ts', '**/.test.ts', '**/seed.ts'], rules: { 'max-lines': 'off', 'max-lines-per-function': 'off', 'max-len': 'off' } } ]; No newline at end of file