@perfective/eslint-config 0.23.2 → 0.23.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perfective/eslint-config",
3
- "version": "0.23.2",
3
+ "version": "0.23.4",
4
4
  "description": "ESLint shareable rules configuration",
5
5
  "keywords": ["code quality", "code standard", "code style", "eslint", "eslint config", "lint", "perfective", "tslint", "tslint config", "typescript"],
6
6
  "author": "Andrey Mikheychik <a.mikheychik@gmail.com>",
@@ -12,20 +12,20 @@
12
12
  "license": "MIT",
13
13
  "peerDependencies": {
14
14
  "@babel/eslint-parser": "^7.23.3",
15
- "@typescript-eslint/eslint-plugin": "^6.13.1",
16
- "@typescript-eslint/eslint-plugin-tslint": "^6.13.1",
17
- "@typescript-eslint/parser": "^6.13.1",
18
- "eslint": "^8.54.0",
15
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
16
+ "@typescript-eslint/eslint-plugin-tslint": "^6.17.0",
17
+ "@typescript-eslint/parser": "^6.17.0",
18
+ "eslint": "^8.56.0",
19
19
  "eslint-import-resolver-typescript": "^3.6.1",
20
20
  "eslint-plugin-array-func": "^4.0.0",
21
21
  "eslint-plugin-cypress": "^2.15.1",
22
22
  "eslint-plugin-deprecation": "^2.0.0",
23
23
  "eslint-plugin-eslint-comments": "^3.2.0",
24
- "eslint-plugin-import": "^2.29.0",
25
- "eslint-plugin-jest": "^27.6.0",
24
+ "eslint-plugin-import": "^2.29.1",
25
+ "eslint-plugin-jest": "^27.6.1",
26
26
  "eslint-plugin-jest-dom": "^5.1.0",
27
27
  "eslint-plugin-jest-formatting": "^3.1.0",
28
- "eslint-plugin-jsdoc": "^46.9.0",
28
+ "eslint-plugin-jsdoc": "^47.0.2",
29
29
  "eslint-plugin-node": "^11.1.0",
30
30
  "eslint-plugin-prefer-arrow": "^1.2.3",
31
31
  "eslint-plugin-promise": "^6.1.1",
@@ -33,7 +33,7 @@
33
33
  "eslint-plugin-simple-import-sort": "^10.0.0",
34
34
  "eslint-plugin-sonarjs": "^0.23.0",
35
35
  "eslint-plugin-testing-library": "^6.2.0",
36
- "eslint-plugin-unicorn": "^49.0.0",
36
+ "eslint-plugin-unicorn": "^50.0.1",
37
37
  "tslint": "^6.1.3"
38
38
  },
39
39
  "peerDependenciesMeta": {
@@ -25,7 +25,7 @@ module.exports = {
25
25
  'no-dupe-else-if': 'error',
26
26
  'no-dupe-keys': 'error',
27
27
  'no-duplicate-case': 'error',
28
- 'no-duplicate-imports': ['error', {
28
+ 'no-duplicate-imports': ['off', {
29
29
  includeExports: true,
30
30
  }],
31
31
  'no-empty-character-class': 'error',
@@ -83,7 +83,6 @@ module.exports = {
83
83
  '@typescript-eslint/no-array-constructor': 'warn',
84
84
  'no-dupe-class-members': 'off',
85
85
  '@typescript-eslint/no-dupe-class-members': 'error',
86
- 'no-duplicate-imports': 'off',
87
86
  'no-empty-function': 'off',
88
87
  '@typescript-eslint/no-empty-function': ['error', {
89
88
  allow: ['protected-constructors', 'private-constructors'],
@@ -40,6 +40,13 @@ module.exports = {
40
40
  }],
41
41
  '@typescript-eslint/explicit-function-return-type': ['error', {
42
42
  allowConciseArrowFunctionExpressionsStartingWithVoid: true,
43
+ allowDirectConstAssertionInArrowFunctions: true,
44
+ allowExpressions: false,
45
+ allowFunctionsWithoutTypeParameters: false,
46
+ allowHigherOrderFunctions: true,
47
+ allowIIFEs: false,
48
+ allowTypedFunctionExpressions: true,
49
+ allowedNames: [],
43
50
  }],
44
51
  '@typescript-eslint/explicit-member-accessibility': 'warn',
45
52
  '@typescript-eslint/explicit-module-boundary-types': 'error',
@@ -186,6 +193,7 @@ module.exports = {
186
193
  '@typescript-eslint/no-unsafe-return': 'error',
187
194
  '@typescript-eslint/no-unsafe-unary-minus': 'error',
188
195
  '@typescript-eslint/no-useless-empty-export': 'warn',
196
+ '@typescript-eslint/no-useless-template-literals': 'error',
189
197
  '@typescript-eslint/no-var-requires': 'error',
190
198
  '@typescript-eslint/non-nullable-type-assertion-style': 'error',
191
199
  '@typescript-eslint/parameter-properties': ['error', {
@@ -261,6 +269,7 @@ module.exports = {
261
269
  allowAny: false,
262
270
  }],
263
271
  '@typescript-eslint/switch-exhaustiveness-check': ['error', {
272
+ allowDefaultCaseForExhaustiveSwitch: false,
264
273
  requireDefaultForNonUnion: true,
265
274
  }],
266
275
  '@typescript-eslint/triple-slash-reference': ['error', {
@@ -59,6 +59,7 @@ module.exports = {
59
59
  checkGlobalVariables: true,
60
60
  }],
61
61
  'unicorn/no-unnecessary-await': 'warn',
62
+ 'unicorn/no-unnecessary-polyfills': 'error',
62
63
  'unicorn/no-unreadable-array-destructuring': 'error',
63
64
  'unicorn/no-unreadable-iife': 'error',
64
65
  'unicorn/no-unsafe-regex': 'off',