命令行接口

ESLint 需要 Node.js 来安装。按照 入门指南 中的说明安装 ESLint。

大多数用户使用 npx 在命令行上运行 ESLint,如下所示:

npx eslint [options] [file|dir|glob]*

如:

# Run on two files
npx eslint file1.js file2.js

# Run on multiple files
npx eslint lib/**

请注意,当传递一个 glob 作为参数时,它会被你的 shell 扩展。扩展的结果可能因您的 shell 及其配置而异。如果要使用 node glob 语法,则必须引用参数(如果需要在 Windows 中运行,请使用双引号),如下所示:

npx eslint "lib/**"

注意:您还可以使用替代包管理器(例如 Yarnpnpm)来运行 ESLint。请参阅您的包管理器的文档以了解正确的语法。

选项

4VhOLfumdkeBnfHQ6w0PvHk8fIAYKHAU3M61OAydVZCKSmxJq+vLHr6epZym9RhCmvntjnQFGwZued5uxMhKyA9v5DkMLlEQra5GmxbdOTr8FXGvFlU9jhLkdThaIafaga0Dg1bSvAUyc/Z0JRqrRg==

eslint [options] file.js [file.js] [dir]

Basic configuration:
  --no-eslintrc                   Disable use of configuration from .eslintrc.*
  -c, --config path::String       Use this configuration, overriding .eslintrc.* config options if present
  --env [String]                  Specify environments
  --ext [String]                  Specify JavaScript file extensions
  --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

Specifying rules and plugins:
  --plugin [String]               Specify plugins
  --rule Object                   Specify rules
  --rulesdir [path::String]       Load additional rules from this directory. Deprecated: Use rules from plugins

Fixing problems:
  --fix                           Automatically fix problems
  --fix-dry-run                   Automatically fix problems without saving the changes to the file system
  --fix-type Array                Specify the types of fixes to apply (directive, problem, suggestion, layout)

Ignoring files:
  --ignore-path path::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-filename String         Specify filename to process STDIN as

Handling warnings:
  --quiet                         Report errors only - default: false
  --max-warnings Int              Number of warnings to trigger nonzero exit code - default: -1

Output:
  -o, --output-file path::String  Specify file to write report to
  -f, --format String             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 unused eslint-disable directives

Caching:
  --cache                         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
  --cache-strategy String         Strategy to use for detecting changed files in the cache - either: metadata or content - default: metadata

Miscellaneous:
  --init                          Run config initialization wizard - default: false
  --env-info                      Output execution environment information - default: false
  --no-error-on-unmatched-pattern  Prevent errors when pattern is unmatched
  --exit-on-fatal-error           Exit with exit code 2 in case of fatal error - default: false
  --debug                         Output debugging information
  -h, --help                      Show help
  -v, --version                   Output the version number
  --print-config path::String     Print the configuration for the given file

o7ywW38KrolgH7Bjw3XtKIK9er76VUvzDUa4e/UzZByIRiokLJadIud4hqmK3tQRJdfr+x2ouRNiaYR3WPi1+oZ1esKOmkBpYbuykE0468aHia7hDa5x8jM54Db1wy1QhqFpu6u5nSdrapAYqOBbZfpDpD+OQnaUklBfBiFijnu8Uz9qcHUDZidaf95EZruxa1SiL6dpE1XAzItPpCnXEg==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --ext .jsx --ext .js lib/

npx eslint --ext .jsx,.js lib/

基本配置

--no-eslintrc

ydfSUuOoj9A6Icsp6XCc/7DghCqtVXAh4PaUpwFx7mH8olDtZV79Yzle3cC1FwMfyEzkmgvkhdjsCaxEvYU+zk70Xs03wdqNRD6c6ar1EUTtXcYEYfCfrLaLiXEIo9aZ

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --no-eslintrc file.js

-c、--config

2/EEJ7MxhCB3/s6iqVbqvOT56qKAAgoqh9pkj6TVNK1xPxD+FPPpgR5MebuPVvOGZXGAqzInJSa4RGJH0x2G93UphMiObMyYwW61KVV6bff9u1I0U94iFTQ8TnirTz+f0dqITYbCK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x eslint --env browser,node file.js
npx eslint --env browser --env node file.js

--ext

t51vrgt8CTBsfA+oLRq1KJ9p5+EVqsy3ufwE3OTnFodsKXui5OMXzPOpXw3pvhzpykbtTCh2HINBs6bK5L0krGquOFQmSvXxGISB7dUMm8tV8OYwPGoc7QLL5J3cbKGznSk+F9B11hc3X0SrbTzk4dTWRc02rge85HORvUs56ZA3i4NrT2SxEE8hxIivL/uJPgKhCJ2CzJstJXF9re3xMnU46BsM+dWYGIm/J8IVgUqnjNwcpX9Q33wBVQhz3nwePVkR4pGz/xSFyaCgjClfH4frcIiOy2yE3S3W0CHwyjrcfj89pFG3BgnBoq7ngwvB

O+hgGGaYqoebyS6C8F5UYQ==

# Use only .ts extension
npx eslint . --ext .ts

# Use both .js and .ts
npx eslint . --ext .js --ext .ts

# Also use both .js and .ts
npx eslint . --ext .js,.ts

5uoY3thLQnfZMHDKW/Awlm7Tj8RO2y3g+Ulcku9LW/w2461sX4WAf5RcGBQriWsX2w68kWDwHHEstM81QNvCNtSk5qEigvHEIx8nfhBqo8icnXCCVsqKiECypWK/TzVP07vSziTBndB1jwlIfY+bH5J1tJ5zmwvUXTt5OnkznEbx1dxUTx+mMPQ7vtMlRrXZayGEN42rrA/q4Y1bZEjkeA==

YYI5vM2xdtAn/Od8mhFjT81Assimj2FvqGq/wrNy7Lu8zO6irIqFtAoUCesOFsXaTFyiAsjkV+xfIpjJlBTqWHWVCZLYrAC+AW8NU9QQwvZ35Xr5xCn6f+1BoCdW1OX+ONYswK31HWre6jZJ0t/8VWbSLUWLguPkpzNdAhAUGvzIlzmAzwFdGu7Lb4WddRCQ

--global

DtCDcw3sUu2gYhfzfW6QATm4QGc5BmEg3Sxt6AtPM0neHHxtgAvqF3ZxDRGwxgHPIk0QAJrOBzAsK24pSrcgnsHzskqeg3JEV4M0dqGszxAHX6i6ZfDLeycUmLxO+NJ2bq9qLwPa5D9Z/XcahsCwdgKEL2tXIZqQ1sps5sJlkcNl2EBcKmg1CfTCCa6UfUEnBdvwyatSlRc/T3uE/a523Ycw6VXQEQ3YFGi6vRRms0ZOCGr6BTgCYYloTL23UZXkk8Rr7ZuijfLzrPbeHi7Qpu6a5PJOGz+8/J9BKs55wKfV6NUBXjkbTYH5HmzHl7rmxpazdjGR2gCKQFt8xaG+y4cxzINIKjggfQPfjQOEKOkllSjE1amoWDMlUnc9XeaitRC48Wgao94+TqWvezLpIBX3vw8P86346mn5E2GkTCft48lNnhEjkzA3iOfOA/h4+riaTuDOO10z4fECddBIhA==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --global require,exports:true file.js
npx eslint --global require --global exports:true

--parser

t51vrgt8CTBsfA+oLRq1KJ9p5+EVqsy3ufwE3OTnFof+NTlPMUbbURgcI8RWVsGTYGm3xjHIJl8gNspnBXWjsjhFXXltETEItDXdUDeBHe1uToJ316CgiGmBbFCk47nIVLUZUrCci8mhJaKsMNOUYw==

--parser-options

t51vrgt8CTBsfA+oLRq1KJ9p5+EVqsy3ufwE3OTnFof+NTlPMUbbURgcI8RWVsGTv2UPgOq8HUOUeJQqfR08ng6iKrY8Udj1c9k+rlXcfi0q26O+5nXcXFRZpnUviLFluX6ZhIPub/WasznTSPora6F97FFFRIMNL6b0VJ249f1DHJglzw6/jNcrNXHk+i08

O+hgGGaYqoebyS6C8F5UYQ==

echo '3 ** 4' | npx eslint --stdin --parser-options=ecmaVersion:6 # will fail with a parsing error
echo '3 ** 4' | npx eslint --stdin --parser-options=ecmaVersion:7 # succeeds, yay!

--resolve-plugins-relative-to

qKGbQCZahDv9ORHd9o9Pl5OkrPeudv55btk3Gxm2AbysXjOj3gYK5C21JOhF3M7k/jqKI1SsjjgZNVXVBE8jg0imUJDcPzO7io/sjh2a5ZJplpSEgbsksKz5s/HTReViqR0zTZeDEGxOa4zJ6LBhOs9ARG66+A9autgNDHzHAO35mmMiBcwN0vY9/ou1nWdxHoRcpn1ElZHPl/nWzrmMx78uISUzZoIpMsScX6QPpfgQ+1uIxfE8Lr9QnhH7YC+dVYhxjDFwn95DsjKKXyWtC2d0L03Wei9lZ3VvIUWjAQHFYqi3Fr9ekfoqwoTkwgzq

    mafxxvPtMuWjxD8+F1ASlkICmN/4OCZFxfWZ0tCvzUPPDXwnQcxQzUAKRlJwdPq+Hr6pKnhWC8eiE8Km9bZ7QaJekT7x2GQlzTlKPjcl6Emoe852iCNFTSsJwobQrc+AUeoLw35xGUwusAVnWdyhTzIVo1hjJAB+oKAr61lUNVrdYxlneJyfh0yO4FIv5HffOZdOWbkywTGtelNU8bsyn/1WEhUrXPzp551Lduu1hvkSRxmKBJWKAVegL6q+vgmTcGaz0lUOZc0Vn3tRTib3meSww6hzAp7YHaQqX9cQ5hNO9FeM8NUPF8l88SOmQSb0i2WZ0R3EbDkDYaYG03ahIPuf8T5kkiF7lp6dCiS2RM9LMEhN+vpFBZa/I1jIwo9ZW2DdtNjOyn7oqh/13Xje0p7IqmCQYMbh3b+T94dBLnwEgMC38c46HnZqB0J0rDzDoxwteBZjlsauw5SQUHhA++A6gaTsmw1fjhlmMuoamWEOyfAFKYN+NsgljaBXLncU5QSkOn9UsXfzMO3n72vektJGz87mZvNzM2YyrMwp67BapkNF3Jn7Ttzbg9YNwuijiPUd92E+Aol/F0Mw2LnJ4wePT4Ndhe9qN5ri0P46ou0=

指定规则和插件

--plugin

khmytvVzP1SC2zRTVz2NfZzokQvqHtBeY431RuD+4Uvqt6ZpwgpMcE7rf4ho21aVqBeTgmT7SXlVGYUi+zXrAisHZl7fdudPQFaSr96Q4FP8qSS/QsmYfNHid+B22ZJD7sm/4FC7N61fsBM25jWxRg==

Qd1PgkB9G+DQr5O/dWUSxetc/jje/TO93H94ODZ0CAdnmYpFn+hqlgGzFHYeSokGwPX5RsAyXAPfz9M2Ky/41A==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --plugin jquery file.js
npx eslint --plugin eslint-plugin-mocha file.js

--rule

khmytvVzP1SC2zRTVz2NfQHUObaIX+2HJLav0jL6lISu6wVokpZm1BQ6z55zTGIfDNfJCoso6Cu5mlBcNY9rbVBRTm9EOPboHK/O5t8Aa4+tIYPJlL1UL7QGBzosgpASAAPSdFaZlFUzqGwsMJF7m0O3MkOfz6qUIjrAkysPOvFMthekFzzSiRE+fXsQs+mL77Rfskn61JPt9/LxPEfzRvI4sfuDU+F4ajRh+B2R02StIQ52vYOFialR4kxBj71PXAeGlQh9Vg/QrwffV/UvgfnFxlC9q4NLuIuf3QnsttQMEYK3kGKpPfW0MqBT9YZ6+xu1tTtIlIKbUn1YX1AXxjSCWPYAcA7yJ9lZrvfyj6wZeZOJvH+DM6h2zH+aZd64ooWGLhq6ziMrZnzxGG8zlndO0DHt/YHDcujXlae/6aVtzUcknZeasUz63ZaQKg4d

tvFOpY0T9AspA45PTUzcOmq4vW6EfzEdKKp2HnGd62rdN1CDEkU3AMYZ7GTpOn0Pvk4cu5vBvDtQ9vOnBV2kr64FJkaFXi4khTiJp625hZAI5TSHOVillx33It9XR3J5foMh32V/8jkaDaATijxCcg==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --rule 'quotes: [error, double]'
npx eslint --rule 'guard-for-in: error' --rule 'brace-style: [error, 1tbs]'
npx eslint --rule 'jquery/dollar-sign: error'

--rulesdir

h3t70vQS2gbDdBDa/PI48iy3e9I22jZYG4l4GeVFnJT4qTLhFeF8qVKHtuyQH03fexFs47O3muk4yx+7omRg0Q==

t51vrgt8CTBsfA+oLRq1KA59SpLCerioXPvU5DGemIKhEKQ1HGerkEmAMApMRFI485xYrzpuWNAwmXN8rw8/lQDN/tQOftnVWPPHiGlSPSmdBtm/TFxr7a0cRj+B2uTG/2UIw9MMFsldWYBCFaAhfe1/wKMRCpFF1+HwuFODVYF7tvZI/Cay2K2m7erSRcNoh4UPmj3ye3ad15h1ww7jl/ge8btY4/6/+WOwIyDhxzAy2veLVTzQ0DuBq8b1YO9K

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --rulesdir my-rules/ file.js

jg2h+9vnVJ7B0/MadQYguFv4ioe/RkPdhfZpnE4k3JVz4XbRHw1+NHkaBsqEzmj8bqzdJii8Z35FA0R4simy7KlrBinBlLkps0VlUUWyfpDI035T0ulwd+qdipSgAiAENmS9NiBTqksNlohfOm+EYM6WFU2MEl9XpcB54flv5/X87EQd2lOukXAG3dVjrcQKn0LuHgo4pggmMV6Ec4/BVG8yh9NZPYxhPCBVhAZuMZBY2T/VZUgxZqnEYGl0IewCrct33lGC1s68SgIPF3FKJw==

npx eslint --rulesdir my-rules/ --rulesdir my-other-rules/ file.js

6dakdIOiqwPbJ9QgP6KhFxfZf9XvB1/5OtprOJHbilfIdsSciLapDXYZH315dhXKX2ixv6It0Vbv7Vv85ZScHQUxGDCaC9jonJZW2ILTT5YA6xmWlhR6lQHu3IQvDkwJQiIJU3MZSooGWaCy/61OIZX3rR0/d6bNlF5JwyanGVdO7gm00BoVw+fH77LZU9nKxYVN1XZoAoE/CyrNvQBsqCtp6aGs38keWEkGR16VUHv3zROyUHUmkOEIgwNIZa3n/bLt1K8vhlOdJQyGp5yO1Wp2jkwQwvH/MY4hjfbXbG8qmzAdzYx58qLp0cnlpKtw3FpXFK8b7Vtts54yv/rTHtRETJSuO2BXZHC6rlbflslmSHM49Hy2h6foM4FCbOSl

解决问题

--fix

Rs0LQJpSE20ff7eom1WH7oX7ndcOUJJo66GXX82IiVKTC65SYDlOWMjxiHG/uD9jHkuePMHvFSoiZeKrmE284XcIhfrz9qoS/fJg+OIWGAy80FaILPsFOsgcHUHD4m6ZEyX+WY6GaSYXpnp7hfmAN4If0Yzi6MR7dLlT7dP0zEu6O6Cb2bjdFXhNGdZ6el03aGnYT2pfH+YW9D1GNpD3Xenit9nuQDwhgWOxW0CK2A80Ts2tNXaZ7V7Ehwq0YSzLTaTXVQybNVfzCdlAHvkUTaJcoarjeVAaF/XsNl27N3siN3yenbFRWvXmf0h7VovS

  1. 当代码通过管道传输到 ESLint 时,此选项会引发错误。
  2. 此选项对使用处理器的代码没有影响,除非处理器选择允许自动修复。

m1yvuUQIQlPJx+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dmusN8z8IKPxqnN

--fix-type

t51vrgt8CTBsfA+oLRq1KIRQZ1CSP1+WQPyh+kRCB8ZLFpE6kX8/ivzJSXOE9NAaycJU8gdWAU4n5G5Ukfbs0ktmwPMw6ZHmTieHPYNnSlsoCFQS+hLHXk/glthiJjnueGi+uXXVdawrvCfCscpkis3RbHy7ceFeWepXswr/rOCujBt7v8o/V6YwVCXp1hgv

  1. problem - 修复代码中的潜在错误
  2. suggestion - 对改进它的代码应用修复
  3. layout - 应用不改变程序结构 (AST) 的修复
  4. directive - 对内联指令应用修复,例如 // eslint-disable

SVyNePAL+yQzL5hNhfVu4LCuqOsaFP3w1ktJ2k/kQTE2IdAldafdtVeWG9N5HgX4Yo8o3XHAMx//O8hwqDM8YgZfp5cU/yP29yPV08pspmVNAsjcN2zmKSoGl9C+Vl8Z

npx eslint --fix --fix-type suggestion .
npx eslint --fix --fix-type suggestion --fix-type problem .
npx eslint --fix --fix-type suggestion,layout .

sAq/FROZsE65rEJB5rS+MFbQZPk4EeIyP9+R61XMGhb+sn/0ydg7WHTFDfJ1vENUIWGk/pyca23XthN1gB1VRhPKpgNocIfx6F7FBLo1IbgXeQDEdIbfLASeUrBtIx8E/OVqzc0EeoOEg99f7dkLze1wquA4VNoVslyAFAQTyb0AbemVK625+1uWkoMq1Dpw

忽略文件

--ignore-path

5uoY3thLQnfZMHDKW/AwljKutydXvQzDqFDA4lYxlhlZfhqL66UnvhDaXiAO0vTvfSeh4iDRqgPP54M0wFJY/WG3XI+QlyQo/V0PLxT0HgKWoR989hjt9F2NUyNeUMycAlksJIjP86QWnDxqKfE9V7EO4cVuUVzzwf4fULDJWbk=

t51vrgt8CTBsfA+oLRq1KImoy12KyAtZ0rBXQ6E7dNpzdAfqDeSrROag/Q9aURF06bnajmpaSLp0w2KksFhLhOskUNGPXAnqYUZrlIjNo0ZV1VojNp46IWkYkWr0q6/iEEDNYd5Rl9JXqxm4SWAZG6FgLnO+0005eNLqKbe6qzr3VsobYO+uTfflj8Z5bMhHWMeLnwdWVRJnARAdfLh5e8FUUlUqD6MIjzNkWWs9fEqZj23GN1P+xKdFyFORTnkHyKcqsf/ccp1qrYCRAcwyHsd/D8NnYnt89n0jfHbvlgo=

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --ignore-path tmp/.eslintignore file.js
npx eslint --ignore-path .gitignore file.js

--no-ignore

ffX9WYL3IR8mwr8qLKe43rq6UniCfeALM5V4duDT2QXHTxT1aJ67+VdPhiuxh5dGpNNEg1QpDAdnwST2Pmi4F0SILyjFmKMUggcEYcM872N7QdAyLG/6ltdL+gXJuJc7TenndFGnE6PzLAP89NjE8+79yEUgaXzH6x+TlgwFSogGNHqpEb8XRHzrPHHv8uRIxZv07qApBf3/xSub6DDYAa4zhcQ6wMusrt4dh6jdijc=

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --no-ignore file.js

--ignore-pattern

t51vrgt8CTBsfA+oLRq1KCuyA4MuEyI3CX7q0bYcmgno7ST1X6SieHKAo/fdRnwRlkodWIHEfl7f0MSeIkG3ExGIy0Wp7Vif13ZoqT+zXClWHOkFr4hxrIZt4ONpjKpC+S4mN4BkwfZoAYkxLrIjQnb4eQ6LtoUsEOCYtsWcnO9JTQOluPWg+EOdFmX9TYnjpG9iH8TinSLOzMUP0GaBvZ4GJ+M6ISpWQXz4YBqYRUKnyeIHoGCz2MGKI5XmRWCREvTAARl61qdMMNAyAR/XsQ7u6pWxg4T8uhwy09rQOeLT/NN7AFLewpjfXa9kVRwHZ0ApyN5/EgnOmwWE3awtSGz/6RgEO9WIavC0JSHhKxswaJegw6GuQpAoKhtGs/y735J0JQTNnVXRpFOH5dnfA28SI01DU1d5obL3zv6D+K18Xkcq7q0FSgVEW/FWHoBbwA7+OiuBK75s19nwa2vQZX+TJRQIK3VmhB/3Uq99AKxDc2SSTU1lMiSvOUfZEnJT069pKdMiTyIolslO4iyAGS0Z8dOHvTPMKa1QAK2QpEXkJq+HHtD9xDAwc1w8KAwlkrBKMDj/2zrEXZjr7pehWA==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --ignore-pattern '/lib/' --ignore-pattern '/src/vendor/*' .

使用标准输入

--stdin

owh8GZ6O6dRGqLpxwYs6Ar7pQCzuiEdvZXi9/oQzndK3ioUtn1uwRtjd7aMyFrZvdDqOPPFfGGRICauVJxCylhvW7o6SfOx4ppBdxgPOKAfjlo/AgicEuqFm2fhwOEPSpNCIOQzuJnrteLfpGRCTwcFhGLwmmXHSIUF0Jm8SXn3LF0jYQF2UCRvKaWt3PNrw

O+hgGGaYqoebyS6C8F5UYQ==

cat myfile.js | npx eslint --stdin

--stdin-filename

t51vrgt8CTBsfA+oLRq1KBteuq6SSwMGW0INyJh0fSGlT+Ka0H4uvXUk+NSvIicyRwoISfNHzURnsT0+HDkUL5ODjLA2s+PSHgrBxEaCii6gKTyFN+qlp05p79T2JAUZdZukZRnH06xSRHTbXn9H0fsf0KOj9DaentEFhtMwNZjz74dScyE0yJtSrhuNNeghUXy5KxBVftvQYV2Rnut5cQ==

JAbbWTZaJ2B4sL5b5XVjGQ==

cat myfile.js | npx eslint --stdin --stdin-filename=myfile.js

处理警告

--quiet

t51vrgt8CTBsfA+oLRq1KEpI8XAY9y6BqIoCg7TA7i75cuaq0poIM6t2up5JTRsKuhAS+FB3zWSQYd5aYOZgJCwANXlo6xzOhZysPR1Ctuykb1OTSgveoQEVg4W2sHYA

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --quiet file.js

--max-warnings

t51vrgt8CTBsfA+oLRq1KELGehPi4mTNJpx8KMOKLSl0Fm5HYJhCExOcXty8rY4blsx6B8dY/cS2xfZ7zMwFZAnKA6PaQFcK+rOMJBclnWFtS16RjOBMLrlHPSvDWkFXIIGVvs12y0iDXN0zJStVjlH36CilFJi6wsFngRBuAqClH3kKDvLFDLxCFLL8Io9PRgDs28Z5q4Z2bx3iotZdTA==

YSVo/1Mo7pgILj4AW6NuZMBdq9nVUFvwUTYiODkLOrv+Kbvt18asqtL0g5JphrIiUOxT0oEAOcuwN3ieCQS799+2Eu9dMiBye5NFgD2jtCZhiK66TfIzyBnLONJJNwA9d56xh8N1M7PsBqfAWKU3DA3r88r5BeUc5BSF/7TI6Q4IUORQWeHBHcvze9/vr/018Eyo14tnqawpWtHrz/vpqbbIuGUmcWj+1lVG2uSCFXFVMsygDs/MkD0blnnHnOw3V8zuIDtfwNgQcEZbp9WebUabo111qF6qG+/+F4zlDqwQJZ9P9owcimNFRCHr3BS5q+LN33Q9m6ROqeFS1UNDbEYJbwpZ2lRoJ6D3ikxku/PZ/XExuEOlgXIAQyAlSlVO8IUWNwim2mnZUUmjO1ElVu7xM8fhykNsqb/Ur7sjXuI=

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --max-warnings 10 file.js

输出

-o、--output-file

eQRr0Tf+mC5kiuFvURB6X7YGlcO3pSuu8dyKURak+28=

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint -o ./test/test.html

RkTdmzoQkUTlXPVBednH77jBidnypnqjX6vNeqMQa/mDxbLz7UkKpI/XeIOSlo5hskC0xiGs5t/0IUBylhjWCA==

-f、--format

8/pzLhuoAqwcRt//mgJxEWcwCTZAwYg0Rqq9zsjtYnpYY8w3KcuROWTXIGM08voWha4nAwNRHfYUSk2vfUJILg==

    wYbv7RmzGBBbJlWLsh6fHsIhMkc14uUYRy62OHN3cmr50pkTREczTtOpicT2PsRM3c3Zrh1uG+2cRP+gDjhhNH35QlSyUU9OnXtz+h5j1DZfSoNQ5B7AtXyJ5RWB3eYIo6SgAsYRtqHJZZV1nmN/6Cx9SbYFWrY0ktCw1el11X7aUaxqtqi/WyAZYCFyGQB0WTgjU/dAWAn5EG76JmjYo5OtQuYY7AAcgiNjIe2psCw6fX8Q4/Q6qR7SosroTQXoQk0XfOX/inTR9Rrz91U8sDD6alRhwFCMyuGE1nUug6zq7x3abM/5RUnU9/XO9Vu7qvOjHMm+fScZDg/s+9Z9iZS4J4bCnY9b+HhSNYPBJdWi1ts80qtY4aAJt7IQ14KUWROu5ez9obZFnMXrsWGXqVPZWXH/2T4T72bP4fRYp/PlmDWjIFRJNHxrKLDV1LxnuxMwHSbdEaaV/jq/C8hpKljYI+VVCpK9zT+vk5TsBd2A5+6yMkRFA+tm5Cm273vGmcyosCl/L0f8MWLQtvXAPAIOUVea2Sfpo5cwYYG+HDEtJLkjleHeqgIfMDUtMhV9lEgVsb4OvNMegucsNK1WWSa0ZNtnXypeZf1f2A2eSCy5mOP2QdF/wvg19CdGTiNmyyM1AeEku/SQtn6WYy0S/OzUk8O1OKVgeYYDA88cS9DYFHdAiXJ1N58lj5i8e4lo6UXDQUg+1Ardu9HTN/HIbHMZzlYTYS/b5WnwNck4JuUgN2HuU741uzl1YqzIioFaAlzWmDDEiw1Pp5bV4vbEJL5c7nlz/DaryOlQEeLzNFvHjLTme4Sw1xByuUT6QhJohebsjKyLVBsvGPgkgCHwWjPewaNa8Pz2Ivb3bN/X4o7O+Fz3Pu15seH9mHigJ02R

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint -f compact file.js

jKn+HizUtteod7fRk8DCpCdmVswjZhVEruh2qEYGY/H2pOrrSLlu9VlgDv8VJ1skuR5bJlJ0M89J3jT5q54MX5wyZp7hS+DeqqiWBgfQ51t6vFGb3r6wuA1dDorkORvEpnOY2+ziFEa0SZPrI9EljQ==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint -f ./customformat.js file.js

V6JhoCHhNwy2cfIVWbhO5JjoA+0gJtzsz1wugTraLimdhoCXdOqVmiBDxOIGi8BJGOdAHwVLRuHgpYC4FUDQ05aYah+KrroqIPSJf0Qnang/3tJ7RtdO0EiJZnDXRGcB

O+hgGGaYqoebyS6C8F5UYQ==

npm install eslint-formatter-pretty

npx eslint -f pretty file.js

// equivalent:
npx eslint -f eslint-formatter-pretty file.js

RkTdmzoQkUTlXPVBednH77jBidnypnqjX6vNeqMQa/nhpx1omsZR3SMUJ+xEGEUvU5RAHCNuH2DfV9m7/oNjVq6rV3kyWGnFrIShjnB7SsETiBljFEIexmztB0mz2hpZ80kizT1QBqdApyOJ/y+11oBRJkBAdHaekHbsn6aNjR/IVw+LRaNlT6y3iqYpqrzTzWRj7pe1h+J5h234xu7TmA==

npx eslint -f compact file.js > results.txt

JMc/Ts90lQ/sbH/mSCxLI12umkLYObtMpujtqP0aCAK/tjde0yQ0kf0BQKrZMpyqpe8AbaKt/jb0xbGLPVXijg==

--color、--no-color

d1ElzMZl91nKlz5DnRYqv99t4Q6nwGO15Gq7F2FKvJfpZDSEmznNsWeT7JNcfb6VrrOnzFc3koQigwaBEfO4WGj1HDLk7g064ePCITQauoMweoGua90aK7cJRlD0KabGEFU5GSGKKiexjcgOo8E90eu0tZsarsKxKicvRvHqA1XV4dfGDhBQosCWfrqIUojrEr5enpIKOsCetd2xvT3Spdjfwbm94/4cqjn06WL18XlRCnm8HlCkvElG0RD/rKRNjXDhmUPeBP6872ib6rka2cgWc3LnuQnp7GOlW2DA/dQ=

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --color file.js | cat
npx eslint --no-color file.js

内联配置注释

--no-inline-config

chn6s2nG6oWL7uTCwJyxnSecno3Db5sPSI75/bJJajO1iuRJ34xgunm8lsPhD3oYHZDUylz11sA7NxaplDKFDgGvBNWBDyBC/M7rj/RjwFWgsOqGLnQaZSYxjy6LjvfM0ps2WPIG6aqaI8e0yPXwo6WtmE5xp68bpk8Lcum6YER/Th9OOSkHpgR6vFhJOBV0GD9wBX8Nnw8XUwkn8cs/DFxiWrmniunoPIL8YbQCwR+9KtpeCAQAT3PflkYB9XZfXLRctOwTX+xRmyJuWYywLRbpQIMhMlKcZKiXx9MZC0SzKl9V5Bu26PY0918Myfgv

    snMqv5HNfETjzpgWgcZQbPdObAmcqOQ6Bzia8dNT3oRauNWtADT7xZ5kKo7YvKNlkpvfMu3myge/gPNLDTkvFBDyeG1nXIh7DE/L411z4D4ECIbBs6qVnB134VjHJQFAFY0xfosEFLMT3eT4JSjxBvOoOihW4gnvvDJ083jsOSQthSp4rPTRIV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es7CGNKZwe6fhb75YPifw8Houla97Rx56H6gQzimGNDJ2yOwVRK8n4Z4E1MGR1We0lDqAm6lzc4X3+ZCOsx36J6mBCPNSqg4Pf4vRrS5X2xeAOtEZ5ZmnTOlIMI0gol9KT+sP/jO6JopmCkEP3wfn+CEUAcVDWklP328XuM1lq7AGmxJ5kQvBcOy41WUKGh0zzpMAoMUbi5GjFPpivAHQYw5yypPJWw183hQ1W0r5o/XkMULE5mUpRr1Ra/aFWIEc4oo+NEoA==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint --report-unused-disable-directives file.js

缓存

--cache

NAB0Apn6Q19JkSvhhAEuLx46Se2si0kd1ib6VHffK74elop3MMfhOdn2WsriOLrLv9J7HvQZ2JlX3u7irwuXlwwQVYOUQeSoYiV9C0K14hsvzxOt+OGccok+m7waoQRz/FNdrNEuFxNirz903iwyLmRLfVU8Yf903fJdg5bdhARI4U4yEsDjwFVODT1Me+WhnEOde6nOkrA+nu0CBp5NQ4G4b77Htyr3tNA1u+DWOfqsneidWIXFy+xKirdtc9eW2827Ydi6Br62fSBNOhfN3GJ6D0UMxfQBFADSeryJ3IGr/t/czlWWtkcWEhWNIAaUJLbUupQU+DOlpO2Nwz0lwA==

5uoY3thLQnfZMHDKW/AwlkhmrsX0kNdJMbmsp0/xElm/mYSDeLrPmH6cn7ZIszfFhGYdoysZt80053ZgmG2pcvGKvK79rP97BlrYDgWeV8W5DWllGvBFR7i6dB4ixWi8gqvOselcwwgduK0uJVS5QvtnivfC2Hd4t/nsumYUt8Fwz5nuqMGyjwJqLLWOKX92Nkzhbk0LdqoJlPcFngLf4pSRkOtoTJH8AjpcAgVN3mkdrkCj+GhchhLFjJyADxnLzkK6YVBtg8/3xzcD3RySDXscvKe2aBHVtTZfDLNlO1q3hA3xgObkYGrumheLLm3aBRFegxAdVDnbTt8bhZdOYtdtBy9F1s8uow30hpSXc05QClntl+LxLJygdqMrAyjJLREuGD+9NCFFwl7NRKa8sbAoHapRE3dytBQLI59VDM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UghOVmHoVTbtyg0kNa2BkZdK3y53eObm92RI/fnuu86DdvwORH8WR2jOkzJ71Q5UlVLWBh7DSHwMbSwU76epjeavQv4=

LFQe5QgAlnUuFt461cOVbCx0CGrzHmZKK3PCg2WPssz7AnSp3CrRry4j4uZCUFz4X24vJ0JHQ7VC67Drt4sZFWy5AIotxdc3suv0ZuboTVa6gXOozraa8s7JiL11fH0/wMBOO9piZQ3LF5AEpX5ZWT/JnN9YzBP0S4fHlEuAQK2O57f+CFt2p2pL+zpnrVk/6ur/B6ex8oYg1FHqfuxX/7juQXSClM9/F3q2ASNYpTE02z+fWxYfM6t33tOkzZzHdsdb4WdnvtFt3ePkdA5ykg==

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint "src/**/*.js" --cache --cache-location "/Users/user/.eslintcache/"

