forked from cap-js/cds-types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
55 lines (53 loc) · 1.44 KB
/
eslint.config.mjs
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
43
44
45
46
47
48
49
50
51
52
53
54
55
// @ts-check
import eslintjs from '@eslint/js'
import globals from 'globals'
import eslintplugin from '@stylistic/eslint-plugin-ts'
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslintjs.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [
'**/test/integration/**',
'node_modules/**',
'dist/**',
'test/**'
],
},
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: { ...globals.node }
},
files: ['**/*.ts'],
plugins: { '@stylistic/ts': eslintplugin },
rules: {
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'no-multiple-empty-lines': ['error'],
'@stylistic/ts/brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'@stylistic/ts/indent': ['error', 2],
'@stylistic/ts/member-delimiter-style': ['error', {
'multiline': {
'delimiter': 'comma'
},
'singleline': {
'delimiter': 'comma'
},
'multilineDetection': 'brackets',
'overrides': {
'interface': {
'multiline': {
'delimiter': 'none'
}
}
}
}],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
'@typescript-eslint/no-empty-object-type': 'off'
}
}
)