update eslint to omit blank line between members

This commit is contained in:
wancat committed 2024-02-06 09:31:20 +08:00
1 parent e91774fe3b
commit 2a542302bc
5 files changed
+21 -5

No files matched your search

+13
View File
@@ -40,6 +40,11 @@ module.exports = {
'prettier/prettier': ['error', { endOfLine: 'auto', semi: false }],
'import/prefer-default-export': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true },
],
'@typescript-eslint/explicit-module-boundary-types': 'off',
@@ -55,4 +60,12 @@ module.exports = {
},
],
},
overrides: [
{
files: ['**/tests/**/*.js', '**/tests/**/*.ts'], // Adjust the pattern to match your test files
rules: {
'import/extensions': 'off', // Turn off the rule for test files
},
},
],
}