@etchteam/eslint-config 1.4.0 → 1.6.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,6 +1,7 @@
1
- ## [1.4.0](https://github.com/etchteam/eslint/compare/v1.3.0...v1.4.0) (2023-07-25)
1
+ ## [1.6.0](https://github.com/etchteam/eslint/compare/v1.5.0...v1.6.0) (2023-11-06)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * increase version range to support node 20 ([ddc0f34](https://github.com/etchteam/eslint/commit/ddc0f34f5971d75fd34b337c6d31bae3ddd6098c))
6
+ * enable react-readonly-props ([7609312](https://github.com/etchteam/eslint/commit/760931294a03e7fa3f5ae6acc35f2a0a05674732))
7
+ * update eslint-config-next ([d5ae572](https://github.com/etchteam/eslint/commit/d5ae572eb25fde9ed4a212a3714c304d6d9a0a8c))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etchteam/eslint-config",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "Etch's standard eslint config",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -33,11 +33,12 @@
33
33
  "@typescript-eslint/eslint-plugin": "^5.46.1",
34
34
  "@typescript-eslint/parser": "^5.46.1",
35
35
  "eslint": "^8.29.0",
36
- "eslint-config-next": "^13.4.5",
36
+ "eslint-config-next": "^14.0.1",
37
37
  "eslint-config-prettier": "^8.5.0",
38
38
  "eslint-plugin-import": "^2.26.0",
39
39
  "eslint-plugin-jsx-a11y": "^6.7.1",
40
40
  "eslint-plugin-prettier": "^4.2.1",
41
+ "eslint-plugin-react": "^7.33.2",
41
42
  "eslint-plugin-security": "^1.5.0",
42
43
  "eslint-plugin-storybook": "^0.6.8",
43
44
  "eslint-plugin-unused-imports": "^2.0.0",
package/src/index.js CHANGED
@@ -40,6 +40,22 @@ module.exports = {
40
40
  'jsx-a11y/anchor-ambiguous-text': 'error',
41
41
  'jsx-a11y/no-aria-hidden-on-focusable': 'error',
42
42
  'security/detect-object-injection': 'off',
43
+ 'react/forbid-elements': [
44
+ 'error',
45
+ {
46
+ forbid: [
47
+ { element: 'b', message: 'Do not use HTML for styling' },
48
+ { element: 'i', message: 'Do not use HTML for styling' },
49
+ ],
50
+ },
51
+ ],
52
+ 'react/jsx-no-useless-fragment': [
53
+ 'error',
54
+ {
55
+ allowExpressions: true,
56
+ },
57
+ ],
58
+ 'react/prefer-read-only-props': 'error',
43
59
  },
44
60
  settings: {
45
61
  'import/resolver': {