Skip to content

Commit

Permalink
add rule @typescript/lines-around-comment (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttionya authored Mar 20, 2023
1 parent 130bf88 commit 1a7be70
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 95 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ Example ESLint configuration:

### [lines-around-comment]

(The following applies to [@typescript-eslint/lines-around-comment] as well.)

**This rule can be used with certain options.**

This rule requires empty lines before and/or after comments. Prettier preserves blank lines, with two exceptions:
Expand Down Expand Up @@ -685,6 +687,7 @@ When you’re done, run `npm test` to verify that you got it all right. It runs

[@babel/eslint-plugin]: https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin
[@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint
[@typescript-eslint/lines-around-comment]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/lines-around-comment.md
[@typescript-eslint/quotes]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md
[arrow-body-style]: https://eslint.org/docs/rules/arrow-body-style
[babel/quotes]: https://github.com/babel/eslint-plugin-babel#rules
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
"no-tabs": 0,
"no-unexpected-multiline": 0,
"quotes": 0,
"@typescript-eslint/lines-around-comment": 0,
"@typescript-eslint/quotes": 0,
"babel/quotes": 0,
"vue/html-self-closing": 0,
Expand Down
Loading

0 comments on commit 1a7be70

Please sign in to comment.