File tree Expand file tree Collapse file tree 6 files changed +10
-12
lines changed Expand file tree Collapse file tree 6 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " docs-eslint" ,
3
3
"private" : true ,
4
- "version" : " 9.17 .0" ,
4
+ "version" : " 9.18 .0" ,
5
5
"description" : " " ,
6
6
"main" : " index.js" ,
7
7
"keywords" : [],
Original file line number Diff line number Diff line change 557
557
},
558
558
{
559
559
"name" : " default-case-last" ,
560
- "description" : " Enforce `default` clauses in switch statements to be last" ,
560
+ "description" : " Enforce `default` clauses in ` switch` statements to be last" ,
561
561
"recommended" : false ,
562
562
"fixable" : false ,
563
563
"frozen" : false ,
1517
1517
},
1518
1518
{
1519
1519
"name" : " sort-imports" ,
1520
- "description" : " Enforce sorted import declarations within modules" ,
1520
+ "description" : " Enforce sorted ` import` declarations within modules" ,
1521
1521
"recommended" : false ,
1522
1522
"fixable" : true ,
1523
1523
"frozen" : true ,
Original file line number Diff line number Diff line change 6
6
"path" : " /docs/head/"
7
7
},
8
8
{
9
- "version" : " 9.17 .0" ,
9
+ "version" : " 9.18 .0" ,
10
10
"branch" : " latest" ,
11
11
"path" : " /docs/latest/"
12
12
},
Original file line number Diff line number Diff line change 118
118
< div id ="overview " class ="bg-2 ">
119
119
< h1 > ESLint Report</ h1 >
120
120
< div >
121
- < span > 8 problems (4 errors, 4 warnings)</ span > - Generated on Fri Dec 13 2024 21:28:30 GMT+0000 (Coordinated Universal Time)
121
+ < span > 8 problems (4 errors, 4 warnings)</ span > - Generated on Fri Jan 10 2025 21:45:11 GMT+0000 (Coordinated Universal Time)
122
122
</ div >
123
123
</ div >
124
124
< table >
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ eleventyNavigation:
8
8
edit_link : https://github.com/eslint/eslint/edit/main/templates/formatter-examples.md.ejs
9
9
---
10
10
11
- {%- from 'components/npx_tabs.macro.html' import npx_tabs %}
12
-
13
11
ESLint comes with several built-in formatters to control the appearance of the linting results, and supports third-party formatters as well.
14
12
15
13
You can specify a formatter using the ` --format ` or ` -f ` flag in the CLI. For example, ` --format json ` uses the ` json ` formatter.
@@ -54,10 +52,9 @@ function addOne(i) {
54
52
55
53
Tests the formatters with the CLI:
56
54
57
- {{ npx_tabs({
58
- package: "eslint",
59
- args: [ "--format", "<Add formatter here >", "fullOfProblems.js"]
60
- }) }}
55
+ ``` shell
56
+ npx eslint --format < Add formatter here> fullOfProblems.js
57
+ ```
61
58
62
59
## Built-In Formatter Options
63
60
@@ -268,6 +265,7 @@ Example output (formatted for easier reading):
268
265
"docs" : {
269
266
"description" : " Disallow `else` blocks after `return` statements in `if` statements" ,
270
267
"recommended" : false ,
268
+ "frozen" : true ,
271
269
"url" : " https://eslint.org/docs/latest/rules/no-else-return"
272
270
},
273
271
"schema" : [
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint" ,
3
- "version" : " 9.17 .0" ,
3
+ "version" : " 9.18 .0" ,
4
4
"author" : " Nicholas C. Zakas <nicholas+npm@nczconsulting.com>" ,
5
5
"description" : " An AST-based pattern checker for JavaScript." ,
6
6
"type" : " commonjs" ,
You can’t perform that action at this time.
0 commit comments