@foray1010/eslint-config 15.0.1 → 15.1.1
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 +20 -0
- package/bases/base.mjs +1 -2
- package/bases/browser.mjs +1 -1
- package/bases/ignores.mjs +1 -1
- package/bases/node.mjs +1 -1
- package/bases/prettier.mjs +1 -1
- package/bases/react.mjs +5 -1
- package/index.mjs +1 -1
- package/package.json +8 -5
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
|
+
## [15.1.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@15.1.0...@foray1010/eslint-config@15.1.1) (2025-08-03)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **deps:** update dependency eslint-plugin-react-compiler to rc2 ([c2b0651](https://github.com/foray1010/common-presets/commit/c2b06518fde68831f0c2e2606a0734c7ad28def1))
|
|
11
|
+
- **deps:** update dependency eslint-plugin-unicorn to v59 ([70a56b1](https://github.com/foray1010/common-presets/commit/70a56b192a84a4d5b5690404059d18d4ded28a37))
|
|
12
|
+
- **deps:** update dependency eslint-plugin-unicorn to v60 ([5d2c0b1](https://github.com/foray1010/common-presets/commit/5d2c0b1f03c8535cf284e9de4d60b0e9619903b2))
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- **eslint-config:** add eslint-plugin-jsx-a11y ([cb5848c](https://github.com/foray1010/common-presets/commit/cb5848cf44236cd5091e160f356c377a35d527fb))
|
|
19
|
+
- **eslint-config:** add eslint-plugin-react-compiler ([494f8a3](https://github.com/foray1010/common-presets/commit/494f8a3064e630533d494196ba3fdbcbd9d59ef1))
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **deps:** update dependency eslint-import-resolver-typescript to v4 ([2b8fbde](https://github.com/foray1010/common-presets/commit/2b8fbde92a0e2c25fe6514f2627ab500a9e6bb8a))
|
|
24
|
+
- **deps:** update dependency eslint-plugin-unicorn to v58 ([aea1dae](https://github.com/foray1010/common-presets/commit/aea1dae3beaf96b9e414de03d02b60caf2ca317d))
|
|
25
|
+
|
|
6
26
|
## [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)
|
|
7
27
|
|
|
8
28
|
### Bug Fixes
|
package/bases/base.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import js from '@eslint/js'
|
|
|
2
2
|
// eslint-disable-next-line import-x/extensions
|
|
3
3
|
import eslintPluginEslintCommentsConfigs from '@eslint-community/eslint-plugin-eslint-comments/configs'
|
|
4
4
|
import { hasDep, isESM } from '@foray1010/common-presets-utils'
|
|
5
|
-
// eslint-disable-next-line import-x/extensions
|
|
5
|
+
// eslint-disable-next-line import-x/extensions
|
|
6
6
|
import { defineConfig } from 'eslint/config'
|
|
7
7
|
import eslintPluginImportX from 'eslint-plugin-import-x'
|
|
8
8
|
import eslintPluginJest from 'eslint-plugin-jest'
|
|
@@ -21,7 +21,6 @@ async function generateTypeScriptConfig() {
|
|
|
21
21
|
// typescript plugins are depended on `typescript` package
|
|
22
22
|
if (!hasDep('typescript')) return defineConfig({})
|
|
23
23
|
|
|
24
|
-
// eslint-disable-next-line import-x/no-unresolved
|
|
25
24
|
const tseslint = (await import('typescript-eslint')).default
|
|
26
25
|
|
|
27
26
|
return defineConfig(
|
package/bases/browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hasDep } from '@foray1010/common-presets-utils'
|
|
2
2
|
import restrictedGlobals from 'confusing-browser-globals'
|
|
3
|
-
// eslint-disable-next-line import-x/extensions
|
|
3
|
+
// eslint-disable-next-line import-x/extensions
|
|
4
4
|
import { defineConfig } from 'eslint/config'
|
|
5
5
|
import eslintPluginCompat from 'eslint-plugin-compat'
|
|
6
6
|
import eslintPluginTestingLibrary from 'eslint-plugin-testing-library'
|
package/bases/ignores.mjs
CHANGED
package/bases/node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isESM } from '@foray1010/common-presets-utils'
|
|
2
|
-
// eslint-disable-next-line import-x/extensions
|
|
2
|
+
// eslint-disable-next-line import-x/extensions
|
|
3
3
|
import { defineConfig } from 'eslint/config'
|
|
4
4
|
import eslintPluginN from 'eslint-plugin-n'
|
|
5
5
|
|
package/bases/prettier.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// eslint-disable-next-line import-x/extensions
|
|
1
|
+
// eslint-disable-next-line import-x/extensions
|
|
2
2
|
import { defineConfig } from 'eslint/config'
|
|
3
3
|
// eslint-disable-next-line import-x/extensions
|
|
4
4
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
package/bases/react.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
// eslint-disable-next-line import-x/extensions
|
|
1
|
+
// eslint-disable-next-line import-x/extensions
|
|
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/index.mjs
CHANGED
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.
|
|
4
|
+
"version": "15.1.1",
|
|
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": "^
|
|
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": "^19.1.0-rc.2",
|
|
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": "^
|
|
42
|
+
"eslint-plugin-unicorn": "^60.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": "
|
|
71
|
+
"gitHead": "d329a9b1038d4bd19d1bd01b91991f88b13bcec6"
|
|
69
72
|
}
|