Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking: description in directive comments (refs eslint/rfcs#33) #12699

Merged
merged 10 commits into from
Jan 17, 2020
Prev Previous commit
Next Next commit
Update docs/user-guide/configuring.md
Co-Authored-By: Kai Cataldo <kai@kaicataldo.com>
  • Loading branch information
mysticatea and kaicataldo authored Dec 24, 2019
commit 057befe355840425beeffb005153569040978705
2 changes: 1 addition & 1 deletion docs/user-guide/configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ foo(); // eslint-disable-line example/rule-name
foo(); /* eslint-disable-line example/rule-name */
```

If the part preceded by `--` exists in the inline comments, ESLint ignores the part. The `--` can be longer than 2. For examples:
Configuration comments can include descriptions to explain why the comment is necessary. The description must occur after the configuration is separated from the comment by at two or more consecutive `-` characters. For example:
mysticatea marked this conversation as resolved.
Show resolved Hide resolved

```js
// eslint-disable-next-line no-console -- Here's a description about why this configuration is necessary.
Expand Down