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
All of the above methods also work for plugin rules. For example, to disable `eslint-plugin-example`'s `rule-name` rule, combine the plugin's name (`example`) and the rule's name (`rule-name`) into `example/rule-name`:
@@ -214,6 +221,12 @@ Configuration comments can include descriptions to explain why the comment is ne
214
221
```js
215
222
// eslint-disable-next-line no-console -- Here's a description about why this configuration is necessary.
216
223
console.log('hello');
224
+
225
+
/* eslint-disable-next-line no-console --
226
+
* Here's a very long description about why this configuration is necessary
227
+
* along with some additional information
228
+
**/
229
+
console.log('hello');
217
230
```
218
231
219
232
**Note:** Comments that disable warnings for a portion of a file tell ESLint not to report rule violations for the disabled code. ESLint still parses the entire file, however, so disabled code still needs to be syntactically valid JavaScript.
0 commit comments