-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
110 lines (110 loc) · 2.92 KB
/
.eslintrc.json
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"ignorePatterns": ["node_modules"],
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true,
"mocha": true
},
"globals": {
"Promise": true,
"beforeAll": true,
"afterAll": true,
"expect": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended", "prettier"],
"plugins": [
"prettier",
"simple-import-sort",
"import",
"eslint-plugin-no-cyrillic-string"
],
"rules": {
"no-undef": "off",
"no-console": "error",
"no-template-curly-in-string": "error",
"no-unsafe-negation": "error",
"valid-jsdoc": "off",
"no-alert": "error",
"no-caller": "error",
"no-empty-function": "off",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "warn",
"no-global-assign": "error",
"no-implied-eval": "error",
"no-lone-blocks": "warn",
"no-loop-func": "warn",
"no-magic-numbers": "off",
"no-multi-str": "warn",
"no-new-wrappers": "error",
"no-param-reassign": "off",
"no-proto": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-useless-concat": "off",
"no-useless-escape": "warn",
"no-void": "error",
"no-redeclare": "off",
"no-with": "error",
"radix": "error",
"vars-on-top": "off",
"yoda": "warn",
"strict": ["error", "safe"],
"no-shadow-restricted-names": "error",
"no-undef-init": "warn",
"no-use-before-define": "off",
"camelcase": "off",
"consistent-this": ["error", "_this"],
"id-blacklist": "off",
"max-depth": ["warn", 6],
"max-nested-callbacks": ["warn", 3],
"max-params": "off",
"max-statements-per-line": [
"error",
{
"max": 1
}
],
"newline-after-var": "off",
"newline-before-return": "warn",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-new-object": "error",
"no-self-assign": "error",
"no-unneeded-ternary": "warn",
"spaced-comment": ["error", "always"],
"constructor-super": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"prefer-const": "error",
"prefer-spread": "error",
"prefer-template": "off",
"prefer-object-spread": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/no-extraneous-dependencies": "error",
"no-unused-vars": "off",
"no-async-promise-executor": "off",
"prettier/prettier": ["error", {
"singleQuote": true,
"tabWidth": 2,
"printWidth": 180
}]
}
}