@frontify/eslint-config-basic 0.19.0-next.0 → 0.19.0-next.2

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.
Files changed (2) hide show
  1. package/index.js +12 -3
  2. package/package.json +6 -6
package/index.js CHANGED
@@ -59,10 +59,14 @@ module.exports = {
59
59
  rules: {
60
60
  // As we're using @typescript-eslint it's recommended to turn off
61
61
  // the standard eslint rule for unused variables and use the @typescript-eslint rule instead.
62
- // See here: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
62
+ // See here: https://typescript-eslint.io/rules/no-unused-vars/
63
63
  'no-unused-vars': 'off',
64
64
  '@typescript-eslint/no-unused-vars': 'error',
65
65
 
66
+ // Allow overload of functions: https://typescript-eslint.io/rules/no-dupe-class-members/
67
+ 'no-dupe-class-members': 'off',
68
+ '@typescript-eslint/no-dupe-class-members': 'error',
69
+
66
70
  '@typescript-eslint/no-explicit-any': 'warn',
67
71
  'no-throw-literal': 'off',
68
72
  '@typescript-eslint/no-throw-literal': 'error',
@@ -80,11 +84,11 @@ module.exports = {
80
84
  '@typescript-eslint/require-await': 'error',
81
85
  '@typescript-eslint/restrict-plus-operands': 'error',
82
86
  '@typescript-eslint/restrict-template-expressions': 'error',
83
- '@typescript-eslint/unbound-method': 'error',
87
+ '@typescript-eslint/unbound-method': 'off',
84
88
  '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
85
89
  '@typescript-eslint/consistent-type-imports': [
86
90
  'warn',
87
- { prefer: 'type-imports', fixStyle: 'separate-type-imports' },
91
+ { prefer: 'type-imports', fixStyle: 'inline-type-imports' },
88
92
  ],
89
93
  '@typescript-eslint/no-misused-promises': [2, { checksVoidReturn: { attributes: false } }],
90
94
  },
@@ -212,6 +216,7 @@ module.exports = {
212
216
  rules: {
213
217
  'no-unused-expressions': 'off',
214
218
  'no-only-tests/no-only-tests': 'error',
219
+ '@typescript-eslint/unbound-method': 'off', // Allows to use `vi.fn()` or spy/mock in tests
215
220
  },
216
221
  },
217
222
  {
@@ -345,6 +350,10 @@ module.exports = {
345
350
  {
346
351
  groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
347
352
  'newlines-between': 'always',
353
+ alphabetize: {
354
+ order: 'asc',
355
+ caseInsensitive: false,
356
+ },
348
357
  },
349
358
  ],
350
359
  'import/prefer-default-export': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontify/eslint-config-basic",
3
- "version": "0.19.0-next.0",
3
+ "version": "0.19.0-next.2",
4
4
  "author": "Frontify Developers <developers@frontify.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  "prettier": ">=3.0.0"
21
21
  },
22
22
  "dependencies": {
23
- "@typescript-eslint/eslint-plugin": "^6.9.1",
24
- "@typescript-eslint/parser": "^6.9.1",
25
- "eslint-config-prettier": "^9.0.0",
23
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
24
+ "@typescript-eslint/parser": "^6.13.2",
25
+ "eslint-config-prettier": "^9.1.0",
26
26
  "eslint-import-resolver-typescript": "^3.6.1",
27
27
  "eslint-plugin-eslint-comments": "^3.2.0",
28
28
  "eslint-plugin-import": "^2.29.0",
@@ -37,8 +37,8 @@
37
37
  "yaml-eslint-parser": "^1.2.2"
38
38
  },
39
39
  "devDependencies": {
40
- "eslint": "^8.53.0",
41
- "prettier": "^3.0.3"
40
+ "eslint": "^8.55.0",
41
+ "prettier": "^3.1.1"
42
42
  },
43
43
  "scripts": {
44
44
  "lint": "eslint . --config=index.js"