@dg-scripts/eslint-config 5.20.1 → 5.21.0

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 (3) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/index.js +6 -0
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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
+ # [5.21.0](https://github.com/sabertazimi/bod/compare/v5.20.1...v5.21.0) (2024-04-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** update dependencies (non-major) ([#1165](https://github.com/sabertazimi/bod/issues/1165)) ([cb2a01b](https://github.com/sabertazimi/bod/commit/cb2a01bc747bd24ca419501a45a5baf923278dbf))
12
+ * **deps:** update dependencies (non-major) ([#1170](https://github.com/sabertazimi/bod/issues/1170)) ([ed0a2cc](https://github.com/sabertazimi/bod/commit/ed0a2cc5fdc6062ac4605cec66de9269abddacbe))
13
+ * **deps:** update dependencies (non-major) ([#1176](https://github.com/sabertazimi/bod/issues/1176)) ([f33d8ea](https://github.com/sabertazimi/bod/commit/f33d8ea9e936d6ec890d003a83ad69fd4cbce0cb))
14
+ * **deps:** update dependency eslint-plugin-security to v3 ([#1181](https://github.com/sabertazimi/bod/issues/1181)) ([1adb9e0](https://github.com/sabertazimi/bod/commit/1adb9e086488bde2213a15049b4fc54b01d5969b))
15
+ * **eslint-config:** allow last `then` not return ([#1169](https://github.com/sabertazimi/bod/issues/1169)) ([061c950](https://github.com/sabertazimi/bod/commit/061c950bca59c0c7e02ffd9ab49d4699ecf03243))
16
+
17
+
18
+ ### Features
19
+
20
+ * **eslint:** migrate from eslint-plugin-react to [@eslint-react](https://github.com/eslint-react) ([#1184](https://github.com/sabertazimi/bod/issues/1184)) ([20836f6](https://github.com/sabertazimi/bod/commit/20836f61127f2a636c5a42198d34bc2f3bde94b8))
21
+
22
+
23
+
24
+
25
+
6
26
  ## [5.20.1](https://github.com/sabertazimi/bod/compare/v5.20.0...v5.20.1) (2024-04-02)
7
27
 
8
28
 
package/index.js CHANGED
@@ -98,6 +98,12 @@ const eslintConfigPromise = {
98
98
  // @ts-expect-error -- Allow assign `string` (error/warn/off) to `RuleEntry`.
99
99
  rules: {
100
100
  ...eslintPluginPromise.configs.recommended.rules,
101
+ 'promise/always-return': [
102
+ 'error',
103
+ {
104
+ ignoreLastCallback: true,
105
+ },
106
+ ],
101
107
  },
102
108
  }
103
109
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dg-scripts/eslint-config",
3
3
  "type": "module",
4
- "version": "5.20.1",
4
+ "version": "5.21.0",
5
5
  "description": "ESLint configuration used by dg-scripts.",
6
6
  "author": "sabertazimi <sabertazimi@gmail.com>",
7
7
  "license": "MIT",
@@ -49,16 +49,16 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@antfu/eslint-config": "^2.11.6",
52
+ "@antfu/eslint-config": "^2.15.0",
53
+ "@eslint-react/eslint-plugin": "^1.5.9",
53
54
  "@eslint/eslintrc": "^3.0.2",
54
- "eslint-plugin-format": "^0.1.0",
55
+ "eslint-plugin-format": "^0.1.1",
55
56
  "eslint-plugin-promise": "^6.1.1",
56
- "eslint-plugin-react": "^7.34.1",
57
57
  "eslint-plugin-react-hooks": "^4.6.0",
58
58
  "eslint-plugin-react-refresh": "^0.4.6",
59
- "eslint-plugin-security": "^2.1.1",
60
- "eslint-plugin-testing-library": "^6.2.0",
59
+ "eslint-plugin-security": "^3.0.0",
60
+ "eslint-plugin-testing-library": "^6.2.2",
61
61
  "local-pkg": "^0.5.0"
62
62
  },
63
- "gitHead": "2ba8cd25304dbd4ed85771532dd6dc58f9bd548e"
63
+ "gitHead": "76d1c120ff3ddf09f4c497617e17c9ee7d3dccb6"
64
64
  }