@dg-scripts/eslint-config 5.20.0 → 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 +31 -0
  2. package/index.js +8 -0
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,37 @@
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
+
26
+ ## [5.20.1](https://github.com/sabertazimi/bod/compare/v5.20.0...v5.20.1) (2024-04-02)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * **eslint-config:** disable security rules for markdown codes ([#1164](https://github.com/sabertazimi/bod/issues/1164)) ([20987c2](https://github.com/sabertazimi/bod/commit/20987c27aa7b0c2b94fc638a0e92b75cf30817d1))
32
+
33
+
34
+
35
+
36
+
6
37
  # [5.20.0](https://github.com/sabertazimi/bod/compare/v5.19.0...v5.20.0) (2024-04-02)
7
38
 
8
39
 
package/index.js CHANGED
@@ -84,18 +84,26 @@ const eslintConfigTestingLibrary = {
84
84
  /** @type {import('@antfu/eslint-config').TypedFlatConfigItem} */
85
85
  const eslintConfigSecurity = {
86
86
  files: [GLOB_SRC],
87
+ ignores: [GLOB_MARKDOWN_CODE, `${GLOB_MARKDOWN}/**/*.vue`],
87
88
  ...eslintPluginSecurity.configs.recommended,
88
89
  }
89
90
 
90
91
  /** @type {import('@antfu/eslint-config').TypedFlatConfigItem} */
91
92
  const eslintConfigPromise = {
92
93
  files: [GLOB_SRC],
94
+ ignores: [GLOB_MARKDOWN_CODE, `${GLOB_MARKDOWN}/**/*.vue`],
93
95
  plugins: {
94
96
  promise: eslintPluginPromise,
95
97
  },
96
98
  // @ts-expect-error -- Allow assign `string` (error/warn/off) to `RuleEntry`.
97
99
  rules: {
98
100
  ...eslintPluginPromise.configs.recommended.rules,
101
+ 'promise/always-return': [
102
+ 'error',
103
+ {
104
+ ignoreLastCallback: true,
105
+ },
106
+ ],
99
107
  },
100
108
  }
101
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.0",
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": "9af8259eec1e14e0cfcf4f408f9599b9d245c394"
63
+ "gitHead": "76d1c120ff3ddf09f4c497617e17c9ee7d3dccb6"
64
64
  }