@mlaursen/eslint-config 12.0.3 → 12.0.4

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.
@@ -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",
3
+ "version": "12.0.4",
4
4
  "description": "An eslint config used by mlaursen for most projects.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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
  ];