forked from MrBartusek/MeteoalarmCard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
26 lines (26 loc) · 848 Bytes
/
.eslintrc.cjs
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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
extends: [
'plugin:@typescript-eslint/recommended'
],
rules: {
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
'quotes': ['error', 'single'],
'no-trailing-spaces': ['error'],
'eol-last': ['error', 'always'],
'curly': ['error', 'multi-line', 'consistent'],
'indent': ['error', 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TemplateLiteral *'] }],
'semi': ['error', 'always'],
'no-multiple-empty-lines': ['error', { 'max': 1}],
'comma-dangle': ['error', 'never'],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'no-console': 'error'
}
};