-
Notifications
You must be signed in to change notification settings - Fork 390
Expand file tree
/
Copy patheslint.config.mjs
More file actions
61 lines (59 loc) · 1.67 KB
/
eslint.config.mjs
File metadata and controls
61 lines (59 loc) · 1.67 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import typescriptParser from '@typescript-eslint/parser';
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
import stylisticPlugin from '@stylistic/eslint-plugin';
export default [
{
ignores: ['**/node_modules/**'],
},
{
files: ['src/**/*.ts'],
languageOptions: {
parser: typescriptParser,
sourceType: 'module',
},
plugins: {
'@typescript-eslint': typescriptPlugin,
'@stylistic': stylisticPlugin,
},
rules: {
'@stylistic/member-delimiter-style': [
'warn',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'semi': ['warn', 'always'],
'constructor-super': 'warn',
'curly': 'warn',
'eqeqeq': ['warn', 'always'],
'no-async-promise-executor': 'warn',
'no-buffer-constructor': 'warn',
'no-caller': 'warn',
'no-debugger': 'warn',
'no-duplicate-case': 'warn',
'no-duplicate-imports': 'warn',
'no-eval': 'warn',
'no-extra-semi': 'warn',
'no-new-wrappers': 'warn',
'no-redeclare': 'off',
'no-sparse-arrays': 'warn',
'no-throw-literal': 'warn',
'no-unsafe-finally': 'warn',
'no-unused-labels': 'warn',
'@typescript-eslint/no-redeclare': 'warn',
'no-var': 'warn',
'no-unused-expressions': ['warn', { allowTernary: true }],
},
},
];