-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
32 lines (32 loc) · 1017 Bytes
/
index.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
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
node: true,
commonjs: true,
es6: true
},
extends: [
'standard',
'plugin:@typescript-eslint/recommended'
],
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/no-this-alias': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unused-vars': 'error',
'comma-dangle': 0,
'complexity': ['error', { max: 10 }],
'import/named': 'error',
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'no-use-before-define': 0,
'no-var': ['error'],
'prefer-template': 'error',
'quote-props': ['error', 'consistent'],
'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
}
}