-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
39 lines (39 loc) · 1.13 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
module.exports = {
root: true,
env: {
browser: true,
amd: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
plugins: [
'@typescript-eslint',
],
rules: {
'@typescript-eslint/restrict-template-expressions': [0],
'@typescript-eslint/semi': [0],
'@typescript-eslint/space-before-function-paren': [0],
'@typescript-eslint/strict-boolean-expressions': [0],
'@typescript-eslint/quotes': [1],
'@typescript-eslint/explicit-function-return-type': [0],
'@typescript-eslint/prefer-nullish-coalescing': [1, { ignoreMixedLogicalExpressions: true }],
'comma-dangle': [1, 'always-multiline'],
'key-spacing': [0, { 'align': 'colon', 'mode': 'minimum' }],
'no-floating-decimal': 1,
'no-multi-spaces': [1, {
exceptions: {
'AssignmentExpression': true,
'CallExpression': true,
'ConditionalExpression': true,
'ImportDeclaration': true,
'Property': true,
'VariableDeclarator': true,
}
}],
'padded-blocks': [0],
'space-in-parens': [0],
},
extends: 'standard-with-typescript',
}