You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/command-line-interface.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ Miscellaneous:
81
81
--init Run config initialization wizard - default: false
82
82
--env-info Output execution environment information - default: false
83
83
--no-error-on-unmatched-pattern Prevent errors when pattern is unmatched - default: false
84
+
--exit-on-fatal-error Exit with exit code 2 in case of fatal error - default: false
84
85
--debug Output debugging information
85
86
-h, --help Show help
86
87
-v, --version Output the version number
@@ -467,6 +468,10 @@ This option outputs information about the execution environment, including the v
467
468
468
469
This option prevents errors when a quoted glob pattern or `--ext` is unmatched. This will not prevent errors when your shell can't match a glob.
469
470
471
+
#### `--exit-on-fatal-error`
472
+
473
+
This option causes ESLint to exit with exit code 2 if one or more fatal parsing errors occur. Without this option, fatal parsing errors are reported as rule violations.
474
+
470
475
#### `--debug`
471
476
472
477
This option outputs debugging information to the console. This information is useful when you're seeing a problem and having a hard time pinpointing it. The ESLint team may ask for this debugging information to help solve bugs.
0 commit comments