forked from openmobilityfoundation/mds-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (56 loc) · 1.76 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
49
50
51
52
53
54
55
56
module.exports = {
env: {
node: true,
es6: true,
mocha: true
},
plugins: ['import', 'prettier', '@typescript-eslint', 'promise'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: 'tsconfig.settings.json'
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
'prettier/@typescript-eslint'
],
rules: {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
'array-callback-return': 'off',
'consistent-return': 'off',
eqeqeq: 'error',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'max-classes-per-file': 'off',
'no-console': 'warn',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'no-var': 'error',
'prettier/prettier': 'warn',
radix: 'off',
'promise/always-return': 'error',
'promise/no-return-wrap': 'error',
'promise/param-names': 'error',
'promise/catch-or-return': 'error',
'promise/no-native': 'off',
'promise/no-nesting': 'error',
'promise/no-promise-in-callback': 'error',
'promise/no-callback-in-promise': 'error',
'promise/avoid-new': 'error',
'promise/no-new-statics': 'error',
'promise/no-return-in-finally': 'error',
'promise/valid-params': 'error',
'promise/prefer-await-to-then': 'error',
'promise/prefer-await-to-callbacks': 'error'
}
}