Loading...
Loading...
Detects ESLint configuration and available commands in a repository. Returns structured JSON output designed for consumption by the quality-gates-linter agent. Checks for ESLint config files, extracts lint commands from package.json, Makefile, and CLAUDE.md, and provides command sources for the agent to read directly.
npx skill4agent add alex-popov-tech/.dotfiles eslint-detector.eslintrc.js.eslintrc.json.eslintrc.yml.eslintrc.yamleslint.config.jspackage.jsoneslintConfigeslintDetected: falseeslintDetected: trueCLAUDE.mdeslintlintmake lintnpm run linteslint --fixlint-fixmake lint-fixnpm run lint:fixpackage.jsonscripts"lint""eslint""lint:check"npm run <script-name>"lint:fix""lint-fix""fix""eslint:fix"npm run <script-name>Makefileeslintlintlinteslintchecklint-fixfixformatmake <target-name>npx eslint .npx eslint --fix ."fallback"{
"eslintDetected": true,
"configFiles": [
{
"path": ".eslintrc.json",
"type": "eslintrc"
},
{
"path": "package.json",
"type": "package-config"
}
],
"commands": {
"check": {
"command": "npm run lint",
"source": "package.json"
},
"fix": {
"command": "npm run lint:fix",
"source": "package.json"
}
},
"commandSources": [
"package.json"
]
}eslintDetectedtruefalseconfigFilespathtype"eslintrc""eslint-config-js""package-config"commandscheckcommandsourcefixcommandsourcecommandSources## ESLint Detection Results
```json
{
"eslintDetected": true,
"configFiles": [...],
"commands": {...},
"commandSources": [...]
}
```
**Summary:**
- ESLint detected: Yes/No
- Config files: <count>
- Commands source: <primary source>configFilescommandSources{
"eslintDetected": false,
"configFiles": [],
"commands": {},
"commandSources": []
}{
"eslintDetected": true,
"configFiles": [{...}],
"commands": {
"check": {
"command": "npx eslint .",
"source": "fallback"
},
"fix": {
"command": "npx eslint --fix .",
"source": "fallback"
}
},
"commandSources": ["fallback"]
}eslintDetectedcommands.check.commandcommands.fix.commandcommandSources