@etchteam/eslint-config 1.3.0 → 1.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 +3 -9
- package/package.json +3 -2
- package/src/index.js +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
## [1.
|
|
1
|
+
## [1.5.0](https://github.com/etchteam/eslint/compare/v1.4.0...v1.5.0) (2023-08-18)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* add sonarcloud link ([e3d2643](https://github.com/etchteam/eslint/commit/e3d2643b021ae785f67471166bd5eb7627d00457))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
* disable detect-object-injection (too many false positives) ([ea68c48](https://github.com/etchteam/eslint/commit/ea68c48e466e21ce090c76ea29653345dc32865e))
|
|
6
|
+
* disallow b and i elements. Closes [#16](https://github.com/etchteam/eslint/issues/16) ([c8dee8e](https://github.com/etchteam/eslint/commit/c8dee8e9459c3d704302d32a871d709cfd226419))
|
|
7
|
+
* disallow no useless fragments. Closes [#7](https://github.com/etchteam/eslint/issues/7) ([9cbfde4](https://github.com/etchteam/eslint/commit/9cbfde406df497e7991e08ec94649fae4ec2046c))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etchteam/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Etch's standard eslint config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"release": "semantic-release"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": "^14 || ^16 || ^18"
|
|
11
|
+
"node": "^14 || ^16 || ^18 || ^20"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -38,6 +38,7 @@
|
|
|
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,21 @@ 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
|
+
],
|
|
43
58
|
},
|
|
44
59
|
settings: {
|
|
45
60
|
'import/resolver': {
|