@pob/eslint-config-typescript-react 51.0.2 → 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 CHANGED
@@ -1,8 +1,19 @@
1
- # Change Log
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
+
6
17
  ## [51.0.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.0.1...v51.0.2) (2023-09-01)
7
18
 
8
19
  **Note:** Version bump only for package @pob/eslint-config-typescript-react
@@ -18,8 +18,4 @@ module.exports = {
18
18
  },
19
19
  },
20
20
  },
21
-
22
- rules: {
23
- 'react/no-unescaped-entities': 'off',
24
- },
25
21
  };
@@ -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', 'arrow-function'],
48
- unnamedComponents: 'arrow-function',
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.2",
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",
@@ -56,7 +59,7 @@
56
59
  }
57
60
  },
58
61
  "dependencies": {
59
- "@pob/eslint-config": "51.0.2",
62
+ "@pob/eslint-config": "51.1.0",
60
63
  "eslint-config-airbnb": "^19.0.4",
61
64
  "eslint-plugin-import": "^2.28.1",
62
65
  "eslint-plugin-jsx-a11y": "^6.5.1",
@@ -64,7 +67,6 @@
64
67
  "eslint-plugin-react-hooks": "^4.3.0"
65
68
  },
66
69
  "devDependencies": {
67
- "@types/react": "18.2.21"
68
- },
69
- "gitHead": "2e4dd867301343c134b5df10b4633a48bbfd8c82"
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
@@ -1,4 +0,0 @@
1
- {
2
- "root": true,
3
- "extends": ["../eslint-config/lib/root-commonjs.js"]
4
- }