@rsdk/eslint-plugin 5.11.0 → 5.12.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -2
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -38,6 +38,15 @@ module.exports = {
|
|
|
38
38
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
39
39
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
40
40
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
41
|
+
// Разрешаем Function тип (legacy код, декораторы)
|
|
42
|
+
'@typescript-eslint/no-unsafe-function-type': 'off',
|
|
43
|
+
// Разрешаем {} тип для совместимости
|
|
44
|
+
'@typescript-eslint/no-empty-object-type': 'off',
|
|
45
|
+
// Разрешаем expressions в некоторых местах
|
|
46
|
+
'@typescript-eslint/no-unused-expressions': ['error', {
|
|
47
|
+
allowShortCircuit: true,
|
|
48
|
+
allowTernary: true,
|
|
49
|
+
}],
|
|
41
50
|
'import/no-extraneous-dependencies': [
|
|
42
51
|
'error',
|
|
43
52
|
{
|
|
@@ -57,7 +66,7 @@ module.exports = {
|
|
|
57
66
|
],
|
|
58
67
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
59
68
|
'@typescript-eslint/member-ordering': 'warn',
|
|
60
|
-
'@
|
|
69
|
+
'@stylistic/lines-between-class-members': [
|
|
61
70
|
'warn',
|
|
62
71
|
'always',
|
|
63
72
|
{
|
|
@@ -65,7 +74,7 @@ module.exports = {
|
|
|
65
74
|
exceptAfterOverload: true,
|
|
66
75
|
},
|
|
67
76
|
],
|
|
68
|
-
'@
|
|
77
|
+
'@stylistic/padding-line-between-statements': [
|
|
69
78
|
'warn',
|
|
70
79
|
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
|
|
71
80
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/eslint-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0-next.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"license": "Apache License 2.0",
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
12
|
-
"@typescript-eslint/parser": "^
|
|
11
|
+
"@typescript-eslint/eslint-plugin": "^8.50.1",
|
|
12
|
+
"@typescript-eslint/parser": "^8.50.1",
|
|
13
13
|
"eslint": "^8.57.1",
|
|
14
14
|
"eslint-config-prettier": "^9.1.0",
|
|
15
15
|
"eslint-formatter-codeframe": "^7.32.1",
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
20
20
|
"eslint-plugin-unicorn": "^56.0.1"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "9ef9770256f8fa9285d60e87cfaf468e5a9367c5"
|
|
23
23
|
}
|