Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit a80dabe

Browse files
committed
space-return-throw-case ➡️ keyword-spacing
1 parent a6858ee commit a80dabe

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

rules/stylistic-issues.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ module.exports = {
5858
beforeColon: false,
5959
afterColon: true
6060
}],
61+
// require a space after return, throw, and case
62+
'keyword-spacing': [2, {
63+
before: true,
64+
after: true,
65+
overrides: {
66+
return: { after: true },
67+
throw: { after: true },
68+
case: { after: true }
69+
}
70+
}],
6171
// enforces empty lines around comments
6272
'lines-around-comment': IGNORE,
6373
// disallow mixed 'LF' and 'CRLF' as linebreaks
@@ -137,8 +147,6 @@ module.exports = {
137147
'space-in-parens': IGNORE,
138148
// require spaces around operators
139149
'space-infix-ops': ERROR,
140-
// require a space after return, throw, and case
141-
'space-return-throw-case': ERROR,
142150
// Require or disallow spaces before/after unary operators
143151
'space-unary-ops': IGNORE,
144152
// require or disallow a space immediately following the // or /* in a comment

0 commit comments

Comments
 (0)