Skip to content

Commit

Permalink
9.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Jan 10, 2025
1 parent 4df3132 commit 1c87b41
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docs-eslint",
"private": true,
"version": "9.17.0",
"version": "9.18.0",
"description": "",
"main": "index.js",
"keywords": [],
Expand Down
4 changes: 2 additions & 2 deletions docs/src/_data/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
},
{
"name": "default-case-last",
"description": "Enforce `default` clauses in switch statements to be last",
"description": "Enforce `default` clauses in `switch` statements to be last",
"recommended": false,
"fixable": false,
"frozen": false,
Expand Down Expand Up @@ -1517,7 +1517,7 @@
},
{
"name": "sort-imports",
"description": "Enforce sorted import declarations within modules",
"description": "Enforce sorted `import` declarations within modules",
"recommended": false,
"fixable": true,
"frozen": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_data/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"path": "/docs/head/"
},
{
"version": "9.17.0",
"version": "9.18.0",
"branch": "latest",
"path": "/docs/latest/"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/src/use/formatters/html-formatter-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<div id="overview" class="bg-2">
<h1>ESLint Report</h1>
<div>
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Fri Dec 13 2024 21:28:30 GMT+0000 (Coordinated Universal Time)
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Fri Jan 10 2025 21:45:11 GMT+0000 (Coordinated Universal Time)
</div>
</div>
<table>
Expand Down
10 changes: 4 additions & 6 deletions docs/src/use/formatters/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ eleventyNavigation:
edit_link: https://github.com/eslint/eslint/edit/main/templates/formatter-examples.md.ejs
---

{%- from 'components/npx_tabs.macro.html' import npx_tabs %}

ESLint comes with several built-in formatters to control the appearance of the linting results, and supports third-party formatters as well.

You can specify a formatter using the `--format` or `-f` flag in the CLI. For example, `--format json` uses the `json` formatter.
Expand Down Expand Up @@ -54,10 +52,9 @@ function addOne(i) {

Tests the formatters with the CLI:

{{ npx_tabs({
package: "eslint",
args: ["--format", "<Add formatter here>", "fullOfProblems.js"]
}) }}
```shell
npx eslint --format <Add formatter here> fullOfProblems.js
```

## Built-In Formatter Options

Expand Down Expand Up @@ -268,6 +265,7 @@ Example output (formatted for easier reading):
"docs": {
"description": "Disallow `else` blocks after `return` statements in `if` statements",
"recommended": false,
"frozen": true,
"url": "https://eslint.org/docs/latest/rules/no-else-return"
},
"schema": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "9.17.0",
"version": "9.18.0",
"author": "Nicholas C. Zakas <[email protected]>",
"description": "An AST-based pattern checker for JavaScript.",
"type": "commonjs",
Expand Down

0 comments on commit 1c87b41

Please sign in to comment.