-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.config.js
38 lines (38 loc) · 1.22 KB
/
eslint.config.js
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
module.exports = [
{
'name': 'root',
'files': [
'src/**/*.ts'
],
'languageOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
'parser': require('@typescript-eslint/parser'),
},
'plugins': {
'@stylistic': require('@stylistic/eslint-plugin'),
'@typescript': require('@typescript-eslint/eslint-plugin'),
},
'rules': {
'no-throw-literal': 'error',
'semi': 'error',
'no-extra-semi': 'error',
'eqeqeq': 'error',
'prefer-const': 'warn',
'curly': 'warn',
'@typescript/naming-convention': [
'warn',
{
'selector': 'import',
'format': [ 'camelCase', 'PascalCase' ]
}
],
'@stylistic/indent': ['warn', 4],
'@stylistic/quotes': ['warn', 'single'],
'@stylistic/brace-style': ['warn', '1tbs'],
'@stylistic/curly-newline': ['warn', {'minElements': 1, 'consistent': true}],
'@stylistic/keyword-spacing': 'warn',
'@stylistic/space-before-blocks': 'warn',
},
}
];