-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (30 loc) · 872 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
27
28
29
30
31
32
33
34
35
module.exports = {
root: true,
env: {
node: true,
},
parser: '@typescript-eslint/parser',
extends: [
// 'plugin:@typescript-eslint/recommended',
'airbnb-typescript/base',
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
/* make sure files are in "include" in tsconfig.json */
project: __dirname + '/tsconfig.json',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
/* 02/12/2020 */
'max-len': 0,
'object-curly-newline': 0,
'@typescript-eslint/no-explicit-any': 0,
'template-curly-spacing': ['error', 'always'],
'import/prefer-default-export': 0,
'object-curly-spacing': ['error', 'always'],
// 'padded-blocks': ["error", "always"],
'padded-blocks': 0,
},
};