@pob/eslint-config-typescript-react 51.0.1 → 51.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 +20 -1
- package/lib/react-native.js +0 -4
- package/lib/rules/react.js +9 -2
- package/package.json +10 -8
- package/.editorconfig +0 -13
- package/.eslintrc.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
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
|
+
## [51.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.0.2...v51.1.0) (2023-10-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* disable react/no-unescaped-entities ([6cdc1d1](https://github.com/christophehurpeau/eslint-config-pob/commit/6cdc1d19ff864ef7589b24bbb64f2d50657a5375))
|
|
12
|
+
* fix react/function-component-definition rule and enable func-names ([4cffe9e](https://github.com/christophehurpeau/eslint-config-pob/commit/4cffe9e6b3251195eeccc74fd702192f412737e3))
|
|
13
|
+
|
|
14
|
+
Version bump for dependency: eslint-config
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [51.0.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.0.1...v51.0.2) (2023-09-01)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @pob/eslint-config-typescript-react
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [51.0.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.0.0...v51.0.1) (2023-07-29)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @pob/eslint-config-typescript-react
|
package/lib/react-native.js
CHANGED
package/lib/rules/react.js
CHANGED
|
@@ -6,6 +6,9 @@ module.exports = {
|
|
|
6
6
|
rules: {
|
|
7
7
|
/* added rules */
|
|
8
8
|
|
|
9
|
+
// https://github.com/airbnb/javascript/issues/2829
|
|
10
|
+
'func-names': 'error',
|
|
11
|
+
|
|
9
12
|
// Enforce event handler naming conventions in JSX
|
|
10
13
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md
|
|
11
14
|
// 'react/jsx-handler-names': [
|
|
@@ -44,8 +47,9 @@ module.exports = {
|
|
|
44
47
|
'react/function-component-definition': [
|
|
45
48
|
'error',
|
|
46
49
|
{
|
|
47
|
-
namedComponents: ['function-declaration'
|
|
48
|
-
|
|
50
|
+
namedComponents: ['function-declaration'],
|
|
51
|
+
// https://github.com/airbnb/javascript/issues/2829
|
|
52
|
+
unnamedComponents: ['function-expression'],
|
|
49
53
|
},
|
|
50
54
|
],
|
|
51
55
|
|
|
@@ -113,5 +117,8 @@ module.exports = {
|
|
|
113
117
|
|
|
114
118
|
// allow props spreading
|
|
115
119
|
'react/jsx-props-no-spreading': 'off',
|
|
120
|
+
|
|
121
|
+
// entities does not need to be escaped as color syntaxing makes it clear when it's a body or it's a property.
|
|
122
|
+
'react/no-unescaped-entities': 'off',
|
|
116
123
|
},
|
|
117
124
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config-typescript-react",
|
|
3
|
-
"version": "51.0
|
|
3
|
+
"version": "51.1.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
|
+
"files": [
|
|
31
|
+
"lib"
|
|
32
|
+
],
|
|
30
33
|
"scripts": {
|
|
31
34
|
"clean:build": "true",
|
|
32
35
|
"lint": "yarn run lint:eslint",
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
"pob": {},
|
|
37
40
|
"peerDependencies": {
|
|
38
41
|
"eslint": "^8.28.0",
|
|
39
|
-
"eslint-plugin-import": "^2.28.
|
|
42
|
+
"eslint-plugin-import": "^2.28.1",
|
|
40
43
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
41
44
|
"eslint-plugin-react": "^7.28.0",
|
|
42
45
|
"eslint-plugin-react-hooks": "^4.3.0"
|
|
@@ -56,15 +59,14 @@
|
|
|
56
59
|
}
|
|
57
60
|
},
|
|
58
61
|
"dependencies": {
|
|
59
|
-
"@pob/eslint-config": "51.0
|
|
62
|
+
"@pob/eslint-config": "51.1.0",
|
|
60
63
|
"eslint-config-airbnb": "^19.0.4",
|
|
61
|
-
"eslint-plugin-import": "^2.28.
|
|
64
|
+
"eslint-plugin-import": "^2.28.1",
|
|
62
65
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
63
66
|
"eslint-plugin-react": "^7.28.0",
|
|
64
67
|
"eslint-plugin-react-hooks": "^4.3.0"
|
|
65
68
|
},
|
|
66
69
|
"devDependencies": {
|
|
67
|
-
"@types/react": "18.2.
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}
|
|
70
|
+
"@types/react": "18.2.24"
|
|
71
|
+
}
|
|
72
|
+
}
|
package/.editorconfig
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent
|
|
2
|
-
# coding styles between different editors and IDEs
|
|
3
|
-
# http://editorconfig.org
|
|
4
|
-
|
|
5
|
-
root = true
|
|
6
|
-
|
|
7
|
-
[*]
|
|
8
|
-
indent_style = space
|
|
9
|
-
indent_size = 2
|
|
10
|
-
end_of_line = lf
|
|
11
|
-
charset = utf-8
|
|
12
|
-
trim_trailing_whitespace = true
|
|
13
|
-
insert_final_newline = true
|
package/.eslintrc.json
DELETED