@pob/eslint-config-typescript-react 57.1.0 → 57.3.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 +16 -0
- package/lib/index.js +7 -5
- package/lib/plugins/import.js +9 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
## [57.3.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.2.0...v57.3.0) (2024-08-11)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* config improvements ([8d35116](https://github.com/christophehurpeau/eslint-config-pob/commit/8d35116760d86390738430c8d5bc1ac7fcb53668))
|
|
11
|
+
|
|
12
|
+
Version bump for dependency: @pob/eslint-config
|
|
13
|
+
Version bump for dependency: @pob/eslint-config-typescript
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [57.2.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.1.0...v57.2.0) (2024-08-11)
|
|
17
|
+
|
|
18
|
+
Version bump for dependency: @pob/eslint-config
|
|
19
|
+
Version bump for dependency: @pob/eslint-config-typescript
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [57.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.0.0...v57.1.0) (2024-08-11)
|
|
7
23
|
|
|
8
24
|
Version bump for dependency: @pob/eslint-config
|
package/lib/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import baseTypescriptPobConfig, {
|
|
|
2
2
|
extensions,
|
|
3
3
|
} from "@pob/eslint-config-typescript";
|
|
4
4
|
import pobPlugin from "@pob/eslint-plugin";
|
|
5
|
+
import importPluginOverrideConfig from "./plugins/import.js";
|
|
5
6
|
import jsxA11yConfigs from "./plugins/jsx-a11y.js";
|
|
6
7
|
import reactHooksConfigs from "./plugins/react-hooks.js";
|
|
7
8
|
import reactConfigs from "./plugins/react.js";
|
|
@@ -9,8 +10,10 @@ import reactConfigs from "./plugins/react.js";
|
|
|
9
10
|
export default (url) => {
|
|
10
11
|
const { compat, configs } = baseTypescriptPobConfig(url);
|
|
11
12
|
|
|
12
|
-
const
|
|
13
|
-
...
|
|
13
|
+
const createConfig = (base) => [
|
|
14
|
+
...base,
|
|
15
|
+
importPluginOverrideConfig,
|
|
16
|
+
|
|
14
17
|
...[
|
|
15
18
|
pobPlugin.configs.react,
|
|
16
19
|
...compat.config({
|
|
@@ -57,13 +60,13 @@ export default (url) => {
|
|
|
57
60
|
return {
|
|
58
61
|
compat,
|
|
59
62
|
configs: {
|
|
60
|
-
|
|
63
|
+
base: createConfig(configs.base),
|
|
64
|
+
node: createConfig(configs.node),
|
|
61
65
|
|
|
62
66
|
allowUnsafe: configs.allowUnsafe,
|
|
63
67
|
app: configs.app,
|
|
64
68
|
|
|
65
69
|
"react-native": [
|
|
66
|
-
...recommended,
|
|
67
70
|
...compat.config({
|
|
68
71
|
settings: {
|
|
69
72
|
"import/resolver": {
|
|
@@ -76,7 +79,6 @@ export default (url) => {
|
|
|
76
79
|
],
|
|
77
80
|
|
|
78
81
|
"react-native-web": [
|
|
79
|
-
...recommended,
|
|
80
82
|
...compat.config({
|
|
81
83
|
settings: {
|
|
82
84
|
"import/resolver": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config-typescript-react",
|
|
3
|
-
"version": "57.
|
|
3
|
+
"version": "57.3.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"eslint": "^8.56.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@pob/eslint-config": "57.
|
|
41
|
-
"@pob/eslint-config-typescript": "57.
|
|
40
|
+
"@pob/eslint-config": "57.3.0",
|
|
41
|
+
"@pob/eslint-config-typescript": "57.3.0",
|
|
42
42
|
"@pob/eslint-plugin": "57.0.0",
|
|
43
43
|
"eslint-plugin-import": "2.29.1",
|
|
44
44
|
"eslint-plugin-jsx-a11y": "6.8.0",
|