security: replace vulnerable eclint with editorconfig-checker

- Remove eclint@2.8.1 (has 15 vulnerabilities, possibly abandoned)
- Add editorconfig-checker@6.1.1 (actively maintained, zero vulnerabilities)
- Update npm scripts to use editorconfig-checker commands
- Resolves all 15 security vulnerabilities (8 moderate, 7 high)

editorconfig-checker is a more modern, actively maintained alternative
written in Go with no Node.js dependency vulnerabilities.
This commit is contained in:
2025-12-11 20:08:16 +02:00
parent e974a69676
commit 368adc92e6
2 changed files with 194 additions and 2996 deletions

3182
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,8 +29,8 @@
"lint": "npx mega-linter-runner",
"lint:markdown": "markdownlint . --config .markdownlint.json --ignore node_modules",
"lint:markdown:fix": "markdownlint . --config .markdownlint.json --ignore node_modules --fix",
"lint:editorconfig": "eclint check .",
"lint:editorconfig:fix": "eclint fix .",
"lint:editorconfig": "editorconfig-checker",
"lint:editorconfig:fix": "editorconfig-checker -fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"precommit": "pre-commit run --all-files",
@@ -52,8 +52,8 @@
"tree-sitter-bash": "^0.25.1"
},
"devDependencies": {
"eclint": "^2.8.1",
"markdownlint-cli": "^0.46.0",
"editorconfig-checker": "^6.1.1",
"markdownlint-cli": "^0.47.0",
"nodemon": "^3.0.1",
"prettier": "^3.6.2",
"tree-sitter-cli": "^0.25.10"