forked from bskydive/rxjs-aj4vwd-stackblitz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (61 loc) · 1.74 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
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "standard",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"linebreak-style": ["warn", "unix"],
"quotes": ["warn", "single"],
"padded-blocks": "off",
"space-before-blocks": "warn",
"no-multi-spaces": "warn",
"space-before-function-paren": "off",
"import/no-duplicates": "warn", // весь импорт из одного файла в одной строке
// стиль
"no-console": "warn",
"eqeqeq": "warn", // ===
"no-shadow": "error", // https://eslint.org/docs/rules/no-shadow
"no-multi-assign": "error", // https://eslint.org/docs/rules/no-multi-assign
"no-confusing-arrow": "warn", // https://eslint.org/docs/rules/no-confusing-arrow
// дублирует tslint
"no-cond-assign": "error",
"block-spacing": "warn",
"trailing-comma": "off",
"object-curly-spacing": "warn",
// глючит
"object-curly-even-spacing": "off",
"indent": "off",
"semi": "off",
"no-tabs": "off",
"no-undef": "off", // не понимает angular modules
"no-unused-vars": "off",
"no-multiple-empty-lines": "off",
"spaced-comment": "off",
"no-trailing-spaces": "off",
"comma-dangle": "off",
"no-useless-constructor": "off",
'handle-callback-err': 'off',
"no-dupe-args": 'error',
"no-dupe-class-members": 'error',
"no-dupe-keys": 'error',
'lines-between-class-members': 'warn',
'eol-last': 'warn',
'comma-spacing': 'warn',
'prefer-const': 'warn',
'arrow-spacing': 'warn',
'key-spacing': 'warn',
'space-in-parens': 'warn',
'eol-last':'warn',
'space-infix-ops': 'warn',
}
};