--cache-strategy

bs6PGjADmLJOw4GuJEi+X/hrAyE9O/RIRT7snAR6s4/j754gbMCRMFjlnIQIMa+kabrZjz8B2rL2aXAzUntVOwW0wx2jtkAs5wZD/6xP86fGUpLYggCisPX5XQkj3xUj3d8TNP4iEDkpPY/+puwSZPMxpzoMKEVmttFBPo+7BSBr31w0yyz+O7DxNimk9sqGSN7QhrveMzWnM20G2UiprQ==

We2CwkMcaa3ugwANM4jn4r+fwmQDoBKahT10GUX4c0rBi53j2s018PxOn0Ij7jdFmLpHgxU70uFR6Ccw6xcI9BAYfJ+UeBh/+lY0kJwB8+f+eVDyj2N8hUBHlsVBpwed34jgE3y33a33YyZxgT3vYBe14Ci9OU0TuvHSpQCXB7ydAMtwMMu7UgMGd3m/fAqUTu1bqDDHQCfkKC1TTiniESshv+ELwCGb9oVlfMKszy89GKeduoRSTThTTkU3tbgRAjAARG/ax1a9WJawdiyQrivRgJ8a3sz4+x95PEyPSKzImPTxAoK1pjj3lCF5kuVn

O+hgGGaYqoebyS6C8F5UYQ==

