@pob/eslint-config-typescript-react 65.4.2 → 65.5.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 +23 -0
- package/lib/index.js +46 -2
- package/lib/plugins/react.js +3 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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
|
+
## [65.5.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v65.4.3...v65.5.0) (2026-06-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add namespace error
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* use workspace:*
|
|
15
|
+
|
|
16
|
+
Version bump for dependency: @pob/eslint-config
|
|
17
|
+
Version bump for dependency: @pob/eslint-plugin
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [65.4.3](https://github.com/christophehurpeau/eslint-config-pob/compare/v65.4.2...v65.4.3) (2026-05-01)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* update import resolver extensions for TypeScript support
|
|
25
|
+
|
|
26
|
+
Version bump for dependency: @pob/eslint-config
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [65.4.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v65.4.1...v65.4.2) (2026-05-01)
|
|
7
30
|
|
|
8
31
|
Version bump for dependency: @pob/eslint-config
|
package/lib/index.js
CHANGED
|
@@ -76,11 +76,37 @@ export default () => {
|
|
|
76
76
|
settings: {
|
|
77
77
|
"import-x/resolver-next": [
|
|
78
78
|
createNodeResolver({
|
|
79
|
-
extensions: [
|
|
79
|
+
extensions: [
|
|
80
|
+
".js", // needed to resolve js files from node_modules
|
|
81
|
+
".ts",
|
|
82
|
+
".tsx",
|
|
83
|
+
".ios.ts",
|
|
84
|
+
".ios.tsx",
|
|
85
|
+
".android.ts",
|
|
86
|
+
".android.tsx",
|
|
87
|
+
],
|
|
80
88
|
conditionNames: ["import", "react-native"],
|
|
81
89
|
}),
|
|
82
90
|
],
|
|
83
91
|
},
|
|
92
|
+
rules: {
|
|
93
|
+
"import-x/extensions": [
|
|
94
|
+
"error",
|
|
95
|
+
"always",
|
|
96
|
+
{
|
|
97
|
+
ignorePackages: true,
|
|
98
|
+
pattern: {
|
|
99
|
+
js: "always",
|
|
100
|
+
cjs: "always",
|
|
101
|
+
mjs: "always",
|
|
102
|
+
cts: "always",
|
|
103
|
+
mts: "always",
|
|
104
|
+
ts: "never",
|
|
105
|
+
tsx: "never",
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
84
110
|
},
|
|
85
111
|
],
|
|
86
112
|
|
|
@@ -89,12 +115,30 @@ export default () => {
|
|
|
89
115
|
settings: {
|
|
90
116
|
"import-x/resolver-next": [
|
|
91
117
|
createNodeResolver({
|
|
92
|
-
extensions: [".
|
|
118
|
+
extensions: [".ts", ".tsx", ".web.ts", ".web.tsx"],
|
|
93
119
|
conditionNames: ["import", "browser"],
|
|
94
120
|
}),
|
|
95
121
|
],
|
|
96
122
|
},
|
|
97
123
|
rules: {
|
|
124
|
+
rules: {
|
|
125
|
+
"import-x/extensions": [
|
|
126
|
+
"error",
|
|
127
|
+
"always",
|
|
128
|
+
{
|
|
129
|
+
ignorePackages: true,
|
|
130
|
+
pattern: {
|
|
131
|
+
js: "always",
|
|
132
|
+
cjs: "always",
|
|
133
|
+
mjs: "always",
|
|
134
|
+
cts: "always",
|
|
135
|
+
mts: "never",
|
|
136
|
+
ts: "never",
|
|
137
|
+
tsx: "never",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
98
142
|
"import-x/no-unresolved": [
|
|
99
143
|
"error",
|
|
100
144
|
{
|
package/lib/plugins/react.js
CHANGED
|
@@ -8,6 +8,9 @@ export default [
|
|
|
8
8
|
// https://github.com/airbnb/javascript/issues/2829
|
|
9
9
|
"func-names": "error",
|
|
10
10
|
|
|
11
|
+
// legacy prop-types. We use TypeScript for type checking.
|
|
12
|
+
"react/prop-types": "off",
|
|
13
|
+
|
|
11
14
|
// Enforce event handler naming conventions in JSX
|
|
12
15
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md
|
|
13
16
|
// 'react/jsx-handler-names': [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config-typescript-react",
|
|
3
|
-
"version": "65.
|
|
3
|
+
"version": "65.5.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"typescript": ">=5.0.0 <7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pob/eslint-config": "65.
|
|
42
|
-
"@pob/eslint-plugin": "65.
|
|
41
|
+
"@pob/eslint-config": "65.5.0",
|
|
42
|
+
"@pob/eslint-plugin": "65.5.0",
|
|
43
43
|
"eslint-plugin-import-x": "4.16.2",
|
|
44
44
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
45
45
|
"eslint-plugin-react": "7.37.5",
|