@tinkoff/eslint-config 1.14.0 → 1.26.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/CHANGELOG.md CHANGED
@@ -3,6 +3,43 @@
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.1](https://github.com/TinkoffCreditSystems/linters/compare/v1.26.0...v1.26.1) (2022-02-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Disabled old rule thar did not allow the use for of ([89053d0](https://github.com/TinkoffCreditSystems/linters/commit/89053d0c6d1bcc05cab4fae5a8a30900ebe1dbfe))
12
+ * Remove default-case rules because we usually use TS and sometimes dont need default ([b6747a0](https://github.com/TinkoffCreditSystems/linters/commit/b6747a08b3219764c4fbb0e262d0205be86e04d2))
13
+
14
+
15
+
16
+ ### [1.25.3](https://github.com/TinkoffCreditSystems/linters/compare/v1.25.2...v1.25.3) (2022-02-07)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **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))
22
+
23
+
24
+
25
+ ### [1.25.2](https://github.com/TinkoffCreditSystems/linters/compare/v1.25.1...v1.25.2) (2022-02-05)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * 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))
31
+
32
+
33
+
34
+ ## [1.22.0](https://github.com/TinkoffCreditSystems/linters/compare/v1.21.0...v1.22.0) (2021-12-09)
35
+
36
+
37
+ ### Features
38
+
39
+ * **prettier-config:** upgrade to new prettier version ([#161](https://github.com/TinkoffCreditSystems/linters/issues/161)) ([419597f](https://github.com/TinkoffCreditSystems/linters/commit/419597f313bdd46f3b71e14779d55a7c7dd6a0ee))
40
+
41
+
42
+
6
43
  ## [1.14.0](https://github.com/TinkoffCreditSystems/linters/compare/v1.13.2...v1.14.0) (2021-11-17)
7
44
 
8
45
 
package/internal/base.js CHANGED
@@ -35,22 +35,11 @@ module.exports = {
35
35
  'global-require': 'off',
36
36
  'class-methods-use-this': 'off',
37
37
  '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
- ],
38
+ 'no-restricted-syntax': 'off',
51
39
  'guard-for-in': 'off',
52
- 'default-case': 'warn',
53
- 'no-plusplus': ['warn', { allowForLoopAfterthoughts: true }],
40
+ 'default-case': 'off',
41
+ 'no-plusplus': 'off',
42
+ 'func-names': 'off',
54
43
  'consistent-return': 'warn',
55
44
  'vars-on-top': 'warn',
56
45
  'no-var': 'warn',
@@ -69,8 +58,8 @@ module.exports = {
69
58
  allowArrowFunctions: true,
70
59
  },
71
60
  ],
72
- 'max-depth': ['warn', 4],
73
- 'max-params': ['warn', 4],
61
+ 'max-depth': 'off',
62
+ 'max-params': 'off',
74
63
  'max-classes-per-file': ['error', 4],
75
64
  complexity: ['error', 25],
76
65
  'max-statements': ['error', 25],
@@ -11,6 +11,7 @@ module.exports = {
11
11
  'prefer-promise-reject-errors': 'warn',
12
12
  'import/no-unresolved': 'off',
13
13
  'import/extensions': 'off',
14
+ '@typescript-eslint/no-shadow': 'off',
14
15
  },
15
16
  },
16
17
  ],
package/jest.js CHANGED
@@ -14,5 +14,6 @@ module.exports = {
14
14
  ],
15
15
  },
16
16
  ],
17
+ 'jest/no-disabled-tests': 'off',
17
18
  },
18
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkoff/eslint-config",
3
- "version": "1.14.0",
3
+ "version": "1.26.1",
4
4
  "description": "Tinkoff ESLint configs to rule them all",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -26,18 +26,18 @@
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.0.0",
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.22.0",
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",
36
36
  "eslint-plugin-sort-class-members": "^1.7.0",
37
- "prettier": "2.4.1"
37
+ "prettier": "2.5.1"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "56b02b09d8740cba2a29a30d56e30fc1883552eb"
42
+ "gitHead": "7352349bcafc710ddab2b6fe2f0b981fcb8538d6"
43
43
  }