Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90c1db9

Browse files
author
Jenkins
committed
9.17.0
1 parent755512d commit90c1db9

File tree

7 files changed

+47
-14
lines changed

7 files changed

+47
-14
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.16.0",
4+
"version":"9.17.0",
55
"description":"",
66
"main":"index.js",
77
"keywords": [],

‎docs/src/_data/rules.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
{
1919
"name":"for-direction",
20-
"description":"Enforce\"for\" loop update clause moving the counter in the right direction",
20+
"description":"Enforce`for` loop update clause moving the counter in the right direction",
2121
"recommended":true,
2222
"fixable":false,
2323
"hasSuggestions":false
@@ -363,7 +363,7 @@
363363
"description":"Disallow unused variables",
364364
"recommended":true,
365365
"fixable":false,
366-
"hasSuggestions":false
366+
"hasSuggestions":true
367367
},
368368
{
369369
"name":"no-use-before-define",
@@ -488,7 +488,7 @@
488488
},
489489
{
490490
"name":"default-case-last",
491-
"description":"Enforce default clauses in switch statements to be last",
491+
"description":"Enforce`default` clauses in switch statements to be last",
492492
"recommended":false,
493493
"fixable":false,
494494
"hasSuggestions":false
@@ -943,7 +943,7 @@
943943
},
944944
{
945945
"name":"no-param-reassign",
946-
"description":"Disallow reassigning`function` parameters",
946+
"description":"Disallow reassigning function parameters",
947947
"recommended":false,
948948
"fixable":false,
949949
"hasSuggestions":false
@@ -1020,7 +1020,7 @@
10201020
},
10211021
{
10221022
"name":"no-script-url",
1023-
"description":"Disallow `#",
1023+
"description":"Disallow `#",
10241024
"recommended":false,
10251025
"fixable":false,
10261026
"hasSuggestions":false
@@ -1258,7 +1258,7 @@
12581258
},
12591259
{
12601260
"name":"prefer-object-spread",
1261-
"description":"Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead",
1261+
"description":"Disallow using`Object.assign` with an object literal as the first argument and prefer the use of object spread instead",
12621262
"recommended":false,
12631263
"fixable":true,
12641264
"hasSuggestions":false
@@ -1314,7 +1314,7 @@
13141314
},
13151315
{
13161316
"name":"require-unicode-regexp",
1317-
"description":"Enforce the use of `u` or `v` flag onRegExp",
1317+
"description":"Enforce the use of `u` or `v` flag onregular expressions",
13181318
"recommended":false,
13191319
"fixable":false,
13201320
"hasSuggestions":true

‎docs/src/_data/rules_meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,8 @@
22702270
"description":"Disallow unused variables",
22712271
"recommended":true,
22722272
"url":"https://eslint.org/docs/latest/rules/no-unused-vars"
2273-
}
2273+
},
2274+
"hasSuggestions":true
22742275
},
22752276
"no-use-before-define": {
22762277
"type":"problem",

‎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.16.0",
9+
"version":"9.17.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
<divid="overview"class="bg-2">
119119
<h1>ESLint Report</h1>
120120
<div>
121-
<span>8 problems (4 errors, 4 warnings)</span> - Generated on FriNov 29 2024 21:30:46 GMT+0000 (Coordinated Universal Time)
121+
<span>8 problems (4 errors, 4 warnings)</span> - Generated on FriDec 13 2024 21:28:30 GMT+0000 (Coordinated Universal Time)
122122
</div>
123123
</div>
124124
<table>

‎docs/src/use/formatters/index.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,23 @@ Example output (formatted for easier reading):
8989
"nodeType":"Identifier",
9090
"messageId":"unusedVar",
9191
"endLine":1,
92-
"endColumn":16
92+
"endColumn":16,
93+
"suggestions": [
94+
{
95+
"messageId":"removeVar",
96+
"data": {
97+
"varName":"addOne"
98+
},
99+
"fix": {
100+
"range": [
101+
0,
102+
94
103+
],
104+
"text":""
105+
},
106+
"desc":"Remove unused variable 'addOne'."
107+
}
108+
]
93109
},
94110
{
95111
"ruleId":"use-isnan",
@@ -705,7 +721,23 @@ Example output (formatted for easier reading):
705721
"nodeType":"Identifier",
706722
"messageId":"unusedVar",
707723
"endLine":1,
708-
"endColumn":16
724+
"endColumn":16,
725+
"suggestions": [
726+
{
727+
"messageId":"removeVar",
728+
"data": {
729+
"varName":"addOne"
730+
},
731+
"fix": {
732+
"range": [
733+
0,
734+
94
735+
],
736+
"text":""
737+
},
738+
"desc":"Remove unused variable 'addOne'."
739+
}
740+
]
709741
},
710742
{
711743
"ruleId":"use-isnan",

‎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.16.0",
3+
"version":"9.17.0",
44
"author":"Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
55
"description":"An AST-based pattern checker for JavaScript.",
66
"type":"commonjs",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp