@foray1010/eslint-config 15.0.0 → 15.1.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.
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
+ ## [15.1.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@15.0.1...@foray1010/eslint-config@15.1.0) (2025-03-26)
7
+
8
+ ### Features
9
+
10
+ - **eslint-config:** add eslint-plugin-jsx-a11y ([cb5848c](https://github.com/foray1010/common-presets/commit/cb5848cf44236cd5091e160f356c377a35d527fb))
11
+ - **eslint-config:** add eslint-plugin-react-compiler ([494f8a3](https://github.com/foray1010/common-presets/commit/494f8a3064e630533d494196ba3fdbcbd9d59ef1))
12
+
13
+ ### Bug Fixes
14
+
15
+ - **deps:** update dependency eslint-import-resolver-typescript to v4 ([2b8fbde](https://github.com/foray1010/common-presets/commit/2b8fbde92a0e2c25fe6514f2627ab500a9e6bb8a))
16
+ - **deps:** update dependency eslint-plugin-unicorn to v58 ([aea1dae](https://github.com/foray1010/common-presets/commit/aea1dae3beaf96b9e414de03d02b60caf2ca317d))
17
+
18
+ ## [15.0.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@15.0.0...@foray1010/eslint-config@15.0.1) (2025-03-13)
19
+
20
+ ### Bug Fixes
21
+
22
+ - **eslint-config:** fix types ([28e3bfa](https://github.com/foray1010/common-presets/commit/28e3bfabce71cd1d80b0186f1ac7f3158a049d33))
23
+
6
24
  ## [15.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@14.0.1...@foray1010/eslint-config@15.0.0) (2025-03-13)
7
25
 
8
26
  ### ⚠ BREAKING CHANGES
package/bases/base.mjs CHANGED
@@ -28,7 +28,9 @@ async function generateTypeScriptConfig() {
28
28
  {
29
29
  files: typeScriptFileGlobs,
30
30
  extends: [
31
+ // @ts-expect-error tseslint interface does not align with eslint
31
32
  tseslint.configs.eslintRecommended,
33
+ // @ts-expect-error tseslint interface does not align with eslint
32
34
  tseslint.configs.recommendedTypeChecked,
33
35
  eslintPluginImportX.configs['typescript'],
34
36
  esmConfig,
@@ -174,7 +176,10 @@ const esmConfig = defineConfig({
174
176
  const baseConfig = defineConfig(
175
177
  js.configs.recommended,
176
178
  {
177
- extends: [eslintPluginEslintCommentsConfigs['recommended']],
179
+ extends: [
180
+ // @ts-expect-error no official types
181
+ eslintPluginEslintCommentsConfigs['recommended'],
182
+ ],
178
183
  rules: {
179
184
  // allow disable eslint rules for whole file without re-enable it in the end of the file
180
185
  '@eslint-community/eslint-comments/disable-enable-pair': [
@@ -186,7 +191,10 @@ const baseConfig = defineConfig(
186
191
  },
187
192
  },
188
193
  {
189
- extends: [eslintPluginImportX.flatConfigs.recommended],
194
+ extends: [
195
+ // @ts-expect-error eslint-plugin-import-x interface does not align with eslint
196
+ eslintPluginImportX.flatConfigs.recommended,
197
+ ],
190
198
  rules: {
191
199
  // this rule doesn't support commonjs, some dependencies are using commonjs
192
200
  'import-x/default': 'off',
package/bases/react.mjs CHANGED
@@ -1,6 +1,8 @@
1
1
  // eslint-disable-next-line import-x/extensions, import-x/no-unresolved
2
2
  import { defineConfig } from 'eslint/config'
3
+ import eslintPluginJsxA11y from 'eslint-plugin-jsx-a11y'
3
4
  import eslintPluginReact from 'eslint-plugin-react'
5
+ import eslintPluginReactCompiler from 'eslint-plugin-react-compiler'
4
6
  import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
5
7
  import eslintPluginTestingLibrary from 'eslint-plugin-testing-library'
6
8
 
@@ -16,7 +18,9 @@ const reactConfig = defineConfig(
16
18
  extends: [
17
19
  eslintPluginReact.configs.flat.recommended,
18
20
  eslintPluginReact.configs.flat['jsx-runtime'],
21
+ eslintPluginReactCompiler.configs.recommended,
19
22
  eslintPluginReactHooks.configs['recommended-latest'],
23
+ eslintPluginJsxA11y.flatConfigs.recommended,
20
24
  ],
21
25
  rules: {
22
26
  // avoid unexpected form submits
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": "15.0.0",
4
+ "version": "15.1.0",
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": {
@@ -25,25 +25,28 @@
25
25
  "@foray1010/common-presets-utils": "^8.0.0",
26
26
  "confusing-browser-globals": "^1.0.11",
27
27
  "eslint-config-prettier": "^10.0.2",
28
- "eslint-import-resolver-typescript": "^3.8.3",
28
+ "eslint-import-resolver-typescript": "^4.2.3",
29
29
  "eslint-plugin-compat": "^6.0.2",
30
30
  "eslint-plugin-import-x": "^4.6.1",
31
31
  "eslint-plugin-jest": "^28.11.0",
32
32
  "eslint-plugin-jest-dom": "^5.5.0",
33
+ "eslint-plugin-jsx-a11y": "^6.10.2",
33
34
  "eslint-plugin-n": "^17.15.1",
34
35
  "eslint-plugin-prettier": "^5.2.3",
35
36
  "eslint-plugin-react": "^7.37.4",
37
+ "eslint-plugin-react-compiler": "beta",
36
38
  "eslint-plugin-react-hooks": "^5.2.0",
37
39
  "eslint-plugin-regexp": "^2.7.0",
38
40
  "eslint-plugin-simple-import-sort": "^12.1.1",
39
41
  "eslint-plugin-testing-library": "^7.1.1",
40
- "eslint-plugin-unicorn": "^57.0.0",
42
+ "eslint-plugin-unicorn": "^58.0.0",
41
43
  "globals": "^16.0.0",
42
44
  "typescript-eslint": "^8.25.0"
43
45
  },
44
46
  "devDependencies": {
45
47
  "@types/confusing-browser-globals": "1.0.3",
46
- "@types/eslint": "9.6.1"
48
+ "@types/eslint": "9.6.1",
49
+ "@types/eslint-plugin-jsx-a11y": "6.10.0"
47
50
  },
48
51
  "peerDependencies": {
49
52
  "@testing-library/dom": "^10.0.0",
@@ -65,5 +68,5 @@
65
68
  "publishConfig": {
66
69
  "access": "public"
67
70
  },
68
- "gitHead": "321d60ec7b05e7c861bf019fb4c3f7b1410795e9"
71
+ "gitHead": "90d4f2f43497aac59f0d61539474f431b2f37f70"
69
72
  }