diff --git a/eslint.config.ts b/eslint.config.ts index a9ffc372efb..2c80c005dd2 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -18,6 +18,7 @@ const config: ReturnType = tseslint.config( //#region global includeIgnoreFile(gitignorePath), { + name: 'manual ignores', ignores: [ // Skip some files that don't need linting right now '.github/workflows/commentCodeGeneration.ts', @@ -29,6 +30,7 @@ const config: ReturnType = tseslint.config( ], }, { + name: 'linter options', linterOptions: { reportUnusedDisableDirectives: 'error', }, @@ -38,6 +40,7 @@ const config: ReturnType = tseslint.config( //#region eslint (js) eslint.configs.recommended, { + name: 'eslint overrides', rules: { eqeqeq: ['error', 'always', { null: 'ignore' }], 'logical-assignment-operators': 'error', @@ -52,9 +55,7 @@ const config: ReturnType = tseslint.config( //#region typescript-eslint ...tseslint.configs.strictTypeChecked, { - plugins: { - '@typescript-eslint': tseslint.plugin, - }, + name: 'typescript-eslint overrides', languageOptions: { parserOptions: { project: true, @@ -129,6 +130,7 @@ const config: ReturnType = tseslint.config( //#region stylistic { + name: 'stylistic overrides', plugins: { '@stylistic': stylistic, }, @@ -144,6 +146,7 @@ const config: ReturnType = tseslint.config( //#region unicorn eslintPluginUnicorn.configs['flat/recommended'], { + name: 'unicorn overrides', rules: { 'unicorn/import-style': 'off', // subjective & doesn't do anything for us 'unicorn/no-array-callback-reference': 'off', // reduces readability @@ -169,6 +172,7 @@ const config: ReturnType = tseslint.config( //#region jsdoc eslintPluginJsdoc.configs['flat/recommended-typescript-error'], { + name: 'jsdoc overrides', rules: { 'jsdoc/require-jsdoc': 'off', // Enabled only for src/**/*.ts 'jsdoc/require-returns': 'off', @@ -209,6 +213,7 @@ const config: ReturnType = tseslint.config( //#region overrides { + name: 'src/**/*.ts overrides', files: ['src/**/*.ts'], rules: { 'no-undef': 'error', // Must override the config from typescript-eslint @@ -220,12 +225,14 @@ const config: ReturnType = tseslint.config( }, }, { + name: 'src/locale/**/*.ts overrides', files: ['src/locale/**/*.ts'], rules: { 'unicorn/filename-case': 'off', // our locale files have a custom naming scheme }, }, { + name: 'src/{definitions,locales}/**/*.ts overrides', files: ['src/definitions/**/*.ts', 'src/locales/**/*.ts'], rules: { 'unicorn/filename-case': [ @@ -238,6 +245,7 @@ const config: ReturnType = tseslint.config( }, }, { + name: 'test/**/*.ts overrides', files: ['test/**/*.spec.ts', 'test/**/*.spec.d.ts'], plugins: { vitest: eslintPluginVitest,