forked from tibber/com.tibber.athom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (45 loc) · 1.36 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'prettier/prettier': 'error',
// airbnb overrides ------------------------------------
curly: ['error', 'multi-or-nest', 'consistent'],
'no-console': 'off',
'no-continue': 'off',
// let's not disallow for...of loops :/
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
// import (part of airbnb) overrides ------------------
'import/no-import-module-exports': 'off',
'import/prefer-default-export': 'off',
// @typescript-eslint/recommended overrides -----------
'@typescript-eslint/lines-between-class-members': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': [
'error',
{ checksVoidReturn: false },
],
},
};