From ca705507a5f72c8c3b8a30baa5420507e8b1d0bd Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Wed, 23 Oct 2024 21:30:35 +0200 Subject: [PATCH] feat(eslint): enable `@stylistic/lines-between-class-members` --- cfg/eslint-rules.js | 1 + cfg/eslint.config.js | 2 -- src/test/cfg/eslint.config.dump.json | 8 ++++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cfg/eslint-rules.js b/cfg/eslint-rules.js index dc6bc0c..ca58fa4 100644 --- a/cfg/eslint-rules.js +++ b/cfg/eslint-rules.js @@ -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 }], }, } diff --git a/cfg/eslint.config.js b/cfg/eslint.config.js index a574b54..e31fd6f 100644 --- a/cfg/eslint.config.js +++ b/cfg/eslint.config.js @@ -67,8 +67,6 @@ function getConfig() { ...globals.node, ...globals.jest, NodeJS: 'readonly', - // testcafe - fixture: 'readonly', }, // parser: tseslint.parser, parserOptions: { diff --git a/src/test/cfg/eslint.config.dump.json b/src/test/cfg/eslint.config.dump.json index a9a8a14..687c43b 100644 --- a/src/test/cfg/eslint.config.dump.json +++ b/src/test/cfg/eslint.config.dump.json @@ -35,6 +35,14 @@ "@babel/semi": [ 0 ], + "@stylistic/lines-between-class-members": [ + 2, + "always", + { + "exceptAfterOverload": true, + "exceptAfterSingleLine": true + } + ], "@stylistic/padding-line-between-statements": [ 2, {