Skip to content

Commit

Permalink
9.0.0-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Feb 9, 2024
1 parent 1bbc495 commit 428dbdb
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
@@ -1,7 +1,7 @@
{
"name": "docs-eslint",
"private": true,
"version": "9.0.0-alpha.2",
"version": "9.0.0-beta.0",
"description": "",
"main": "index.js",
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_data/rules.json
Expand Up @@ -398,7 +398,7 @@
"description": "Require calls to `isNaN()` when checking for `NaN`",
"recommended": true,
"fixable": false,
"hasSuggestions": false
"hasSuggestions": true
},
{
"name": "valid-typeof",
Expand Down
1 change: 1 addition & 0 deletions docs/src/_data/rules_meta.json
Expand Up @@ -2594,6 +2594,7 @@
"fixable": "whitespace"
},
"use-isnan": {
"hasSuggestions": true,
"type": "problem",
"docs": {
"description": "Require calls to `isNaN()` when checking for `NaN`",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/use/formatters/html-formatter-example.html
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 Jan 26 2024 20:36:42 GMT+0000 (Coordinated Universal Time)
<span>8 problems (4 errors, 4 warnings)</span> - Generated on Fri Feb 09 2024 23:53:44 GMT+0000 (Coordinated Universal Time)
</div>
</div>
<table>
Expand Down
52 changes: 50 additions & 2 deletions docs/src/use/formatters/index.md
Expand Up @@ -100,7 +100,31 @@ Example output (formatted for easier reading):
"nodeType": "BinaryExpression",
"messageId": "comparisonWithNaN",
"endLine": 2,
"endColumn": 17
"endColumn": 17,
"suggestions": [
{
"messageId": "replaceWithIsNaN",
"fix": {
"range": [
29,
37
],
"text": "!Number.isNaN(i)"
},
"desc": "Replace with Number.isNaN."
},
{
"messageId": "replaceWithCastingAndIsNaN",
"fix": {
"range": [
29,
37
],
"text": "!Number.isNaN(Number(i))"
},
"desc": "Replace with Number.isNaN cast to a Number."
}
]
},
{
"ruleId": "space-unary-ops",
Expand Down Expand Up @@ -684,7 +708,31 @@ Example output (formatted for easier reading):
"nodeType": "BinaryExpression",
"messageId": "comparisonWithNaN",
"endLine": 2,
"endColumn": 17
"endColumn": 17,
"suggestions": [
{
"messageId": "replaceWithIsNaN",
"fix": {
"range": [
29,
37
],
"text": "!Number.isNaN(i)"
},
"desc": "Replace with Number.isNaN."
},
{
"messageId": "replaceWithCastingAndIsNaN",
"fix": {
"range": [
29,
37
],
"text": "!Number.isNaN(Number(i))"
},
"desc": "Replace with Number.isNaN cast to a Number."
}
]
},
{
"ruleId": "space-unary-ops",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "9.0.0-alpha.2",
"version": "9.0.0-beta.0",
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
"description": "An AST-based pattern checker for JavaScript.",
"bin": {
Expand Down

0 comments on commit 428dbdb

Please sign in to comment.