-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathformat.eslint.config.js
More file actions
42 lines (41 loc) · 1.02 KB
/
format.eslint.config.js
File metadata and controls
42 lines (41 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: CC0-1.0
// SPDX-FileCopyrightText: No rights reserved
import stylistic from '@stylistic/eslint-plugin';
export default [
{
plugins: {
'@stylistic': stylistic,
'@typescript-eslint': {
rules: {
// Mute eslint-disable-next-line comments
'no-unsafe-assignment': { create: () => ({}) },
'no-unsafe-call': { create: () => ({}) },
'no-await-in-loop': { create: () => ({}) },
},
},
},
rules: {
'@stylistic/lines-between-class-members': [
'error',
{
enforce: [
{ blankLine: 'always', prev: '*', next: 'method' },
{ blankLine: 'always', prev: 'method', next: '*' },
],
},
],
'@stylistic/padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: ['class', 'export', 'function'] },
{ blankLine: 'always', prev: ['class', 'export', 'function'], next: '*' },
],
'@stylistic/lines-around-comment': [
'error',
{
beforeLineComment: true,
allowBlockStart: true,
},
],
},
},
];