7 ESLint comes with several built-in formatters to control the appearance of the linting results, and supports third-party formatters as well.
9 You can specify a formatter using the `--format` or `-f` flag on the command line. For example, `--format json` uses the `json` formatter.
11 The built-in formatter options are:
13 <% Object.keys(formatterResults).forEach(function(formatterName) { -%>
14 * [<%= formatterName %>](#<%= formatterName %>)
19 Examples of each formatter were created from linting `fullOfProblems.js` using the `.eslintrc` configuration shown below.
21 ### `fullOfProblems.js`
37 "extends": "eslint:recommended",
39 "consistent-return": 2,
42 "semi" : [1, "always"],
49 <% Object.keys(formatterResults).forEach(function(formatterName) { -%>
51 ### <%= formatterName %>
52 <% if (formatterName !== "html") { -%>
54 <%- formatterResults[formatterName].result %>
57 <iframe src="html-formatter-example.html" width="100%" height="460px"></iframe>