npx eslint "src/**/*.js" --cache --cache-strategy content

其他

--init

3Wzdvr9gufxJhZ1RFCgmd4BVtfhF+W3S1LaGOH9g/KN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yS6C8F5UYQ==

npx eslint --print-config file.js

从 linting 中忽略文件

nOxhBP14r5geQdyYjyvOlTrEelkkTTPN3z0ndn07LHZmefJw4Sah2LaX8j95esA0B1FLj1Kar/hpyj2+8ShuRoe8ocSYdFnt4HSSFHjIoKzNQsm+Uv2Hf3MRGRaqyEiPKlVKLGamkeRBd/0fvpzZqE/GjfGyXaiBiT7Vk2mMPRmyQgQSJMRewjtj52rRs6wdJ7ooykgAhZOfZi+2TY1WK2a372LMTLKGwNR2zh5JdI7J19SzVJd2o7lmS0t9J/VVRb0DYPLLdZUpu2TUZbO0gQExszZ/WjE3yP302xAvBNzodjlaol0OiE/s9B+WaIxsybeY+29YQEVhOq3eAAu97Ev+YRJDEHy3kdNsZhboAQcdk0OzHKchxOCCKx9QPLO6eoq3N0pWYhs9TaIXsVwZDRzsMUMDtvI2FzjNee89hX5Gg0ajybENIAsfJ/SvuDSqSDL+3zu6fThbXPUd3i73fqtnetBorZDaPoIB8pgwf1tTqyHpQ6vR4uyzBq7cfGLXAwgw1IBkK43Vmz+X2xKqVqOS35yHeOG4MGgqg+MtomtiVObnLRZAxcpz4EX3vAhcaV3ZU7wqnDu22fdZ6bnjLA==

temp.js
**/vendor/*.js

ZayvFXr5Ps0S7Uzpyedd3weGkdC1hogGqux4rjMl/91K0TVZoZF4H+FegbJ0A4wh7XRrFpBbEHNlES0aLkalvbSpN0UOq6hAhXxLHewdHchsJhRnHY3hPcjKBnIFw7qFJ+92xlTGCqHToXcIgLro7p5CpdaemC8zXiXfMUhHJxailunUdO/TOD1Oex3o4JIf4izZmync1VgNvRxBxEETLw==

退出代码

7P3N1Y+PPhh85Yt20KGgriWDtq2Tv9jmmfzxrrUAcxgDImf1nF5K0hGNuVciFsZWhtsp9phAJrg5tFWFgawus/wWb/xvazqODF5UTifUTz0=

    iSBJXIIB5rZijGur719wEOZJ65b26oCcI+8aIMc9VgMYbhlZ+hyzHYQNrm8jI/wftHtkkX3441zijVcOzRRHkd1K21bh23Ms8fcum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