@foray1010/eslint-config 12.2.0 → 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 CHANGED
@@ -3,6 +3,24 @@
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
+
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)
16
+
17
+ ### Bug Fixes
18
+
19
+ - **deps:** update dependency eslint-plugin-simple-import-sort to v12 ([dc477c0](https://github.com/foray1010/common-presets/commit/dc477c0ab0abf72f7f3fe7c5d93f86079ed0a702))
20
+ - **deps:** update dependency eslint-plugin-unicorn to v51 ([cde249f](https://github.com/foray1010/common-presets/commit/cde249fa154fc4952e18d678cd523a19ab227ecf))
21
+ - **deps:** update dependency globals to v14 ([9eda897](https://github.com/foray1010/common-presets/commit/9eda8974ac7e3f65c04bbed29164c5b4b040d671))
22
+ - **deps:** update typescript-eslint monorepo to v7 ([49fe30c](https://github.com/foray1010/common-presets/commit/49fe30cdf0f156a2b21422998d4df554813833ce))
23
+
6
24
  ## [12.2.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@12.1.0...@foray1010/eslint-config@12.2.0) (2024-01-20)
7
25
 
8
26
  ### Features
package/bases/base.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import js from '@eslint/js'
2
2
  import eslintPluginEslintComments from '@eslint-community/eslint-plugin-eslint-comments'
3
- // @ts-expect-error
4
3
  import { hasDep, isESM } from '@foray1010/common-presets-utils'
5
4
  import eslintPluginImport from 'eslint-plugin-import'
6
5
  import eslintPluginJest from 'eslint-plugin-jest'
@@ -38,7 +37,6 @@ async function generateTypeScriptConfig() {
38
37
  {
39
38
  files: typeScriptFileGlobs,
40
39
  languageOptions: {
41
- // @ts-expect-error
42
40
  parser: typescriptEslintParser,
43
41
  parserOptions: {
44
42
  // faster linting on cli
@@ -58,6 +56,7 @@ async function generateTypeScriptConfig() {
58
56
  '@typescript-eslint': eslintPluginTypescriptEslint,
59
57
  // @ts-expect-error
60
58
  deprecation: eslintPluginDeprecation,
59
+ // @ts-expect-error
61
60
  functional: eslintPluginFunctional,
62
61
  },
63
62
  rules: {
@@ -302,13 +301,19 @@ const baseConfig = [
302
301
  plugins: {
303
302
  '@eslint-community/eslint-comments': eslintPluginEslintComments,
304
303
  import: eslintPluginImport,
304
+ // @ts-expect-error
305
305
  regexp: eslintPluginRegexp,
306
306
  unicorn: eslintPluginUnicorn,
307
307
  },
308
308
  rules: {
309
309
  ...eslintPluginEslintComments.configs['recommended']?.rules,
310
310
  ...eslintPluginImport.configs['recommended']?.rules,
311
- ...eslintPluginRegexp.configs['recommended']?.rules,
311
+ ...(() => {
312
+ const rules = eslintPluginRegexp.configs['recommended']?.rules
313
+ return /** @type {import('eslint').Linter.RulesRecord} */ (
314
+ /** @type {unknown} */ (rules)
315
+ )
316
+ })(),
312
317
  ...Object.fromEntries(
313
318
  Object.entries(
314
319
  eslintPluginUnicorn.configs['flat/recommended']?.rules ?? {},
package/bases/browser.mjs CHANGED
@@ -1,4 +1,3 @@
1
- // @ts-expect-error
2
1
  import { hasDep } from '@foray1010/common-presets-utils'
3
2
  import restrictedGlobals from 'confusing-browser-globals'
4
3
  import eslintPluginCompat from 'eslint-plugin-compat'
package/bases/node.mjs CHANGED
@@ -1,4 +1,3 @@
1
- // @ts-expect-error
2
1
  import { isESM } from '@foray1010/common-presets-utils'
3
2
  import eslintPluginN from 'eslint-plugin-n'
4
3
 
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.0",
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": {
@@ -23,8 +23,8 @@
23
23
  "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
24
24
  "@eslint/js": "^8.53.0",
25
25
  "@foray1010/common-presets-utils": "^8.0.0",
26
- "@typescript-eslint/eslint-plugin": "^6.11.0",
27
- "@typescript-eslint/parser": "^6.11.0",
26
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
27
+ "@typescript-eslint/parser": "^7.0.0",
28
28
  "confusing-browser-globals": "^1.0.11",
29
29
  "eslint-config-prettier": "^9.0.0",
30
30
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -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": "^27.6.0",
35
+ "eslint-plugin-jest": "^28.0.0",
36
36
  "eslint-plugin-jest-dom": "^5.1.0",
37
- "eslint-plugin-n": "^16.3.1",
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
- "eslint-plugin-simple-import-sort": "^10.0.0",
42
+ "eslint-plugin-simple-import-sort": "^12.0.0",
43
43
  "eslint-plugin-testing-library": "^6.1.2",
44
- "eslint-plugin-unicorn": "^50.0.1",
45
- "globals": "^13.23.0"
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.2",
49
+ "@types/eslint": "8.56.9",
50
50
  "@types/eslint__js": "8.42.3"
51
51
  },
52
52
  "peerDependencies": {
53
- "@testing-library/dom": "^9.0.0",
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": "46fd1d0f56467d4b461f6264eabd040712989a7e"
72
+ "gitHead": "64ba11c6cf113a0a73dd6d92d593d5ef4c79438c"
73
73
  }