Skip to content

Commit

Permalink
9.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Dec 13, 2024
1 parent 755512d commit 90c1db9
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 14 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.16.0",
"version": "9.17.0",
"description": "",
"main": "index.js",
"keywords": [],
Expand Down
14 changes: 7 additions & 7 deletions docs/src/_data/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
{
"name": "for-direction",
"description": "Enforce \"for\" loop update clause moving the counter in the right direction",
"description": "Enforce `for` loop update clause moving the counter in the right direction",
"recommended": true,
"fixable": false,
"hasSuggestions": false
Expand Down Expand Up @@ -363,7 +363,7 @@
"description": "Disallow unused variables",
"recommended": true,
"fixable": false,
"hasSuggestions": false
"hasSuggestions": true
},
{
"name": "no-use-before-define",
Expand Down Expand Up @@ -488,7 +488,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,
"hasSuggestions": false
Expand Down Expand Up @@ -943,7 +943,7 @@
},
{
"name": "no-param-reassign",
"description": "Disallow reassigning `function` parameters",
"description": "Disallow reassigning function parameters",
"recommended": false,
"fixable": false,
"hasSuggestions": false
Expand Down Expand Up @@ -1020,7 +1020,7 @@
},
{
"name": "no-script-url",
"description": "Disallow `javascript:` urls",
"description": "Disallow `javascript:` URLs",
"recommended": false,
"fixable": false,
"hasSuggestions": false
Expand Down Expand Up @@ -1258,7 +1258,7 @@
},
{
"name": "prefer-object-spread",
"description": "Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead",
"description": "Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead",
"recommended": false,
"fixable": true,
"hasSuggestions": false
Expand Down Expand Up @@ -1314,7 +1314,7 @@
},
{
"name": "require-unicode-regexp",
"description": "Enforce the use of `u` or `v` flag on RegExp",
"description": "Enforce the use of `u` or `v` flag on regular expressions",
"recommended": false,
"fixable": false,
"hasSuggestions": true
Expand Down
3 changes: 2 additions & 1 deletion docs/src/_data/rules_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,8 @@
"description": "Disallow unused variables",
"recommended": true,
"url": "https://eslint.org/docs/latest/rules/no-unused-vars"
}
},
"hasSuggestions": true
},
"no-use-before-define": {
"type": "problem",
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.16.0",
"version": "9.17.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 Nov 29 2024 21:30:46 GMT+0000 (Coordinated Universal Time)
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Fri Dec 13 2024 21:28:30 GMT+0000 (Coordinated Universal Time)
</div>
</div>
<table>
Expand Down
36 changes: 34 additions & 2 deletions docs/src/use/formatters/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,23 @@ Example output (formatted for easier reading):
"nodeType": "Identifier",
"messageId": "unusedVar",
"endLine": 1,
"endColumn": 16
"endColumn": 16,
"suggestions": [
{
"messageId": "removeVar",
"data": {
"varName": "addOne"
},
"fix": {
"range": [
0,
94
],
"text": ""
},
"desc": "Remove unused variable 'addOne'."
}
]
},
{
"ruleId": "use-isnan",
Expand Down Expand Up @@ -705,7 +721,23 @@ Example output (formatted for easier reading):
"nodeType": "Identifier",
"messageId": "unusedVar",
"endLine": 1,
"endColumn": 16
"endColumn": 16,
"suggestions": [
{
"messageId": "removeVar",
"data": {
"varName": "addOne"
},
"fix": {
"range": [
0,
94
],
"text": ""
},
"desc": "Remove unused variable 'addOne'."
}
]
},
{
"ruleId": "use-isnan",
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.16.0",
"version": "9.17.0",
"author": "Nicholas C. Zakas <[email protected]>",
"description": "An AST-based pattern checker for JavaScript.",
"type": "commonjs",
Expand Down

0 comments on commit 90c1db9

Please sign in to comment.