forked from ethercap/ledap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
68 lines (67 loc) · 2.21 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
es6: true,
browser: true,
commonjs: true,
'shared-node-browser': true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
globals: {
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
rules: {
'no-constant-condition': [2, {checkLoops: false}],
'no-console': 1,
'no-empty': [2, {allowEmptyCatch: true}],
'no-prototype-builtins': 0,
'default-case': 2,
'dot-notation': 0,
'eqeqeq': [2, 'smart'],
'no-else-return': [2, {allowElseIf: false}],
'no-extra-bind': 2,
'no-unused-vars': 0,
'array-bracket-spacing': 2,
'block-spacing': [2, 'never'],
'brace-style': [2, '1tbs', {allowSingleLine: true}],
'comma-dangle': [2, 'only-multiline'],
'comma-spacing': 2,
'comma-style': 2,
'implicit-arrow-linebreak': 2,
'key-spacing': 2,
'keyword-spacing': 2,
'no-lonely-if': 2,
'object-curly-spacing': 2,
'operator-assignment': 2,
'quote-props': [2, 'as-needed'],
'quotes': [2, 'single', {avoidEscape: true, allowTemplateLiterals: true}],
'semi': 2,
'semi-spacing': 2,
'semi-style': 2,
'space-before-blocks': 2,
'space-before-function-paren': [2, {named: 'never'}],
'space-infix-ops': 2,
'space-unary-ops': 2,
'spaced-comment': 2,
'switch-colon-spacing': 2,
'arrow-body-style': 2,
'arrow-parens': [2, 'as-needed'],
'arrow-spacing': 2,
'no-var': 2,
'object-shorthand': 1,
'prefer-arrow-callback': 2,
'@typescript-eslint/no-unused-vars': [1, {args: 'none'}],
'@typescript-eslint/interface-name-prefix': [2, 'always'],
'@typescript-eslint/explicit-member-accessibility': [2, {overrides: {accessors: 'off', constructors: 'off'}}],
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-explicit-any': 0,
},
};