@dr.pogodin/eslint-configs 0.1.2 → 0.1.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.
@@ -104,7 +104,6 @@ export default defineConfig([{
104
104
 
105
105
  '@stylistic/jsx-pascal-case': 'error',
106
106
  '@stylistic/jsx-self-closing-comp': 'error',
107
- '@stylistic/jsx-sort-props': 'error',
108
107
  '@stylistic/linebreak-style': 'error',
109
108
  '@stylistic/lines-around-comment': ['error', {
110
109
  allowBlockStart: true,
package/config/jest.js CHANGED
@@ -17,7 +17,10 @@ export default defineConfig([{
17
17
  'jest/no-conditional-in-test': 'error',
18
18
  'jest/no-confusing-set-timeout': 'error',
19
19
  'jest/no-duplicate-hooks': 'error',
20
+ 'jest/no-error-equal': 'error',
20
21
  'jest/no-test-return-statement': 'error',
22
+ 'jest/no-unnecessary-assertion': 'error',
23
+ 'jest/no-unneeded-async-expect-function': 'error',
21
24
  'jest/no-untyped-mock-factory': 'error',
22
25
  'jest/padding-around-after-all-blocks': 'error',
23
26
  'jest/padding-around-after-each-blocks': 'error',
@@ -34,10 +37,14 @@ export default defineConfig([{
34
37
  'jest/prefer-hooks-on-top': 'error',
35
38
  'jest/prefer-jest-mocked': 'error',
36
39
  'jest/prefer-mock-promise-shorthand': 'error',
40
+ 'jest/prefer-mock-return-shorthand': 'error',
37
41
  'jest/prefer-spy-on': 'error',
38
42
  'jest/prefer-strict-equal': 'error',
43
+ 'jest/prefer-to-have-been-called': 'error',
44
+ 'jest/prefer-to-have-been-called-times': 'error',
39
45
  'jest/prefer-todo': 'error',
40
46
  'jest/require-to-throw-message': 'error',
47
+ 'jest/valid-expect-with-promise': 'error',
41
48
  'jest/valid-mock-module-path': 'error',
42
49
 
43
50
  'no-console': 'off',
package/config/react.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from 'eslint/config';
2
2
 
3
3
  import jsxA11y from 'eslint-plugin-jsx-a11y';
4
+ import perfectionist from 'eslint-plugin-perfectionist';
4
5
  import react from 'eslint-plugin-react';
5
6
  import reactHooks from 'eslint-plugin-react-hooks';
6
7
 
@@ -17,6 +18,7 @@ export default defineConfig([{
17
18
  },
18
19
  },
19
20
  plugins: {
21
+ perfectionist,
20
22
  react,
21
23
  },
22
24
  settings: {
@@ -26,6 +28,11 @@ export default defineConfig([{
26
28
  },
27
29
 
28
30
  rules: {
31
+ // Rules provided by "eslint-plugin-perfectionist"
32
+ 'perfectionist/sort-jsx-props': ['error', {
33
+ type: 'natural',
34
+ }],
35
+
29
36
  // Rules provided by "eslint-plugin-jsx-a11y".
30
37
  'jsx-a11y/anchor-ambiguous-text': 'error',
31
38
  'jsx-a11y/control-has-associated-label': 'error',
@@ -65,7 +72,6 @@ export default defineConfig([{
65
72
  'react/jsx-pascal-case': 'error',
66
73
  'react/jsx-props-no-spread-multi': 'error',
67
74
  'react/jsx-props-no-spreading': 'error',
68
- 'react/jsx-sort-props': 'error',
69
75
  'react/jsx-tag-spacing': 'error',
70
76
  'react/no-access-state-in-setstate': 'error',
71
77
  'react/no-array-index-key': 'error',
@@ -53,6 +53,7 @@ export default tsEsLint.config(
53
53
  '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
54
54
  '@typescript-eslint/no-redeclare': 'error',
55
55
  '@typescript-eslint/no-unnecessary-type-conversion': 'error',
56
+ '@typescript-eslint/no-useless-default-assignment': 'error',
56
57
 
57
58
  // NOTE: The core rule variant reports incorrect errors on TypeScript
58
59
  // code, thus disabled.
@@ -90,6 +91,7 @@ export default tsEsLint.config(
90
91
  '@typescript-eslint/promise-function-async': 'error',
91
92
  '@typescript-eslint/related-getter-setter-pairs': 'error',
92
93
  '@typescript-eslint/require-array-sort-compare': 'error',
94
+ '@typescript-eslint/strict-void-return': 'error',
93
95
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
94
96
  '@typescript-eslint/typedef': 'error',
95
97
  '@typescript-eslint/unified-signatures': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr.pogodin/eslint-configs",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "ESLint configurations for TypeScript and/or React projects",
5
5
  "type": "module",
6
6
  "main": "./config/index.js",
@@ -29,21 +29,22 @@
29
29
  },
30
30
  "homepage": "https://dr.pogodin.studio/docs/eslint-configs",
31
31
  "dependencies": {
32
- "@babel/eslint-parser": "^7.28.5",
32
+ "@babel/eslint-parser": "^7.28.6",
33
33
  "@babel/eslint-plugin": "^7.27.1",
34
- "@babel/preset-env": "^7.28.5",
34
+ "@babel/preset-env": "^7.28.6",
35
35
  "@babel/preset-react": "^7.28.5",
36
36
  "@babel/preset-typescript": "^7.28.5",
37
- "@eslint/js": "^9.39.1",
38
- "@stylistic/eslint-plugin": "^5.6.1",
39
- "eslint": "^9.39.1",
37
+ "@eslint/js": "^9.39.2",
38
+ "@stylistic/eslint-plugin": "^5.7.0",
39
+ "eslint": "^9.39.2",
40
40
  "eslint-plugin-import": "^2.32.0",
41
- "eslint-plugin-jest": "^29.2.1",
41
+ "eslint-plugin-jest": "^29.12.1",
42
42
  "eslint-plugin-jsx-a11y": "^6.10.2",
43
+ "eslint-plugin-perfectionist": "^5.3.1",
43
44
  "eslint-plugin-react": "^7.37.4",
44
- "typescript": "^5.9.3",
45
45
  "eslint-plugin-react-hooks": "^6.1.1",
46
- "typescript-eslint": "^8.48.0"
46
+ "typescript": "^5.9.3",
47
+ "typescript-eslint": "^8.53.1"
47
48
  },
48
49
  "peerDependencies": {
49
50
  "eslint-import-resolver-typescript": "^4.4.4"