From ac30ac1e2b45f1bc756ef0f82cad583c7d96a7a1 Mon Sep 17 00:00:00 2001 From: vigdorov Date: Tue, 17 Mar 2026 00:02:49 +0300 Subject: [PATCH] fix: move capitalized-comments from @stylistic to core rules capitalized-comments is not a @stylistic rule, it's a core ESLint rule. Bump @vigdorov/eslint-config to 1.0.1. Co-Authored-By: Claude Opus 4.6 --- packages/eslint/package.json | 6 ++++-- packages/eslint/src/rules.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/eslint/package.json b/packages/eslint/package.json index d731eed..773a381 100644 --- a/packages/eslint/package.json +++ b/packages/eslint/package.json @@ -1,11 +1,13 @@ { "name": "@vigdorov/eslint-config", - "version": "1.0.0", + "version": "1.0.1", "description": "Shared ESLint configuration with flat config", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", - "files": ["dist"], + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js", "./base": "./dist/base.js", diff --git a/packages/eslint/src/rules.ts b/packages/eslint/src/rules.ts index b8d14ee..25ef251 100644 --- a/packages/eslint/src/rules.ts +++ b/packages/eslint/src/rules.ts @@ -30,6 +30,7 @@ export const qualityRules: Rules = { 'array-callback-return': ['warn', {allowImplicit: true, checkForEach: true}], 'default-param-last': 'warn', 'yoda': 'warn', + 'capitalized-comments': 'warn', }; export const typescriptRules: Rules = { @@ -60,7 +61,6 @@ export const stylisticRules: Rules = { '@stylistic/lines-between-class-members': ['warn', 'always'], '@stylistic/line-comment-position': ['warn', {position: 'above'}], '@stylistic/multiline-comment-style': ['warn', 'starred-block'], - '@stylistic/capitalized-comments': 'warn', '@stylistic/max-len': [ 'warn', {