@tinkoff/eslint-config 1.22.0 → 1.26.3
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/CHANGELOG.md +36 -0
- package/internal/base.js +7 -17
- package/internal/test-files.js +1 -0
- package/jest.js +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,42 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [1.26.3](https://github.com/TinkoffCreditSystems/linters/compare/v1.26.2...v1.26.3) (2022-02-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @tinkoff/eslint-config
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### [1.26.1](https://github.com/TinkoffCreditSystems/linters/compare/v1.26.0...v1.26.1) (2022-02-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* Disabled old rule thar did not allow the use for of ([89053d0](https://github.com/TinkoffCreditSystems/linters/commit/89053d0c6d1bcc05cab4fae5a8a30900ebe1dbfe))
|
|
20
|
+
* Remove default-case rules because we usually use TS and sometimes dont need default ([b6747a0](https://github.com/TinkoffCreditSystems/linters/commit/b6747a08b3219764c4fbb0e262d0205be86e04d2))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### [1.25.3](https://github.com/TinkoffCreditSystems/linters/compare/v1.25.2...v1.25.3) (2022-02-07)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **eslint-config-angular:** correctly ensure typescript config for imports ([#173](https://github.com/TinkoffCreditSystems/linters/issues/173)) ([b2638e2](https://github.com/TinkoffCreditSystems/linters/commit/b2638e21a680b48215f295def650e8498185c1c0))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### [1.25.2](https://github.com/TinkoffCreditSystems/linters/compare/v1.25.1...v1.25.2) (2022-02-05)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* Some rules was unused and don't help with development ([#172](https://github.com/TinkoffCreditSystems/linters/issues/172)) ([dca2c89](https://github.com/TinkoffCreditSystems/linters/commit/dca2c8998d6ebfc8b88bf90d812d0f3149854ce3))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
6
42
|
## [1.22.0](https://github.com/TinkoffCreditSystems/linters/compare/v1.21.0...v1.22.0) (2021-12-09)
|
|
7
43
|
|
|
8
44
|
|
package/internal/base.js
CHANGED
|
@@ -13,6 +13,7 @@ module.exports = {
|
|
|
13
13
|
ecmaFeatures: {
|
|
14
14
|
legacyDecorators: true,
|
|
15
15
|
},
|
|
16
|
+
requireConfigFile: false,
|
|
16
17
|
},
|
|
17
18
|
|
|
18
19
|
rules: {
|
|
@@ -35,22 +36,11 @@ module.exports = {
|
|
|
35
36
|
'global-require': 'off',
|
|
36
37
|
'class-methods-use-this': 'off',
|
|
37
38
|
'no-continue': 'off',
|
|
38
|
-
'no-restricted-syntax':
|
|
39
|
-
'warn',
|
|
40
|
-
{
|
|
41
|
-
selector: 'LabeledStatement',
|
|
42
|
-
message:
|
|
43
|
-
'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
selector: 'WithStatement',
|
|
47
|
-
message:
|
|
48
|
-
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
39
|
+
'no-restricted-syntax': 'off',
|
|
51
40
|
'guard-for-in': 'off',
|
|
52
|
-
'default-case': '
|
|
53
|
-
'no-plusplus':
|
|
41
|
+
'default-case': 'off',
|
|
42
|
+
'no-plusplus': 'off',
|
|
43
|
+
'func-names': 'off',
|
|
54
44
|
'consistent-return': 'warn',
|
|
55
45
|
'vars-on-top': 'warn',
|
|
56
46
|
'no-var': 'warn',
|
|
@@ -69,8 +59,8 @@ module.exports = {
|
|
|
69
59
|
allowArrowFunctions: true,
|
|
70
60
|
},
|
|
71
61
|
],
|
|
72
|
-
'max-depth':
|
|
73
|
-
'max-params':
|
|
62
|
+
'max-depth': 'off',
|
|
63
|
+
'max-params': 'off',
|
|
74
64
|
'max-classes-per-file': ['error', 4],
|
|
75
65
|
complexity: ['error', 25],
|
|
76
66
|
'max-statements': ['error', 25],
|
package/internal/test-files.js
CHANGED
package/jest.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkoff/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.3",
|
|
4
4
|
"description": "Tinkoff ESLint configs to rule them all",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"eslint": "^7.5.0",
|
|
27
27
|
"eslint-config-airbnb-base": "^14.2.0",
|
|
28
28
|
"eslint-config-prettier": "^6.11.0",
|
|
29
|
-
"eslint-import-resolver-typescript": "^2.
|
|
29
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
|
30
30
|
"eslint-import-resolver-webpack": "^0.12.2",
|
|
31
31
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
32
|
-
"eslint-plugin-import": "^2.
|
|
32
|
+
"eslint-plugin-import": "^2.25.4",
|
|
33
33
|
"eslint-plugin-jest": "^23.18.0",
|
|
34
34
|
"eslint-plugin-prettier": "^3.1.4",
|
|
35
35
|
"eslint-plugin-promise": "^4.2.1",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4661fc41702b61eea76e98a6213eeb72bbacca30"
|
|
43
43
|
}
|