-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
38 lines (37 loc) · 1.19 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
sourceType: 'module'
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unused-vars': [ 'warn', {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
argsIgnorePattern: '^_'
}],
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/explicit-module-boundary-types': [ 'error', { 'allowArgumentsExplicitlyTypedAsAny': true } ],
'arrow-spacing': 'error',
'no-multi-spaces': [ 'error', { ignoreEOLComments: true }],
'no-multiple-empty-lines': [ 'error', { 'max': 1 } ],
'object-shorthand': 'error',
'quotes': [ 'error', 'single', { 'allowTemplateLiterals': true } ],
'space-before-function-paren': [ 'error', { anonymous: 'always', named: 'never' } ],
'semi': 'error',
'spaced-comment': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'space-before-blocks': 'error',
},
env: {
browser: true,
}
};