Skip to content

Commit edf232b

Browse files
author
Jenkins
committed
9.29.0
1 parent c2414b6 commit edf232b

File tree

6 files changed

+38
-18
lines changed

6 files changed

+38
-18
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "docs-eslint",
33
"private": true,
4-
"version": "9.28.0",
4+
"version": "9.29.0",
55
"description": "",
66
"main": "index.js",
77
"keywords": [],

docs/src/_data/rules_meta.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,11 @@
29592959
}
29602960
},
29612961
"no-restricted-globals": {
2962+
"dialects": [
2963+
"javascript",
2964+
"typescript"
2965+
],
2966+
"language": "javascript",
29622967
"type": "suggestion",
29632968
"docs": {
29642969
"description": "Disallow specified global variables",
@@ -3489,6 +3494,11 @@
34893494
"hasSuggestions": true
34903495
},
34913496
"no-use-before-define": {
3497+
"dialects": [
3498+
"javascript",
3499+
"typescript"
3500+
],
3501+
"language": "javascript",
34923502
"type": "problem",
34933503
"docs": {
34943504
"description": "Disallow the use of variables before they are defined",
@@ -3618,6 +3628,11 @@
36183628
},
36193629
"no-var": {
36203630
"type": "suggestion",
3631+
"dialects": [
3632+
"typescript",
3633+
"javascript"
3634+
],
3635+
"language": "javascript",
36213636
"docs": {
36223637
"description": "Require `let` or `const` instead of `var`",
36233638
"recommended": false,

docs/src/_data/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"path": "/docs/head/"
77
},
88
{
9-
"version": "9.28.0",
9+
"version": "9.29.0",
1010
"branch": "latest",
1111
"path": "/docs/latest/"
1212
},

docs/src/use/formatters/html-formatter-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<div id="overview" class="bg-2">
119119
<h1>ESLint Report</h1>
120120
<div>
121-
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Fri May 30 2025 20:38:21 GMT+0000 (Coordinated Universal Time)
121+
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Fri Jun 13 2025 17:31:52 GMT+0000 (Coordinated Universal Time)
122122
</div>
123123
</div>
124124
<table>

docs/src/use/formatters/index.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/templates/formatter-exampl
1010

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

13-
You can specify a formatter using the `--format` or `-f` flag in the CLI. For example, `--format json` uses the `json` formatter.
13+
You can specify a formatter using the [`--format` or `-f`](../command-line-interface#-f---format) flag in the CLI. For example, `--format json` uses the `json` formatter.
1414

1515
The built-in formatter options are:
1616

@@ -21,7 +21,7 @@ The built-in formatter options are:
2121

2222
## Example Source
2323

24-
Examples of each formatter were created from linting `fullOfProblems.js` using the `.eslintrc.json` configuration shown below.
24+
Examples of each formatter were created from linting `fullOfProblems.js` using the `eslint.config.js` configuration shown below.
2525

2626
`fullOfProblems.js`:
2727

@@ -35,19 +35,24 @@ function addOne(i) {
3535
};
3636
```
3737

38-
`.eslintrc.json`:
38+
`eslint.config.js`:
3939

40-
```json
41-
{
42-
"extends": "eslint:recommended",
43-
"rules": {
44-
"consistent-return": 2,
45-
"indent" : [1, 4],
46-
"no-else-return" : 1,
47-
"semi" : [1, "always"],
48-
"space-unary-ops" : 2
49-
}
50-
}
40+
```js
41+
import { defineConfig } from "eslint/config";
42+
import js from "@eslint/js";
43+
44+
export default defineConfig([
45+
js.configs.recommended,
46+
{
47+
rules: {
48+
"consistent-return": 2,
49+
"indent" : [1, 4],
50+
"no-else-return" : 1,
51+
"semi" : [1, "always"],
52+
"space-unary-ops" : 2
53+
}
54+
}
55+
]);
5156
```
5257

5358
Tests the formatters with the CLI:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint",
3-
"version": "9.28.0",
3+
"version": "9.29.0",
44
"author": "Nicholas C. Zakas <[email protected]>",
55
"description": "An AST-based pattern checker for JavaScript.",
66
"type": "commonjs",

0 commit comments

Comments
 (0)