@wistia/eslint-config 0.19.5 → 0.19.8
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/package.json +4 -3
- package/rules/eslint/style.js +3 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.8",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"main": "react.js",
|
|
6
6
|
"exports": {
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@babel/eslint-parser": "^7.21.3",
|
|
35
35
|
"@babel/preset-react": "^7.18.6",
|
|
36
36
|
"@rushstack/eslint-patch": "^1.2.0",
|
|
37
|
+
"@testing-library/dom": "^9.3.0",
|
|
37
38
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
38
39
|
"@typescript-eslint/parser": "^5.58.0",
|
|
39
40
|
"confusing-browser-globals": "^1.0.11",
|
|
@@ -45,9 +46,9 @@
|
|
|
45
46
|
"eslint-plugin-filenames": "^1.3.2",
|
|
46
47
|
"eslint-plugin-import": "^2.27.5",
|
|
47
48
|
"eslint-plugin-jest": "^27.2.1",
|
|
48
|
-
"eslint-plugin-jest-dom": "^
|
|
49
|
+
"eslint-plugin-jest-dom": "^5.0.1",
|
|
49
50
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
50
|
-
"eslint-plugin-jsdoc": "^
|
|
51
|
+
"eslint-plugin-jsdoc": "^46.2.0",
|
|
51
52
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
52
53
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
53
54
|
"eslint-plugin-no-snapshot-testing": "^1.0.61",
|
package/rules/eslint/style.js
CHANGED
|
@@ -16,13 +16,9 @@ module.exports = {
|
|
|
16
16
|
|
|
17
17
|
// enforces no braces where they can be omitted
|
|
18
18
|
// https://eslint.org/docs/rules/arrow-body-style
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
requireReturnForObjectLiteral: false,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
19
|
+
// decision: small preferance for immediate returns but if we enfore it can lead to a frustrating
|
|
20
|
+
// developer experience where code may be autocorrected in the middle of debugging a function;
|
|
21
|
+
'arrow-body-style': 'off',
|
|
26
22
|
|
|
27
23
|
// require parens in arrow function arguments
|
|
28
24
|
// https://eslint.org/docs/rules/arrow-parens
|