forked from Brandawg93/homebridge-nest-cam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
26 lines (26 loc) · 979 Bytes
/
.eslintrc.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
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'brace-style': ['warn'],
curly: ['warn', 'all'],
'dot-notation': 'warn',
eqeqeq: 'warn',
'linebreak-style': ['warn', 'unix'],
'lines-between-class-members': ['warn', 'always', { exceptAfterSingleLine: true }],
'no-await-in-loop': ['warn'],
'prefer-arrow-callback': ['warn'],
semi: ['warn', 'always'],
'@typescript-eslint/explicit-function-return-type': ['warn'],
'@typescript-eslint/array-type': ['error', { default: 'generic' }],
'@typescript-eslint/camelcase': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/explicit-module-boundary-types': ['off'],
'@typescript-eslint/no-this-alias': ['off'],
'@typescript-eslint/no-non-null-assertion': ['warn'],
},
};