mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-05 08:27:42 +00:00
e876a91a2e
Config changes (eslint.config.mjs): - no-unused-vars: caughtErrors=none (catch clause vars are intentionally ignored throughout) - varsIgnorePattern/argsIgnorePattern: ^_ (allow _-prefixed intentional ignores) - ban-ts-comment, no-namespace, no-empty: downgraded to warn (pre-existing patterns) - no-control-regex: off (terminal output processing intentionally uses control chars) Dead code removed: - index.ts: remove unused spawn/exec/promisify imports and dead execAsync variable - FileSystemService.ts: remove duplicate fs default import (fsPromises already imported) - LogFormatter.ts: remove unused parsed variable (JSON.parse used only for validation) Auto-fixed via eslint --fix: - prefer-const: ComposeService, DockerController, MonitorService, index.ts
28 lines
959 B
JavaScript
28 lines
959 B
JavaScript
import js from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ['dist'] },
|
|
{
|
|
files: ['src/**/*.ts'],
|
|
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
|
languageOptions: { ecmaVersion: 2022 },
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
// Allow unused catch-clause vars (catch (error) { ... }) and _-prefixed intentional ignores
|
|
'@typescript-eslint/no-unused-vars': ['error', {
|
|
caughtErrors: 'none',
|
|
varsIgnorePattern: '^_',
|
|
argsIgnorePattern: '^_',
|
|
}],
|
|
// Pre-existing patterns — warn rather than error until addressed
|
|
'@typescript-eslint/ban-ts-comment': 'warn',
|
|
'@typescript-eslint/no-namespace': 'warn',
|
|
'no-empty': 'warn',
|
|
// Terminal output processing intentionally uses control characters in regexes
|
|
'no-control-regex': 'off',
|
|
'no-console': 'off',
|
|
},
|
|
},
|
|
)
|