ESLint 是一个开源的 JavaScript 检验工具,相比 JSLint,ESLint 具有可配置性。其它跟 JSLint 的不同之处:
ESLint 使用 Esprima 来进行 javascript 解析
ESLint 使用 AST 来修改代码模式
ESLint 是完全插件化的,每个规则都是一个插件,用户可以在运行时增加更多的插件
ESLint 4.16.0 更新内容:
Update: allow continue instead of if wrap in guard-for-in
Update: Add NewExpression support to comma-style
Build: Fix JSDoc syntax errors
Fix: Removing curly quotes in no-eq-null report message
Docs: configuration hierarchy for CLIEngine options
Docs: Clarify that -c configs merge with .eslintrc.
Docs: Fix examples for no-useless-escape
Chore: Deactivate consistent-docs-url in internal rules folder
Docs: Sync messageId examples' style with other examples
Update: use doctrine range information in valid-jsdoc
Update: fix indent behavior on template literal arguments
Fix: avoid crashing on malformed configuration comments
Update: fix indent bug on comments in ternary expressions
Fix: prefer-destructuring error with computed properties
Docs: Minor modification to code comments for clarity
Docs: fix misleading info about RuleTester column numbers
Update: Rename and deprecate object-property-newline option
Docs: Add ES 2018 to Configuring ESLint
Docs: Minor tweaks to working with rules page
Docs: fix substitution of {{ name }}
软件详情:https://github.com/eslint/eslint/
下载地址:https://github.com/eslint/eslint/archive/v4.16.0.zip
来自:开源中国社区

