9 edit_link: https://github.com/eslint/eslint/edit/main/templates/formatter-examples.md.ejs
12 ESLint comes with several built-in formatters to control the appearance of the linting results, and supports third-party formatters as well.
14 You can specify a formatter using the `--format` or `-f` flag on the command line. For example, `--format json` uses the `json` formatter.
16 The built-in formatter options are:
18 <% Object.keys(formatterResults).forEach(function(formatterName) { -%>
19 * [<%= formatterName %>](#<%= formatterName %>)
24 Examples of each formatter were created from linting `fullOfProblems.js` using the `.eslintrc` configuration shown below.
26 ### `fullOfProblems.js`
42 "extends": "eslint:recommended",
44 "consistent-return": 2,
47 "semi" : [1, "always"],
54 <% Object.keys(formatterResults).forEach(function(formatterName) { -%>
56 ### <%= formatterName %>
57 <% if (formatterName !== "html") { -%>
60 <%= formatterResults[formatterName].result %>
64 <iframe src="html-formatter-example.html" width="100%" height="460px"></iframe>