File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
crates/oxc_linter/src/rules/eslint Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub struct NoPlusplus {
31
31
declare_oxc_lint ! (
32
32
/// ### What it does
33
33
///
34
- /// Disallow the unary operators `++`` and `--`.
34
+ /// Disallow the unary operators `++` and `--`.
35
35
///
36
36
/// ### Why is this bad?
37
37
///
@@ -75,6 +75,21 @@ declare_oxc_lint!(
75
75
/// for (let i = 0; i < l; i += 1) {
76
76
/// doSomething(i);
77
77
/// }
78
+ ///
79
+ /// ### Options
80
+ ///
81
+ /// #### allowForLoopAfterthoughts
82
+ ///
83
+ /// `{ type: boolean, default: false }`
84
+ ///
85
+ /// Pass `"allowForLoopAfterthoughts": true` to allow `++` and `--` in for loop afterthoughts.
86
+ ///
87
+ /// Example:
88
+ /// ```json
89
+ /// "no-plusplus": [
90
+ /// "error",
91
+ /// { "allowForLoopAfterthoughts": true }
92
+ /// ]
78
93
/// ```
79
94
NoPlusplus ,
80
95
eslint,
You can’t perform that action at this time.
0 commit comments