@gooddata/eslint-config 11.57.0-alpha.3 → 11.57.0-alpha.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.
Files changed (41) hide show
  1. package/PACKAGES_V9_OXLINT.md +0 -1
  2. package/dist/base.js +13 -13
  3. package/dist/base.json +13 -13
  4. package/dist/browser-esm.js +13 -13
  5. package/dist/browser-esm.json +13 -13
  6. package/dist/esm-playwright.js +13 -13
  7. package/dist/esm-playwright.json +13 -13
  8. package/dist/esm-react-playwright.js +21 -22
  9. package/dist/esm-react-playwright.json +21 -22
  10. package/dist/esm-react-storybook.js +21 -22
  11. package/dist/esm-react-storybook.json +21 -22
  12. package/dist/esm-react-vitest-rtl.js +22 -22
  13. package/dist/esm-react-vitest-rtl.json +22 -22
  14. package/dist/esm-react-vitest.js +22 -22
  15. package/dist/esm-react-vitest.json +22 -22
  16. package/dist/esm-react.js +21 -22
  17. package/dist/esm-react.json +21 -22
  18. package/dist/esm-vitest-rtl.js +14 -13
  19. package/dist/esm-vitest-rtl.json +14 -13
  20. package/dist/esm-vitest.js +14 -13
  21. package/dist/esm-vitest.json +14 -13
  22. package/dist/esm.js +13 -13
  23. package/dist/esm.json +13 -13
  24. package/dist/oxlint-esm-react-playwright.js +5 -16
  25. package/dist/oxlint-esm-react-storybook.js +5 -16
  26. package/dist/oxlint-esm-react-vitest-rtl.js +5 -16
  27. package/dist/oxlint-esm-react-vitest.js +5 -16
  28. package/dist/oxlint-esm-react.js +5 -16
  29. package/dist/oxlint-react-playwright.js +5 -16
  30. package/dist/oxlint-react-vitest-rtl.js +5 -16
  31. package/dist/oxlint-react-vitest.js +5 -16
  32. package/dist/oxlint-react.js +5 -16
  33. package/dist/react-playwright.js +21 -22
  34. package/dist/react-playwright.json +21 -22
  35. package/dist/react-vitest-rtl.js +22 -22
  36. package/dist/react-vitest-rtl.json +22 -22
  37. package/dist/react-vitest.js +22 -22
  38. package/dist/react-vitest.json +22 -22
  39. package/dist/react.js +21 -22
  40. package/dist/react.json +21 -22
  41. package/package.json +2 -2
@@ -605,6 +605,19 @@
605
605
  "no-caller": "error",
606
606
  "no-eval": "error",
607
607
  "no-delete-var": "error",
