@@ -78,26 +78,30 @@ or start with the recommended rule set:
78
78
79
79
<!-- begin auto-generated rules list -->
80
80
81
- ✅ Enabled in the ` recommended ` configuration.\
82
- 🔧 Automatically fixable by the [ ` --fix ` CLI option] ( https://eslint.org/docs/user-guide/command-line-interface#--fix ) .
83
-
84
- | Name | Description | ✅ | 🔧 |
85
- | :------------------------------------------------------------------- | :------------------------------------------------------------------------------------- | :- | :- |
86
- | [ always-return] ( docs/rules/always-return.md ) | Require returning inside each ` then() ` to create readable and reusable Promise chains. | ✅ | |
87
- | [ avoid-new] ( docs/rules/avoid-new.md ) | Disallow creating ` new ` promises outside of utility libs (use [ pify] [ ] instead). | | |
88
- | [ catch-or-return] ( docs/rules/catch-or-return.md ) | Enforce the use of ` catch() ` on un-returned promises. | ✅ | |
89
- | [ no-callback-in-promise] ( docs/rules/no-callback-in-promise.md ) | Disallow calling ` cb() ` inside of a ` then() ` (use [ nodeify] [ ] instead). | | |
90
- | [ no-multiple-resolved] ( docs/rules/no-multiple-resolved.md ) | Disallow creating new promises with paths that resolve multiple times. | | |
91
- | [ no-native] ( docs/rules/no-native.md ) | Require creating a ` Promise ` constructor before using it in an ES5 environment. | | |
92
- | [ no-nesting] ( docs/rules/no-nesting.md ) | Disallow nested ` then() ` or ` catch() ` statements. | | |
93
- | [ no-new-statics] ( docs/rules/no-new-statics.md ) | Disallow calling ` new ` on a Promise static method. | ✅ | 🔧 |
94
- | [ no-promise-in-callback] ( docs/rules/no-promise-in-callback.md ) | Disallow using promises inside of callbacks. | | |
95
- | [ no-return-in-finally] ( docs/rules/no-return-in-finally.md ) | Disallow return statements in ` finally() ` . | | |
96
- | [ no-return-wrap] ( docs/rules/no-return-wrap.md ) | Disallow wrapping values in ` Promise.resolve ` or ` Promise.reject ` when not needed. | ✅ | |
97
- | [ param-names] ( docs/rules/param-names.md ) | Enforce consistent param names and ordering when creating new promises. | ✅ | |
98
- | [ prefer-await-to-callbacks] ( docs/rules/prefer-await-to-callbacks.md ) | Prefer async/await to the callback pattern. | | |
99
- | [ prefer-await-to-then] ( docs/rules/prefer-await-to-then.md ) | Prefer ` await ` to ` then() ` /` catch() ` /` finally() ` for reading Promise values. | | |
100
- | [ valid-params] ( docs/rules/valid-params.md ) | Enforces the proper number of arguments are passed to Promise functions. | | |
81
+ 💼 Configurations enabled in.\
82
+ ⚠️ Configurations set to warn in.\
83
+ 🚫 Configurations disabled in.\
84
+ ✅ Set in the ` recommended ` configuration.\
85
+ 🔧 Automatically fixable by the
86
+ [ ` --fix ` CLI option] ( https://eslint.org/docs/user-guide/command-line-interface#--fix ) .
87
+
88
+ | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 |
89
+ | :------------------------------------------------------------------- | :------------------------------------------------------------------------------------- | :-- | :-- | :-- | :-- |
90
+ | [ always-return] ( docs/rules/always-return.md ) | Require returning inside each ` then() ` to create readable and reusable Promise chains. | ✅ | | | |
91
+ | [ avoid-new] ( docs/rules/avoid-new.md ) | Disallow creating ` new ` promises outside of utility libs (use [ pify] [ ] instead). | | | ✅ | |
92
+ | [ catch-or-return] ( docs/rules/catch-or-return.md ) | Enforce the use of ` catch() ` on un-returned promises. | ✅ | | | |
93
+ | [ no-callback-in-promise] ( docs/rules/no-callback-in-promise.md ) | Disallow calling ` cb() ` inside of a ` then() ` (use [ nodeify] [ ] instead). | | ✅ | | |
94
+ | [ no-multiple-resolved] ( docs/rules/no-multiple-resolved.md ) | Disallow creating new promises with paths that resolve multiple times. | | | | |
95
+ | [ no-native] ( docs/rules/no-native.md ) | Require creating a ` Promise ` constructor before using it in an ES5 environment. | | | ✅ | |
96
+ | [ no-nesting] ( docs/rules/no-nesting.md ) | Disallow nested ` then() ` or ` catch() ` statements. | | ✅ | | |
97
+ | [ no-new-statics] ( docs/rules/no-new-statics.md ) | Disallow calling ` new ` on a Promise static method. | ✅ | | | 🔧 |
98
+ | [ no-promise-in-callback] ( docs/rules/no-promise-in-callback.md ) | Disallow using promises inside of callbacks. | | ✅ | | |
99
+ | [ no-return-in-finally] ( docs/rules/no-return-in-finally.md ) | Disallow return statements in ` finally() ` . | | ✅ | | |
100
+ | [ no-return-wrap] ( docs/rules/no-return-wrap.md ) | Disallow wrapping values in ` Promise.resolve ` or ` Promise.reject ` when not needed. | ✅ | | | |
101
+ | [ param-names] ( docs/rules/param-names.md ) | Enforce consistent param names and ordering when creating new promises. | ✅ | | | |
102
+ | [ prefer-await-to-callbacks] ( docs/rules/prefer-await-to-callbacks.md ) | Prefer async/await to the callback pattern. | | | | |
103
+ | [ prefer-await-to-then] ( docs/rules/prefer-await-to-then.md ) | Prefer ` await ` to ` then() ` /` catch() ` /` finally() ` for reading Promise values. | | | | |
104
+ | [ valid-params] ( docs/rules/valid-params.md ) | Enforces the proper number of arguments are passed to Promise functions. | | ✅ | | |
101
105
102
106
<!-- end auto-generated rules list -->
103
107
0 commit comments