ESLINT(1)
β¨ ESLINT(1) β¨
okay so bestie, welcome to the ESLINT(1) manual page, aka the group chat where your JavaScript gets read for filth (affectionately) π
πΈ NAME πΈ
eslint β JavaScript
literally that's it, that's the whole name. she contains multitudes π
π¦ DESCRIPTION π¦
okay so the vibe is: you run
eslint [options] file.js [file.js] [dir]
and eslint goes through your files and tells you what's up. you can pass one file, a bunch of files, or whole directories β she's flexible like that π«Ά
π Basic configuration π
--no-eslintrcβ turns OFF using config from.eslintrc.*. like, ignore the config files entirely, we're doing this raw β¨-c,--configpath::String β use THIS config instead, and it overrides whatever.eslintrc.*options were there if any exist--env[String] β specify environments--ext[String] β specify JavaScript file extensions β default:.js--global[String] β define global variables--parserString β specify the parser to be used--parser-optionsObject β specify parser options--resolve-plugins-relative-topath::String β a folder where plugins should be resolved from, CWD by default
π Specifying rules and plugins π
--rulesdir[path::String] β use additional rules from this directory--plugin[String] β specify plugins--ruleObject β specify rules
π₯ Fixing problems π₯
--fixβ automatically fix problems. she's not just judging, she's helping π--fix-dry-runβ automatically fix problems WITHOUT saving the changes to the file system. like a rehearsal, no commitment bestie--fix-typeArray β specify the types of fixes to apply (problem,suggestion,layout)
π§ Ignoring files π§
--ignore-pathpath::String β specify path of ignore file--no-ignoreβ disable use of ignore files and patterns--ignore-pattern[String] β pattern of files to ignore (in addition to those in.eslintignore)
π Using stdin π
--stdinβ lint code provided on<STDIN>β default:false--stdin-filenameString β specify filename to process STDIN as
π Handling warnings π
--quietβ report errors only β default:false. sorry to the warnings, they're being silenced π--max-warningsInt β number of warnings to trigger nonzero exit code β default:-1
π Output π
-o,--output-filepath::String β specify file to write report to-f,--formatString β use a specific output format β default:stylish--color,--no-colorβ force enabling/disabling of color
β Inline configuration comments β
--no-inline-configβ prevent comments from changing config or rules--report-unused-disable-directivesβ adds reported errors for unusedeslint-disabledirectives
π Caching π
--cacheβ only check changed files β default:false--cache-filepath::String β path to the cache file. Deprecated: use--cache-locationβ default:.eslintcache--cache-locationpath::String β path to the cache file or directory
π Miscellaneous π
--initβ run config initialization wizard β default:false--debugβ output debugging information-h,--helpβ show help-v,--versionβ output the version number--print-configpath::String β print the configuration for the given file
ngl bestie, that--cache-fileone is deprecated, so maybe slide over to--cache-locationinstead π
that's the whole page, no cap π tysm for reading, go lint something and slay β¨ this was eslint v6.4.0, dated June 2024 β mwah, periodt ππ¦
π¦ where this page comes from
- debian trixie: eslint 6.4.0~dfsg+~6.1.9-12 Β· MIT
- ubuntu resolute: eslint 6.4.0~dfsg+~6.1.9-12 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms