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 11{
22 "name" : " docs-eslint" ,
33 "private" : true ,
4- "version" : " 9.17 .0" ,
4+ "version" : " 9.18 .0" ,
55 "description" : " " ,
66 "main" : " index.js" ,
77 "keywords" : [],
Original file line number Diff line number Diff line change 557557 },
558558 {
559559 "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" ,
561561 "recommended" : false ,
562562 "fixable" : false ,
563563 "frozen" : false ,
15171517 },
15181518 {
15191519 "name" : " sort-imports" ,
1520- "description" : " Enforce sorted import declarations within modules" ,
1520+ "description" : " Enforce sorted ` import` declarations within modules" ,
15211521 "recommended" : false ,
15221522 "fixable" : true ,
15231523 "frozen" : true ,
Original file line number Diff line number Diff line change 66 "path" : " /docs/head/"
77 },
88 {
9- "version" : " 9.17 .0" ,
9+ "version" : " 9.18 .0" ,
1010 "branch" : " latest" ,
1111 "path" : " /docs/latest/"
1212 },
Original file line number Diff line number Diff line change 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 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)
122122 </ div >
123123 </ div >
124124 < table >
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ eleventyNavigation:
88edit_link : https://github.com/eslint/eslint/edit/main/templates/formatter-examples.md.ejs
99---
1010
11- {%- from 'components/npx_tabs.macro.html' import npx_tabs %}
12-
1311ESLint comes with several built-in formatters to control the appearance of the linting results, and supports third-party formatters as well.
1412
1513You 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) {
5452
5553Tests the formatters with the CLI:
5654
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+ ```
6158
6259## Built-In Formatter Options
6360
@@ -268,6 +265,7 @@ Example output (formatted for easier reading):
268265 "docs" : {
269266 "description" : " Disallow `else` blocks after `return` statements in `if` statements" ,
270267 "recommended" : false ,
268+ "frozen" : true ,
271269 "url" : " https://eslint.org/docs/latest/rules/no-else-return"
272270 },
273271 "schema" : [
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint" ,
3- "version" : " 9.17 .0" ,
3+ "version" : " 9.18 .0" ,
44 "author" : " Nicholas C. Zakas <nicholas+npm@nczconsulting.com>" ,
55 "description" : " An AST-based pattern checker for JavaScript." ,
66 "type" : " commonjs" ,
You can’t perform that action at this time.
0 commit comments