-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
37 lines (37 loc) · 962 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
36
37
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ["@typescript-eslint"],
extends: 'eslint:recommended',
parserOptions: {
"sourceType": "module",
},
globals: {
Promise: true,
Buffer: true,
fetch: true,
require: true,
process: true,
module: true,
setTimeout: true,
__dirname: true,
},
rules: {
'space-before-function-paren': ['error', 'never'],
semi: ['error', 'never'],
'no-underscore-dangle': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// trailing comma
'comma-dangle': ['error', 'always-multiline'],
quotes: ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
camelcase: ['error', {'properties': 'always'}]
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': ['error', { args: 'none' }]
}
}
]
}