@mlaursen/eslint-config 12.0.3 → 12.0.5
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/dist/testing-library.js +8 -2
- package/package.json +10 -10
- package/src/testing-library.ts +12 -0
package/dist/testing-library.js
CHANGED
|
@@ -29,7 +29,10 @@ import { BASE_NAME, TEST_FILES } from "./constants.js";
|
|
|
29
29
|
* both.
|
|
30
30
|
*/
|
|
31
31
|
export var testingLibraryReact = [
|
|
32
|
-
__assign({ name: "".concat(BASE_NAME, "/testing-library/react"), files: TEST_FILES }, testingLibraryPlugin.configs["flat/react"]),
|
|
32
|
+
__assign(__assign({ name: "".concat(BASE_NAME, "/testing-library/react"), files: TEST_FILES }, testingLibraryPlugin.configs["flat/react"]), { rules: __assign(__assign({}, testingLibraryPlugin.configs["flat/react"].rules), {
|
|
33
|
+
// it can be useful to reassign screen.* queries without reusing to
|
|
34
|
+
// verify it still exists
|
|
35
|
+
"no-useless-assignment": "off" }) }),
|
|
33
36
|
];
|
|
34
37
|
/**
|
|
35
38
|
* @example
|
|
@@ -47,5 +50,8 @@ export var testingLibraryReact = [
|
|
|
47
50
|
* both.
|
|
48
51
|
*/
|
|
49
52
|
export var testingLibraryDom = [
|
|
50
|
-
__assign({ name: "".concat(BASE_NAME, "/testing-library/dom"), files: TEST_FILES }, testingLibraryPlugin.configs["flat/dom"]),
|
|
53
|
+
__assign(__assign({ name: "".concat(BASE_NAME, "/testing-library/dom"), files: TEST_FILES }, testingLibraryPlugin.configs["flat/dom"]), { rules: __assign(__assign({}, testingLibraryPlugin.configs["flat/dom"].rules), {
|
|
54
|
+
// it can be useful to reassign screen.* queries without reusing to
|
|
55
|
+
// verify it still exists
|
|
56
|
+
"no-useless-assignment": "off" }) }),
|
|
51
57
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlaursen/eslint-config",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.5",
|
|
4
4
|
"description": "An eslint config used by mlaursen for most projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@eslint/compat": "^2.0.2",
|
|
26
26
|
"@eslint/core": "^1.1.0",
|
|
27
|
-
"@eslint/js": "^
|
|
27
|
+
"@eslint/js": "^9.39.3",
|
|
28
28
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
29
|
-
"@typescript-eslint/utils": "^8.
|
|
30
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
31
|
-
"eslint": "^9.39.
|
|
32
|
-
"eslint-plugin-jest": "^29.
|
|
29
|
+
"@typescript-eslint/utils": "^8.56.1",
|
|
30
|
+
"@vitest/eslint-plugin": "^1.6.9",
|
|
31
|
+
"eslint": "^9.39.3",
|
|
32
|
+
"eslint-plugin-jest": "^29.15.0",
|
|
33
33
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
34
34
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
35
35
|
"eslint-plugin-react": "^7.37.5",
|
|
36
36
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
37
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
38
|
-
"eslint-plugin-testing-library": "^7.
|
|
37
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
38
|
+
"eslint-plugin-testing-library": "^7.16.0",
|
|
39
39
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
40
|
-
"typescript-eslint": "^8.
|
|
40
|
+
"typescript-eslint": "^8.56.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^25.2
|
|
43
|
+
"@types/node": "^25.3.2",
|
|
44
44
|
"concurrently": "^9.2.1",
|
|
45
45
|
"prettier": "^3.8.1",
|
|
46
46
|
"typescript": "^5.9.3"
|
package/src/testing-library.ts
CHANGED
|
@@ -24,6 +24,12 @@ export const testingLibraryReact: Linter.Config[] = [
|
|
|
24
24
|
name: `${BASE_NAME}/testing-library/react`,
|
|
25
25
|
files: TEST_FILES,
|
|
26
26
|
...testingLibraryPlugin.configs["flat/react"],
|
|
27
|
+
rules: {
|
|
28
|
+
...testingLibraryPlugin.configs["flat/react"].rules,
|
|
29
|
+
// it can be useful to reassign screen.* queries without reusing to
|
|
30
|
+
// verify it still exists
|
|
31
|
+
"no-useless-assignment": "off",
|
|
32
|
+
},
|
|
27
33
|
},
|
|
28
34
|
];
|
|
29
35
|
|
|
@@ -47,5 +53,11 @@ export const testingLibraryDom: Linter.Config[] = [
|
|
|
47
53
|
name: `${BASE_NAME}/testing-library/dom`,
|
|
48
54
|
files: TEST_FILES,
|
|
49
55
|
...testingLibraryPlugin.configs["flat/dom"],
|
|
56
|
+
rules: {
|
|
57
|
+
...testingLibraryPlugin.configs["flat/dom"].rules,
|
|
58
|
+
// it can be useful to reassign screen.* queries without reusing to
|
|
59
|
+
// verify it still exists
|
|
60
|
+
"no-useless-assignment": "off",
|
|
61
|
+
},
|
|
50
62
|
},
|
|
51
63
|
];
|