-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 1.05 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
module.exports = {
root: true,
env: {
node: true,
es6: true
},
parserOptions: {
'ecmaVersion': 9,
parser: 'babel-eslint',
sourceType: 'module'
},
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
],
rules: {
'semi': ['error', 'never'],
'no-mixed-spaces-and-tabs': 'error',
'object-curly-spacing': ['error', 'always'],
'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
'rest-spread-spacing': ['error', 'never'],
'arrow-spacing': ['error', { 'before': true, 'after': true }],
'func-call-spacing': ['error', 'never'],
'no-multi-spaces': 'error',
'no-unused-vars': ['error', { 'vars': 'all', 'args': 'none', 'ignoreRestSiblings': true }],
'@typescript-eslint/indent': ['error', 2],
'camelcase': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
}
}