Skip to content

Commit

Permalink
feat(eslint): enable @stylistic/lines-between-class-members
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Oct 23, 2024
1 parent 5754882 commit ca70550
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions cfg/eslint-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,5 +474,6 @@ module.exports = {
{ blankLine: 'always', prev: 'class', next: '*' },
{ blankLine: 'always', prev: '*', next: 'class' },
],
'@stylistic/lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }],
},
}
2 changes: 0 additions & 2 deletions cfg/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ function getConfig() {
...globals.node,
...globals.jest,
NodeJS: 'readonly',
// testcafe
fixture: 'readonly',
},
// parser: tseslint.parser,
parserOptions: {
Expand Down
8 changes: 8 additions & 0 deletions src/test/cfg/eslint.config.dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
"@babel/semi": [
0
],
"@stylistic/lines-between-class-members": [
2,
"always",
{
"exceptAfterOverload": true,
"exceptAfterSingleLine": true
}
],
"@stylistic/padding-line-between-statements": [
2,
{
Expand Down

0 comments on commit ca70550

Please sign in to comment.