608
+ "no-restricted-exports": [
609
+ "error",
610
+ {
611
+ "restrictDefaultExports": {
612
+ "direct": true,
613
+ "named": true,
614
+ "defaultFrom": true,
615
+ "namedFrom": true,
616
+ "namespaceFrom": true
617
+ }
618
+ }
619
+ ],
620
+ "no-negated-condition": "error",
608
621
  "no-duplicate-imports": [
609
622
  "error",
610
623
  {
@@ -623,18 +636,6 @@
623
636
  ],
624
637
  "no-octal": "error",
625
638
  "no-dupe-args": "error",
626
- "no-restricted-exports": [
627
- "error",
628
- {
629
- "restrictDefaultExports": {
630
- "direct": true,
631
- "named": true,
632
- "defaultFrom": true,
633
- "namedFrom": true,
634
- "namespaceFrom": true
635
- }
636
- }
637
- ],
638
639
  "no-restricted-syntax": [
639
640
  "error",
640
641
  {
@@ -646,7 +647,6 @@
646
647
  "message": "Do not use `ReactDOM.*`. Use named imports instead."
647
648
  }
648
649
  ],
649
- "no-negated-condition": "error",
650
650
  "no-octal-escape": "error",
651
651
  "header/header": [
652
652
  2,
@@ -935,14 +935,11 @@
935
935
  "sonarjs/no-implicit-global": "off",
936
936
  "sonarjs/no-control-regex": "off",
937
937
  "react/no-danger": "error",
938
- "react/prop-types": "off",
939
- "react/function-component-definition": [
938
+ "react/jsx-boolean-value": [
940
939
  "error",
941
- {
942
- "namedComponents": "function-declaration",
943
- "unnamedComponents": "arrow-function"
944
- }
940
+ "never"
945
941
  ],
942
+ "react/react-in-jsx-scope": "off",
946
943
  "react/jsx-no-leaked-render": [
947
944
  "warn",
948
945
  {
@@ -952,11 +949,13 @@
952
949
  ]
953
950
  }
954
951
  ],
955
- "react/jsx-boolean-value": [
952
+ "react/function-component-definition": [
956
953
  "error",
957
- "never"
954
+ {
955
+ "namedComponents": "function-declaration",
956
+ "unnamedComponents": "arrow-function"
957
+ }
958
958
  ],
959
- "react/react-in-jsx-scope": "off",
960
959
  "react-hooks/rules-of-hooks": "error",
961
960
  "react-hooks/exhaustive-deps": "error",
962
961
  "playwright/consistent-spacing-between-blocks": "warn",
@@ -616,6 +616,19 @@ export default [
616
616
  "no-caller": "error",
617
617
  "no-eval": "error",
618
618
  "no-delete-var": "error",
619
+ "no-restricted-exports": [
620
+ "error",
621
+ {
622
+ restrictDefaultExports: {
623
+ direct: true,
624
+ named: true,
625
+ defaultFrom: true,
626
+ namedFrom: true,
627
+ namespaceFrom: true,
628
+ },
629
+ },
630
+ ],
631
+ "no-negated-condition": "error",
619
632
  "no-duplicate-imports": [
620
633
  "error",
621
634
  {
@@ -634,18 +647,6 @@ export default [
634
647
  ],
635
648
  "no-octal": "error",
636
649
  "no-dupe-args": "error",
637
- "no-restricted-exports": [
638
- "error",
639
- {
640
- restrictDefaultExports: {
641
- direct: true,
642
- named: true,
643
- defaultFrom: true,
644
- namedFrom: true,
645
- namespaceFrom: true,
646
- },
647
- },
648
- ],
649
650
  "no-restricted-syntax": [
650
651
  "error",
651
652
  {
@@ -657,7 +658,6 @@ export default [
657
658
  message: "Do not use `ReactDOM.*`. Use named imports instead.",
658
659
  },
659
660
  ],
660
- "no-negated-condition": "error",
661
661
  "no-octal-escape": "error",
662
662
  },
663
663
  },
@@ -2356,14 +2356,11 @@ export default [
2356
2356
  },
2357
2357
  rules: {
2358
2358
  "react/no-danger": "error",
2359
- "react/prop-types": "off",
2360
- "react/function-component-definition": [
2359
+ "react/jsx-boolean-value": [
2361
2360
  "error",
2362
- {
2363
- namedComponents: "function-declaration",
2364
- unnamedComponents: "arrow-function",
2365
- },
2361
+ "never",
2366
2362
  ],
2363
+ "react/react-in-jsx-scope": "off",
2367
2364
  "react/jsx-no-leaked-render": [
2368
2365
  "warn",
2369
2366
  {
@@ -2373,11 +2370,13 @@ export default [
2373
2370
  ],
2374
2371
  },
2375
2372
  ],
2376
- "react/jsx-boolean-value": [
2373
+ "react/function-component-definition": [
2377
2374
  "error",
2378
- "never",
2375
+ {
2376
+ namedComponents: "function-declaration",
2377
+ unnamedComponents: "arrow-function",
2378
+ },
2379
2379
  ],
2380
- "react/react-in-jsx-scope": "off",
2381
2380
  "react-hooks/rules-of-hooks": "error",
2382
2381
  "react-hooks/exhaustive-deps": "error",
2383
2382
  },
@@ -2403,6 +2402,7 @@ export default [
2403
2402
  "vitest/no-focused-tests": "warn",
2404
2403
  "vitest/no-identical-title": "warn",
2405
2404
  "vitest/valid-expect": "warn",
2405
+ "vitest/valid-expect-in-promise": "error",
2406
2406
  },
2407
2407
  },
2408
2408
  {
@@ -605,6 +605,19 @@
605
605
  "no-caller": "error",
606
606
  "no-eval": "error",
607
607
  "no-delete-var": "error",
608
+ "no-restricted-exports": [
609
+ "error",
610
+ {
611
+ "restrictDefaultExports": {
612
+ "direct": true,
613
+ "named": true,
614
+ "defaultFrom": true,
615
+ "namedFrom": true,
616
+ "namespaceFrom": true
617
+ }
618
+ }
619
+ ],
620
+ "no-negated-condition": "error",
608
621
  "no-duplicate-imports": [
609
622
  "error",
610
623
  {
@@ -623,18 +636,6 @@
623
636
  ],
624
637
  "no-octal": "error",
625
638
  "no-dupe-args": "error",
626
- "no-restricted-exports": [
627
- "error",
628
- {
629
- "restrictDefaultExports": {
630
- "direct": true,
631
- "named": true,
632
- "defaultFrom": true,
633
- "namedFrom": true,
634
- "namespaceFrom": true
635
- }
636
- }
637
- ],
638
639
  "no-restricted-syntax": [
639
640
  "error",
640
641
  {
@@ -646,7 +647,6 @@
646
647
  "message": "Do not use `ReactDOM.*`. Use named imports instead."
647
648
  }
648
649
  ],
649
- "no-negated-condition": "error",
650
650
  "no-octal-escape": "error",
651
651
  "header/header": [
652
652
  2,
@@ -935,14 +935,11 @@
935
935
  "sonarjs/no-implicit-global": "off",
936
936
  "sonarjs/no-control-regex": "off",
937
937
  "react/no-danger": "error",
938
- "react/prop-types": "off",
939
- "react/function-component-definition": [
938
+ "react/jsx-boolean-value": [
940
939
  "error",
941
- {
942
- "namedComponents": "function-declaration",
943
- "unnamedComponents": "arrow-function"
944
- }
940
+ "never"
945
941
  ],
942
+ "react/react-in-jsx-scope": "off",
946
943
  "react/jsx-no-leaked-render": [
947
944
  "warn",
948
945
  {
@@ -952,11 +949,13 @@
952
949
  ]
953
950
  }
954
951
  ],
955
- "react/jsx-boolean-value": [
952
+ "react/function-component-definition": [
956
953
  "error",
957
- "never"
954
+ {
955
+ "namedComponents": "function-declaration",
956
+ "unnamedComponents": "arrow-function"
957
+ }
958
958
  ],
959
- "react/react-in-jsx-scope": "off",
960
959
  "react-hooks/rules-of-hooks": "error",
961
960
  "react-hooks/exhaustive-deps": "error",
962
961
  "@vitest/no-conditional-expect": "error",
@@ -975,6 +974,7 @@
975
974
  "@vitest/no-focused-tests": "warn",
976
975
  "@vitest/no-identical-title": "warn",
977
976
  "@vitest/valid-expect": "warn",
977
+ "@vitest/valid-expect-in-promise": "error",
978
978
  "testing-library/await-async-queries": "error",
979
979
  "testing-library/await-async-utils": "error",
980
980
  "testing-library/no-await-sync-queries": "error",
@@ -615,6 +615,19 @@ export default [
615
615
  "no-caller": "error",
616
616
  "no-eval": "error",
617
617
  "no-delete-var": "error",
618
+ "no-restricted-exports": [
619
+ "error",
620
+ {
621
+ restrictDefaultExports: {
622
+ direct: true,
623
+ named: true,
624
+ defaultFrom: true,
625
+ namedFrom: true,
626
+ namespaceFrom: true,
627
+ },
628
+ },
629
+ ],
630
+ "no-negated-condition": "error",
618
631
  "no-duplicate-imports": [
619
632
  "error",
620
633
  {
@@ -633,18 +646,6 @@ export default [
633
646
  ],
634
647
  "no-octal": "error",
635
648
  "no-dupe-args": "error",
636
- "no-restricted-exports": [
637
- "error",
638
- {
639
- restrictDefaultExports: {
640
- direct: true,
641
- named: true,
642
- defaultFrom: true,
643
- namedFrom: true,
644
- namespaceFrom: true,
645
- },
646
- },
647
- ],
648
649
  "no-restricted-syntax": [
649
650
  "error",
650
651
  {
@@ -656,7 +657,6 @@ export default [
656
657
  message: "Do not use `ReactDOM.*`. Use named imports instead.",
657
658
  },
658
659
  ],
659
- "no-negated-condition": "error",
660
660
  "no-octal-escape": "error",
661
661
  },
662
662
  },
@@ -2355,14 +2355,11 @@ export default [
2355
2355
  },
2356
2356
  rules: {
2357
2357
  "react/no-danger": "error",
2358
- "react/prop-types": "off",
2359
- "react/function-component-definition": [
2358
+ "react/jsx-boolean-value": [
2360
2359
  "error",
2361
- {
2362
- namedComponents: "function-declaration",
2363
- unnamedComponents: "arrow-function",
2364
- },
2360
+ "never",
2365
2361
  ],
2362
+ "react/react-in-jsx-scope": "off",
2366
2363
  "react/jsx-no-leaked-render": [
2367
2364
  "warn",
2368
2365
  {
@@ -2372,11 +2369,13 @@ export default [
2372
2369
  ],
2373
2370
  },
2374
2371
  ],
2375
- "react/jsx-boolean-value": [
2372
+ "react/function-component-definition": [
2376
2373
  "error",
2377
- "never",
2374
+ {
2375
+ namedComponents: "function-declaration",
2376
+ unnamedComponents: "arrow-function",
2377
+ },
2378
2378
  ],
2379
- "react/react-in-jsx-scope": "off",
2380
2379
  "react-hooks/rules-of-hooks": "error",
2381
2380
  "react-hooks/exhaustive-deps": "error",
2382
2381
  },
@@ -2402,6 +2401,7 @@ export default [
2402
2401
  "vitest/no-focused-tests": "warn",
2403
2402
  "vitest/no-identical-title": "warn",
2404
2403
  "vitest/valid-expect": "warn",
2404
+ "vitest/valid-expect-in-promise": "error",
2405
2405
  },
2406
2406
  },
2407
2407
  {
@@ -604,6 +604,19 @@
604
604
  "no-caller": "error",
605
605
  "no-eval": "error",
606
606
  "no-delete-var": "error",
607
+ "no-restricted-exports": [
608
+ "error",
609
+ {
610
+ "restrictDefaultExports": {
611
+ "direct": true,
612
+ "named": true,
613
+ "defaultFrom": true,
614
+ "namedFrom": true,
615
+ "namespaceFrom": true
616
+ }
617
+ }
618
+ ],
619
+ "no-negated-condition": "error",
607
620
  "no-duplicate-imports": [
608
621
  "error",
609
622
  {
@@ -622,18 +635,6 @@
622
635
  ],
623
636
  "no-octal": "error",
624
637
  "no-dupe-args": "error",
625
- "no-restricted-exports": [
626
- "error",
627
- {
628
- "restrictDefaultExports": {
629
- "direct": true,
630
- "named": true,
631
- "defaultFrom": true,
632
- "namedFrom": true,
633
- "namespaceFrom": true
634
- }
635
- }
636
- ],
637
638
  "no-restricted-syntax": [
638
639
  "error",
639
640
  {
@@ -645,7 +646,6 @@
645
646
  "message": "Do not use `ReactDOM.*`. Use named imports instead."
646
647
  }
647
648
  ],
648
- "no-negated-condition": "error",
649
649
  "no-octal-escape": "error",
650
650
  "header/header": [
651
651
  2,
@@ -934,14 +934,11 @@
934
934
  "sonarjs/no-implicit-global": "off",
935
935
  "sonarjs/no-control-regex": "off",
936
936
  "react/no-danger": "error",
937
- "react/prop-types": "off",
938
- "react/function-component-definition": [
937
+ "react/jsx-boolean-value": [
939
938
  "error",
940
- {
941
- "namedComponents": "function-declaration",
942
- "unnamedComponents": "arrow-function"
943
- }
939
+ "never"
944
940
  ],
941
+ "react/react-in-jsx-scope": "off",
945
942
  "react/jsx-no-leaked-render": [
946
943
  "warn",
947
944
  {
@@ -951,11 +948,13 @@
951
948
  ]
952
949
  }
953
950
  ],
954
- "react/jsx-boolean-value": [
951
+ "react/function-component-definition": [
955
952
  "error",
956
- "never"
953
+ {
954
+ "namedComponents": "function-declaration",
955
+ "unnamedComponents": "arrow-function"
956
+ }
957
957
  ],
958
- "react/react-in-jsx-scope": "off",
959
958
  "react-hooks/rules-of-hooks": "error",
960
959
  "react-hooks/exhaustive-deps": "error",
961
960
  "@vitest/no-conditional-expect": "error",
@@ -974,6 +973,7 @@
974
973
  "@vitest/no-focused-tests": "warn",
975
974
  "@vitest/no-identical-title": "warn",
976
975
  "@vitest/valid-expect": "warn",
976
+ "@vitest/valid-expect-in-promise": "error",
977
977
  "no-only-tests/no-only-tests": [
978
978
  "error",
979
979
  {
package/dist/react.js CHANGED
@@ -613,6 +613,19 @@ export default [
613
613
  "no-caller": "error",
614
614
  "no-eval": "error",
615
615
  "no-delete-var": "error",
616
+ "no-restricted-exports": [
617
+ "error",
618
+ {
619
+ restrictDefaultExports: {
620
+ direct: true,
621
+ named: true,
622
+ defaultFrom: true,
623
+ namedFrom: true,
624
+ namespaceFrom: true,
625
+ },
626
+ },
627
+ ],
628
+ "no-negated-condition": "error",
616
629
  "no-duplicate-imports": [
617
630
  "error",
618
631
  {
@@ -631,18 +644,6 @@ export default [
631
644
  ],
632
645
  "no-octal": "error",
633
646
  "no-dupe-args": "error",
634
- "no-restricted-exports": [
635
- "error",
636
- {
637
- restrictDefaultExports: {
638
- direct: true,
639
- named: true,
640
- defaultFrom: true,
641
- namedFrom: true,
642
- namespaceFrom: true,
643
- },
644
- },
645
- ],
646
647
  "no-restricted-syntax": [
647
648
  "error",
648
649
  {
@@ -654,7 +655,6 @@ export default [
654
655
  message: "Do not use `ReactDOM.*`. Use named imports instead.",
655
656
  },
656
657
  ],
657
- "no-negated-condition": "error",
658
658
  "no-octal-escape": "error",
659
659
  },
660
660
  },
@@ -2353,14 +2353,11 @@ export default [
2353
2353
  },
2354
2354
  rules: {
2355
2355
  "react/no-danger": "error",
2356
- "react/prop-types": "off",
2357
- "react/function-component-definition": [
2356
+ "react/jsx-boolean-value": [
2358
2357
  "error",
2359
- {
2360
- namedComponents: "function-declaration",
2361
- unnamedComponents: "arrow-function",
2362
- },
2358
+ "never",
2363
2359
  ],
2360
+ "react/react-in-jsx-scope": "off",
2364
2361
  "react/jsx-no-leaked-render": [
2365
2362
  "warn",
2366
2363
  {
@@ -2370,11 +2367,13 @@ export default [
2370
2367
  ],
2371
2368
  },
2372
2369
  ],
2373
- "react/jsx-boolean-value": [
2370
+ "react/function-component-definition": [
2374
2371
  "error",
2375
- "never",
2372
+ {
2373
+ namedComponents: "function-declaration",
2374
+ unnamedComponents: "arrow-function",
2375
+ },
2376
2376
  ],
2377
- "react/react-in-jsx-scope": "off",
2378
2377
  "react-hooks/rules-of-hooks": "error",
2379
2378
  "react-hooks/exhaustive-deps": "error",
2380
2379
  },
package/dist/react.json CHANGED
@@ -602,6 +602,19 @@
602
602
  "no-caller": "error",
603
603
  "no-eval": "error",
604
604
  "no-delete-var": "error",
605
+ "no-restricted-exports": [
606
+ "error",
607
+ {
608
+ "restrictDefaultExports": {
609
+ "direct": true,
610
+ "named": true,
611
+ "defaultFrom": true,
612
+ "namedFrom": true,
613
+ "namespaceFrom": true
614
+ }
615
+ }
616
+ ],
617
+ "no-negated-condition": "error",
605
618
  "no-duplicate-imports": [
606
619
  "error",
607
620
  {
@@ -620,18 +633,6 @@
620
633
  ],
621
634
  "no-octal": "error",
622
635
  "no-dupe-args": "error",
623
- "no-restricted-exports": [
624
- "error",
625
- {
626
- "restrictDefaultExports": {
627
- "direct": true,
628
- "named": true,
629
- "defaultFrom": true,
630
- "namedFrom": true,
631
- "namespaceFrom": true
632
- }
633
- }
634
- ],
635
636
  "no-restricted-syntax": [
636
637
  "error",
637
638
  {
@@ -643,7 +644,6 @@
643
644
  "message": "Do not use `ReactDOM.*`. Use named imports instead."
644
645
  }
645
646
  ],
646
- "no-negated-condition": "error",
647
647
  "no-octal-escape": "error",
648
648
  "header/header": [
649
649
  2,
@@ -932,14 +932,11 @@
932
932
  "sonarjs/no-implicit-global": "off",
933
933
  "sonarjs/no-control-regex": "off",
934
934
  "react/no-danger": "error",
935
- "react/prop-types": "off",
936
- "react/function-component-definition": [
935
+ "react/jsx-boolean-value": [
937
936
  "error",
938
- {
939
- "namedComponents": "function-declaration",
940
- "unnamedComponents": "arrow-function"
941
- }
937
+ "never"
942
938
  ],
939
+ "react/react-in-jsx-scope": "off",
943
940
  "react/jsx-no-leaked-render": [
944
941
  "warn",
945
942
  {
@@ -949,11 +946,13 @@
949
946
  ]
950
947
  }
951
948
  ],
952
- "react/jsx-boolean-value": [
949
+ "react/function-component-definition": [
953
950
  "error",
954
- "never"
951
+ {
952
+ "namedComponents": "function-declaration",
953
+ "unnamedComponents": "arrow-function"
954
+ }
955
955
  ],
956
- "react/react-in-jsx-scope": "off",
957
956
  "react-hooks/rules-of-hooks": "error",
958
957
  "react-hooks/exhaustive-deps": "error"
959
958
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/eslint-config",
3
- "version": "11.57.0-alpha.3",
3
+ "version": "11.57.0-alpha.5",
4
4
  "license": "MIT",
5
5
  "author": "GoodData",
6
6
  "repository": {
@@ -152,7 +152,7 @@
152
152
  "storybook": "^10.5.6",
153
153
  "typescript": "7.0.2",
154
154
  "vite-node": "5.3.0",
155
- "@gooddata/lint-config": "11.57.0-alpha.3"
155
+ "@gooddata/lint-config": "11.57.0-alpha.5"
156
156
  },
157
157
  "peerDependencies": {
158
158
  "@typescript-eslint/eslint-plugin": "8.58.0",