@foray1010/eslint-config 12.2.1 → 12.2.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.
- package/CHANGELOG.md +9 -0
- package/bases/base.mjs +8 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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
|
+
## [12.2.2](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@12.2.1...@foray1010/eslint-config@12.2.2) (2024-04-15)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **deps:** update dependency eslint-plugin-jest to v28 ([0d33212](https://github.com/foray1010/common-presets/commit/0d33212d6bc5580bb8c343344ba8a8b94483b35e))
|
|
11
|
+
- **deps:** update dependency eslint-plugin-n to v17 ([dfe3c52](https://github.com/foray1010/common-presets/commit/dfe3c5235c183c0969ebf52a6416ed5706662a30))
|
|
12
|
+
- **deps:** update dependency eslint-plugin-unicorn to v52 ([eceff49](https://github.com/foray1010/common-presets/commit/eceff4900909ca6854ae40d05f64dd3472d0cd66))
|
|
13
|
+
- **deps:** update dependency globals to v15 ([0a2d0c4](https://github.com/foray1010/common-presets/commit/0a2d0c43fae049fbcec9d4f3ec3a48245706872a))
|
|
14
|
+
|
|
6
15
|
## [12.2.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@12.2.0...@foray1010/eslint-config@12.2.1) (2024-03-13)
|
|
7
16
|
|
|
8
17
|
### Bug Fixes
|
package/bases/base.mjs
CHANGED
|
@@ -56,6 +56,7 @@ async function generateTypeScriptConfig() {
|
|
|
56
56
|
'@typescript-eslint': eslintPluginTypescriptEslint,
|
|
57
57
|
// @ts-expect-error
|
|
58
58
|
deprecation: eslintPluginDeprecation,
|
|
59
|
+
// @ts-expect-error
|
|
59
60
|
functional: eslintPluginFunctional,
|
|
60
61
|
},
|
|
61
62
|
rules: {
|
|
@@ -300,13 +301,19 @@ const baseConfig = [
|
|
|
300
301
|
plugins: {
|
|
301
302
|
'@eslint-community/eslint-comments': eslintPluginEslintComments,
|
|
302
303
|
import: eslintPluginImport,
|
|
304
|
+
// @ts-expect-error
|
|
303
305
|
regexp: eslintPluginRegexp,
|
|
304
306
|
unicorn: eslintPluginUnicorn,
|
|
305
307
|
},
|
|
306
308
|
rules: {
|
|
307
309
|
...eslintPluginEslintComments.configs['recommended']?.rules,
|
|
308
310
|
...eslintPluginImport.configs['recommended']?.rules,
|
|
309
|
-
...
|
|
311
|
+
...(() => {
|
|
312
|
+
const rules = eslintPluginRegexp.configs['recommended']?.rules
|
|
313
|
+
return /** @type {import('eslint').Linter.RulesRecord} */ (
|
|
314
|
+
/** @type {unknown} */ (rules)
|
|
315
|
+
)
|
|
316
|
+
})(),
|
|
310
317
|
...Object.fromEntries(
|
|
311
318
|
Object.entries(
|
|
312
319
|
eslintPluginUnicorn.configs['flat/recommended']?.rules ?? {},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/eslint-config",
|
|
4
|
-
"version": "12.2.
|
|
4
|
+
"version": "12.2.2",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"eslint-plugin-deprecation": "^2.0.0",
|
|
33
33
|
"eslint-plugin-functional": "^6.0.0",
|
|
34
34
|
"eslint-plugin-import": "^2.29.0",
|
|
35
|
-
"eslint-plugin-jest": "^
|
|
35
|
+
"eslint-plugin-jest": "^28.0.0",
|
|
36
36
|
"eslint-plugin-jest-dom": "^5.1.0",
|
|
37
|
-
"eslint-plugin-n": "^
|
|
37
|
+
"eslint-plugin-n": "^17.0.0",
|
|
38
38
|
"eslint-plugin-prettier": "^5.0.1",
|
|
39
39
|
"eslint-plugin-react": "^7.33.2",
|
|
40
40
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
41
41
|
"eslint-plugin-regexp": "^2.1.1",
|
|
42
42
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
43
43
|
"eslint-plugin-testing-library": "^6.1.2",
|
|
44
|
-
"eslint-plugin-unicorn": "^
|
|
45
|
-
"globals": "^
|
|
44
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
|
45
|
+
"globals": "^15.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/confusing-browser-globals": "1.0.3",
|
|
49
|
-
"@types/eslint": "8.56.
|
|
49
|
+
"@types/eslint": "8.56.9",
|
|
50
50
|
"@types/eslint__js": "8.42.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@testing-library/dom": "^
|
|
53
|
+
"@testing-library/dom": "^10.0.0",
|
|
54
54
|
"eslint": "^8.52.0",
|
|
55
55
|
"prettier": "^3.0.0",
|
|
56
56
|
"typescript": "^5.0.2"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "64ba11c6cf113a0a73dd6d92d593d5ef4c79438c"
|
|
73
73
|
}
|