Skip to content

реализация vibecode-linter #1

Description

@skulidropek

Мне надо сделать вот такой конфиг

{
        commans: [
        { commandName: "eslint",
          command: "npx eslint "src/" --ext .ts,.tsx --fix", 
          isCommandFix: true,
         level: 0 } 
        ]
	"priorityLevels": [
		{
			"level": 1,
			"name": "Critical Compiler Errors",
			"rules": [
				"ts(2835)",
				"ts(2307)",
				"@ton-ai-core/suggest-members/suggest-members",
				"@ton-ai-core/suggest-members/suggest-imports",
				"@ton-ai-core/suggest-members/suggest-module-paths",
				"@ton-ai-core/suggest-members/suggest-exports",
				"@typescript-eslint/no-explicit-any"
			]
		},
		{
			"level": 2,
			"name": "Critical Compiler Errors",
			"rules": ["all"]
		},
		{
			"level": 3,
			"name": "Critical Compiler Errors (Code must follow Clean Code and best practices)",
			"rules": ["max-lines-per-function", "max-lines"]
		},
		{
			"level": 4,
			"name": "Critical Compiler Errors (Code must follow Clean Code and best practices)",
			"rules": ["complexity", "max-params", "max-depth"]
		}
	]
}

Генерировать он должен вот такое сообщение:

 Linting directory: src/
🔧 Running ESLint auto-fix on: src/
   ↳ Command: npx eslint "src/" --ext .ts,.tsx --fix
🔧 Running Biome auto-fix on: src/
   ↳ Command: npx biome check --write "src/"
✅ ESLint auto-fix completed
✅ Biome auto-fix completed (3 passes)
🧪 Running ESLint diagnostics on: src/
   ↳ Command: npx eslint "src/" --ext .ts,.tsx --format json
🧪 Running Biome diagnostics on: src/
   ↳ Command: npx biome check "src/" --reporter=json
🧪 Running TypeScript diagnostics on: src/
   ↳ Equivalent command: npx tsc --project tsconfig.json --noEmit --pretty false
🔄 Biome: Falling back to individual file checking...

📊 Total: 0 errors (0 TypeScript, 0 ESLint, 0 Biome), 0 warnings.

Т.е пока мы делаем просто тулу которая удобно вызывает команды, которые мы просим

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions