Skip to content

eslint_file

MCP tools › Code insight and refactoring

Check a JavaScript/TypeScript file with the project's own ESLint (node_modules/.bin/eslint with an eslint.config.*/.eslintrc*/eslintConfig in or above its package, inside the workspace; nothing is downloaded): findings with 1-based line, severity, rule, message and whether --fix can fix them. With fix, also the fixed text; dry_run=false writes it, refusing if the file changed meanwhile.

Its results carry text from files, process: the client is told to treat that as data, never as instructions.

Capabilitycode.eslint_file
AreaCode insight and refactoring
Accesschanges files
Reachesprocess
Rightswrite, trusted-project
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative JavaScript or TypeScript file.
fixbooleanAlso compute what --fix changes (default false).
dry_runbooleanWith fix: only return the fixed text (default true); false writes it.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project eslint_file '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "Workspace-relative JavaScript or TypeScript file.",
"type": "string"
},
"fix": {
"description": "Also compute what `--fix` changes (default false).",
"type": [
"boolean",
"null"
]
},
"dry_run": {
"description": "With `fix`: only return the fixed text (default true); false writes it.",
"type": [
"boolean",
"null"
]
}
}
}