{
    "mode": "man",
    "parameter": "ESLINT",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ESLINT/1/json",
    "generated": "2026-10-21T15:06:01Z",
    "sections": {
        "NAME": {
            "content": "eslint - JavaScript\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "eslint [options] file.js [file.js] [dir]\n",
            "subsections": [
                {
                    "name": "Basic configuration:",
                    "content": ""
                },
                {
                    "name": "--no-eslintrc",
                    "content": "Disable use of configuration from .eslintrc.*\n",
                    "long": "--no-eslintrc"
                },
                {
                    "name": "-c --config",
                    "content": "Use this configuration, overriding .eslintrc.* config options if present\n\n--env [String]\nSpecify environments\n\n--ext [String]\nSpecify JavaScript file extensions - default: .js\n\n--global [String]\nDefine global variables\n\n--parser String\nSpecify the parser to be used\n\n--parser-options Object\nSpecify parser options\n\n--resolve-plugins-relative-to path::String\nA folder where plugins should be resolved from, CWD by default\n",
                    "flag": "-c",
                    "long": "--config"
                },
                {
                    "name": "Specifying rules and plugins:",
                    "content": "--rulesdir [path::String]\nUse additional rules from this directory\n\n--plugin [String]\nSpecify plugins\n\n--rule Object\nSpecify rules\n"
                },
                {
                    "name": "Fixing problems:",
                    "content": "--fix  Automatically fix problems\n"
                },
                {
                    "name": "--fix-dry-run",
                    "content": "Automatically fix problems without saving the changes to the file system\n\n--fix-type Array\nSpecify the types of fixes to apply (problem, suggestion, layout)\n",
                    "long": "--fix-dry-run"
                },
                {
                    "name": "Ignoring files:",
                    "content": "--ignore-path path::String\nSpecify path of ignore file\n"
                },
                {
                    "name": "--no-ignore",
                    "content": "Disable use of ignore files and patterns\n\n--ignore-pattern [String]\nPattern of files to ignore (in addition to those in .eslintignore)\n",
                    "long": "--no-ignore"
                },
                {
                    "name": "Using stdin:",
                    "content": ""
                },
                {
                    "name": "--stdin",
                    "content": "Lint code provided on <STDIN> - default: false\n\n--stdin-filename String\nSpecify filename to process STDIN as\n",
                    "long": "--stdin"
                },
                {
                    "name": "Handling warnings:",
                    "content": ""
                },
                {
                    "name": "--quiet",
                    "content": "Report errors only - default: false\n\n--max-warnings Int\nNumber of warnings to trigger nonzero exit code - default: -1\n",
                    "long": "--quiet"
                },
                {
                    "name": "Output:",
                    "content": ""
                },
                {
                    "name": "-o --output-file",
                    "content": "Specify file to write report to\n",
                    "flag": "-o",
                    "long": "--output-file"
                },
                {
                    "name": "-f --format",
                    "content": "Use a specific output format - default: stylish\n\n--color, --no-color\nForce enabling/disabling of color\n",
                    "flag": "-f",
                    "long": "--format"
                },
                {
                    "name": "Inline configuration comments:",
                    "content": ""
                },
                {
                    "name": "--no-inline-config",
                    "content": "Prevent comments from changing config or rules\n",
                    "long": "--no-inline-config"
                },
                {
                    "name": "--report-unused-disable-directives",
                    "content": "Adds reported errors for unused eslint-disable directives\n",
                    "long": "--report-unused-disable-directives"
                },
                {
                    "name": "Caching:",
                    "content": ""
                },
                {
                    "name": "--cache",
                    "content": "Only check changed files - default: false\n\n--cache-file path::String\nPath to the cache file. Deprecated: use --cache-location - default: .eslintcache\n\n--cache-location path::String\nPath to the cache file or directory\n",
                    "long": "--cache"
                },
                {
                    "name": "Miscellaneous:",
                    "content": "--init Run config initialization wizard - default: false\n"
                },
                {
                    "name": "--debug",
                    "content": "Output debugging information\n",
                    "long": "--debug"
                },
                {
                    "name": "-h --help",
                    "content": "Show help\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-v --version",
                    "content": "Output the version number\n\n--print-config path::String\nPrint the configuration for the given file\n\neslint v6.4.0                               December 2023                                  ESLINT(1)",
                    "flag": "-v",
                    "long": "--version"
                }
            ]
        }
    },
    "summary": "eslint - JavaScript",
    "flags": [
        {
            "flag": "",
            "long": "--no-eslintrc",
            "arg": null,
            "description": "Disable use of configuration from .eslintrc.*"
        },
        {
            "flag": "-c",
            "long": "--config",
            "arg": null,
            "description": "Use this configuration, overriding .eslintrc.* config options if present --env [String] Specify environments --ext [String] Specify JavaScript file extensions - default: .js --global [String] Define global variables --parser String Specify the parser to be used --parser-options Object Specify parser options --resolve-plugins-relative-to path::String A folder where plugins should be resolved from, CWD by default"
        },
        {
            "flag": "",
            "long": "--fix-dry-run",
            "arg": null,
            "description": "Automatically fix problems without saving the changes to the file system --fix-type Array Specify the types of fixes to apply (problem, suggestion, layout)"
        },
        {
            "flag": "",
            "long": "--no-ignore",
            "arg": null,
            "description": "Disable use of ignore files and patterns --ignore-pattern [String] Pattern of files to ignore (in addition to those in .eslintignore)"
        },
        {
            "flag": "",
            "long": "--stdin",
            "arg": null,
            "description": "Lint code provided on <STDIN> - default: false --stdin-filename String Specify filename to process STDIN as"
        },
        {
            "flag": "",
            "long": "--quiet",
            "arg": null,
            "description": "Report errors only - default: false --max-warnings Int Number of warnings to trigger nonzero exit code - default: -1"
        },
        {
            "flag": "-o",
            "long": "--output-file",
            "arg": null,
            "description": "Specify file to write report to"
        },
        {
            "flag": "-f",
            "long": "--format",
            "arg": null,
            "description": "Use a specific output format - default: stylish --color, --no-color Force enabling/disabling of color"
        },
        {
            "flag": "",
            "long": "--no-inline-config",
            "arg": null,
            "description": "Prevent comments from changing config or rules"
        },
        {
            "flag": "",
            "long": "--report-unused-disable-directives",
            "arg": null,
            "description": "Adds reported errors for unused eslint-disable directives"
        },
        {
            "flag": "",
            "long": "--cache",
            "arg": null,
            "description": "Only check changed files - default: false --cache-file path::String Path to the cache file. Deprecated: use --cache-location - default: .eslintcache --cache-location path::String Path to the cache file or directory"
        },
        {
            "flag": "",
            "long": "--debug",
            "arg": null,
            "description": "Output debugging information"
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show help"
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Output the version number --print-config path::String Print the configuration for the given file eslint v6.4.0 December 2023 ESLINT(1)"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "A pluggable linting utility for JavaScript and JSX.",
        "examples": [
            {
                "description": "Create the ESLint configuration file",
                "command": "eslint --init"
            },
            {
                "description": "Lint one or more files",
                "command": "eslint {{path/to/file1.js path/to/file2.js ...}}"
            },
            {
                "description": "Fix lint issues",
                "command": "eslint --fix"
            },
            {
                "description": "Lint using the specified configuration file",
                "command": "eslint {{-c|--config}} {{path/to/config_file}} {{path/to/file1.js path/to/file2.js ...}}"
            }
        ]
    }
}