@gooddata/eslint-config 11.19.0-alpha.1 → 11.19.0-alpha.3

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 (58) hide show
  1. package/PACKAGES_V8.md +26 -26
  2. package/PACKAGES_V9.md +29 -27
  3. package/dist/base.js +36 -412
  4. package/dist/base.json +30 -8
  5. package/dist/browser-esm.js +405 -414
  6. package/dist/browser-esm.json +32 -9
  7. package/dist/browser.js +403 -412
  8. package/dist/browser.json +32 -9
  9. package/dist/esm-react-cypress.js +413 -422
  10. package/dist/esm-react-cypress.json +30 -8
  11. package/dist/esm-react-vitest-storybook.js +413 -422
  12. package/dist/esm-react-vitest-storybook.json +30 -8
  13. package/dist/esm-react-vitest.js +411 -420
  14. package/dist/esm-react-vitest.json +30 -8
  15. package/dist/esm-react.js +409 -418
  16. package/dist/esm-react.json +30 -8
  17. package/dist/esm-vitest.js +407 -416
  18. package/dist/esm-vitest.json +32 -9
  19. package/dist/esm.js +405 -414
  20. package/dist/esm.json +32 -9
  21. package/dist/oxfmt-browser-esm.d.ts +12 -0
  22. package/dist/oxfmt-browser-esm.js +1859 -0
  23. package/dist/oxfmt-browser.d.ts +12 -0
  24. package/dist/oxfmt-browser.js +1844 -0
  25. package/dist/oxfmt-esm-react-cypress.d.ts +12 -0
  26. package/dist/oxfmt-esm-react-cypress.js +1942 -0
  27. package/dist/oxfmt-esm-react-vitest-storybook.d.ts +12 -0
  28. package/dist/oxfmt-esm-react-vitest-storybook.js +1964 -0
  29. package/dist/oxfmt-esm-react-vitest.d.ts +12 -0
  30. package/dist/oxfmt-esm-react-vitest.js +1930 -0
  31. package/dist/oxfmt-esm-react.d.ts +12 -0
  32. package/dist/oxfmt-esm-react.js +1905 -0
  33. package/dist/oxfmt-esm-vitest.d.ts +12 -0
  34. package/dist/oxfmt-esm-vitest.js +1879 -0
  35. package/dist/oxfmt-esm.d.ts +12 -0
  36. package/dist/oxfmt-esm.js +1854 -0
  37. package/dist/oxfmt-react-cypress.d.ts +12 -0
  38. package/dist/oxfmt-react-cypress.js +1933 -0
  39. package/dist/oxfmt-react-vitest.d.ts +12 -0
  40. package/dist/oxfmt-react-vitest.js +1921 -0
  41. package/dist/oxfmt-react.d.ts +12 -0
  42. package/dist/oxfmt-react.js +1896 -0
  43. package/dist/oxfmt-vitest.d.ts +12 -0
  44. package/dist/oxfmt-vitest.js +2231 -0
  45. package/dist/oxfmt.d.ts +12 -0
  46. package/dist/oxfmt.js +1839 -0
  47. package/dist/prettier.d.ts +12 -0
  48. package/dist/prettier.js +2197 -0
  49. package/dist/prettier.json +1451 -0
  50. package/dist/react-cypress.js +411 -420
  51. package/dist/react-cypress.json +30 -8
  52. package/dist/react-vitest.js +409 -418
  53. package/dist/react-vitest.json +30 -8
  54. package/dist/react.js +407 -416
  55. package/dist/react.json +30 -8
  56. package/dist/vitest.js +771 -414
  57. package/dist/vitest.json +33 -9
  58. package/package.json +49 -7
package/dist/base.js CHANGED
@@ -5,11 +5,10 @@ import plugin0001 from "eslint-plugin-headers";
5
5
  import plugin0002 from "@typescript-eslint/eslint-plugin";
6
6
  import plugin0003 from "@typescript-eslint/parser";
7
7
  import plugin0004 from "eslint-plugin-no-barrel-files";
8
- import plugin0005 from "eslint-plugin-import";
8
+ import plugin0005 from "eslint-plugin-import-x";
9
9
  import plugin0006 from "eslint-plugin-jsdoc";
10
10
  import plugin0007 from "eslint-plugin-no-only-tests";
11
- import plugin0008 from "eslint-plugin-prettier";
12
- import plugin0009 from "eslint-plugin-sonarjs";
11
+ import plugin0008 from "eslint-plugin-sonarjs";
13
12
 
14
13
  export default [
15
14
  {
@@ -1390,35 +1389,26 @@ export default [
1390
1389
  },
1391
1390
  {
1392
1391
  plugins: {
1393
- import: plugin0005,
1392
+ "import-x": plugin0005,
1394
1393
  },
1395
1394
  settings: {
1396
- "import/resolver": {
1397
- typescript: {
1398
- alwaysTryTypes: true,
1399
- },
1400
- node: {
1401
- extensions: [
1402
- ".ts",
1403
- ".tsx",
1404
- ".js",
1405
- ".jsx",
1406
- ".mjs",
1407
- ".cjs",
1408
- ],
1409
- },
1410
- },
1395
+ "import-x/extensions": [
1396
+ ".js",
1397
+ ".jsx",
1398
+ ".mjs",
1399
+ ".cjs",
1400
+ ],
1411
1401
  },
1412
1402
  rules: {
1413
- "import/no-unresolved": "error",
1414
- "import/named": "error",
1415
- "import/namespace": "error",
1416
- "import/default": "error",
1417
- "import/export": "error",
1418
- "import/no-named-as-default": "warn",
1419
- "import/no-named-as-default-member": "warn",
1420
- "import/no-duplicates": "warn",
1421
- "import/order": [
1403
+ "import-x/no-unresolved": "error",
1404
+ "import-x/named": "error",
1405
+ "import-x/namespace": "error",
1406
+ "import-x/default": "error",
1407
+ "import-x/export": "error",
1408
+ "import-x/no-named-as-default": "warn",
1409
+ "import-x/no-named-as-default-member": "warn",
1410
+ "import-x/no-duplicates": "warn",
1411
+ "import-x/order": [
1422
1412
  "error",
1423
1413
  {
1424
1414
  pathGroups: [
@@ -1453,16 +1443,18 @@ export default [
1453
1443
  "newlines-between": "always",
1454
1444
  },
1455
1445
  ],
1456
- "import/no-unassigned-import": "error",
1446
+ "import-x/no-unassigned-import": "error",
1457
1447
  },
1458
1448
  },
1459
1449
  {
1460
1450
  files: [
1461
1451
  "**/*.ts",
1452
+ "**/*.cts",
1453
+ "**/*.mts",
1462
1454
  "**/*.tsx",
1463
1455
  ],
1464
1456
  settings: {
1465
- "import/extensions": [
1457
+ "import-x/extensions": [
1466
1458
  ".ts",
1467
1459
  ".cts",
1468
1460
  ".mts",
@@ -1472,11 +1464,11 @@ export default [
1472
1464
  ".mjs",
1473
1465
  ".cjs",
1474
1466
  ],
1475
- "import/external-module-folders": [
1467
+ "import-x/external-module-folders": [
1476
1468
  "node_modules",
1477
1469
  "node_modules/@types",
1478
1470
  ],
1479
- "import/parsers": {
1471
+ "import-x/parsers": {
1480
1472
  "@typescript-eslint/parser": [
1481
1473
  ".ts",
1482
1474
  ".cts",
@@ -1484,23 +1476,14 @@ export default [
1484
1476
  ".tsx",
1485
1477
  ],
1486
1478
  },
1487
- "import/resolver": {
1488
- node: {
1489
- extensions: [
1490
- ".ts",
1491
- ".cts",
1492
- ".mts",
1493
- ".tsx",
1494
- ".js",
1495
- ".jsx",
1496
- ".mjs",
1497
- ".cjs",
1498
- ],
1479
+ "import-x/resolver": {
1480
+ typescript: {
1481
+ alwaysTryTypes: true,
1499
1482
  },
1500
1483
  },
1501
1484
  },
1502
1485
  rules: {
1503
- "import/named": "off",
1486
+ "import-x/named": "off",
1504
1487
  },
1505
1488
  },
1506
1489
  {
@@ -1539,373 +1522,7 @@ export default [
1539
1522
  },
1540
1523
  {
1541
1524
  plugins: {
1542
- prettier: plugin0008,
1543
- },
1544
- rules: {
1545
- curly: 0,
1546
- "no-unexpected-multiline": 0,
1547
- "@stylistic/lines-around-comment": 0,
1548
- "@stylistic/max-len": 0,
1549
- "@stylistic/no-confusing-arrow": 0,
1550
- "@stylistic/no-mixed-operators": 0,
1551
- "@stylistic/no-tabs": 0,
1552
- "@stylistic/quotes": 0,
1553
- "@stylistic/js/lines-around-comment": 0,
1554
- "@stylistic/js/max-len": 0,
1555
- "@stylistic/js/no-confusing-arrow": 0,
1556
- "@stylistic/js/no-mixed-operators": 0,
1557
- "@stylistic/js/no-tabs": 0,
1558
- "@stylistic/js/quotes": 0,
1559
- "@stylistic/ts/lines-around-comment": 0,
1560
- "@stylistic/ts/quotes": 0,
1561
- "@typescript-eslint/lines-around-comment": 0,
1562
- "@typescript-eslint/quotes": 0,
1563
- "babel/quotes": 0,
1564
- "unicorn/template-indent": 0,
1565
- "vue/html-self-closing": 0,
1566
- "vue/max-len": 0,
1567
- "@babel/object-curly-spacing": "off",
1568
- "@babel/semi": "off",
1569
- "@stylistic/array-bracket-newline": "off",
1570
- "@stylistic/array-bracket-spacing": "off",
1571
- "@stylistic/array-element-newline": "off",
1572
- "@stylistic/arrow-parens": "off",
1573
- "@stylistic/arrow-spacing": "off",
1574
- "@stylistic/block-spacing": "off",
1575
- "@stylistic/brace-style": "off",
1576
- "@stylistic/comma-dangle": "off",
1577
- "@stylistic/comma-spacing": "off",
1578
- "@stylistic/comma-style": "off",
1579
- "@stylistic/computed-property-spacing": "off",
1580
- "@stylistic/dot-location": "off",
1581
- "@stylistic/eol-last": "off",
1582
- "@stylistic/func-call-spacing": "off",
1583
- "@stylistic/function-call-argument-newline": "off",
1584
- "@stylistic/function-call-spacing": "off",
1585
- "@stylistic/function-paren-newline": "off",
1586
- "@stylistic/generator-star-spacing": "off",
1587
- "@stylistic/implicit-arrow-linebreak": "off",
1588
- "@stylistic/indent": "off",
1589
- "@stylistic/jsx-quotes": "off",
1590
- "@stylistic/key-spacing": "off",
1591
- "@stylistic/keyword-spacing": "off",
1592
- "@stylistic/linebreak-style": "off",
1593
- "@stylistic/max-statements-per-line": "off",
1594
- "@stylistic/multiline-ternary": "off",
1595
- "@stylistic/new-parens": "off",
1596
- "@stylistic/newline-per-chained-call": "off",
1597
- "@stylistic/no-extra-parens": "off",
1598
- "@stylistic/no-extra-semi": "off",
1599
- "@stylistic/no-floating-decimal": "off",
1600
- "@stylistic/no-mixed-spaces-and-tabs": "off",
1601
- "@stylistic/no-multi-spaces": "off",
1602
- "@stylistic/no-multiple-empty-lines": "off",
1603
- "@stylistic/no-trailing-spaces": "off",
1604
- "@stylistic/no-whitespace-before-property": "off",
1605
- "@stylistic/nonblock-statement-body-position": "off",
1606
- "@stylistic/object-curly-newline": "off",
1607
- "@stylistic/object-curly-spacing": "off",
1608
- "@stylistic/object-property-newline": "off",
1609
- "@stylistic/one-var-declaration-per-line": "off",
1610
- "@stylistic/operator-linebreak": "off",
1611
- "@stylistic/padded-blocks": "off",
1612
- "@stylistic/quote-props": "off",
1613
- "@stylistic/rest-spread-spacing": "off",
1614
- "@stylistic/semi": "off",
1615
- "@stylistic/semi-spacing": "off",
1616
- "@stylistic/semi-style": "off",
1617
- "@stylistic/space-before-blocks": "off",
1618
- "@stylistic/space-before-function-paren": "off",
1619
- "@stylistic/space-in-parens": "off",
1620
- "@stylistic/space-infix-ops": "off",
1621
- "@stylistic/space-unary-ops": "off",
1622
- "@stylistic/switch-colon-spacing": "off",
1623
- "@stylistic/template-curly-spacing": "off",
1624
- "@stylistic/template-tag-spacing": "off",
1625
- "@stylistic/wrap-iife": "off",
1626
- "@stylistic/wrap-regex": "off",
1627
- "@stylistic/yield-star-spacing": "off",
1628
- "@stylistic/member-delimiter-style": "off",
1629
- "@stylistic/type-annotation-spacing": "off",
1630
- "@stylistic/jsx-child-element-spacing": "off",
1631
- "@stylistic/jsx-closing-bracket-location": "off",
1632
- "@stylistic/jsx-closing-tag-location": "off",
1633
- "@stylistic/jsx-curly-newline": "off",
1634
- "@stylistic/jsx-curly-spacing": "off",
1635
- "@stylistic/jsx-equals-spacing": "off",
1636
- "@stylistic/jsx-first-prop-new-line": "off",
1637
- "@stylistic/jsx-indent": "off",
1638
- "@stylistic/jsx-indent-props": "off",
1639
- "@stylistic/jsx-max-props-per-line": "off",
1640
- "@stylistic/jsx-newline": "off",
1641
- "@stylistic/jsx-one-expression-per-line": "off",
1642
- "@stylistic/jsx-props-no-multi-spaces": "off",
1643
- "@stylistic/jsx-tag-spacing": "off",
1644
- "@stylistic/jsx-wrap-multilines": "off",
1645
- "@stylistic/indent-binary-ops": "off",
1646
- "@stylistic/type-generic-spacing": "off",
1647
- "@stylistic/type-named-tuple-spacing": "off",
1648
- "@stylistic/js/array-bracket-newline": "off",
1649
- "@stylistic/js/array-bracket-spacing": "off",
1650
- "@stylistic/js/array-element-newline": "off",
1651
- "@stylistic/js/arrow-parens": "off",
1652
- "@stylistic/js/arrow-spacing": "off",
1653
- "@stylistic/js/block-spacing": "off",
1654
- "@stylistic/js/brace-style": "off",
1655
- "@stylistic/js/comma-dangle": "off",
1656
- "@stylistic/js/comma-spacing": "off",
1657
- "@stylistic/js/comma-style": "off",
1658
- "@stylistic/js/computed-property-spacing": "off",
1659
- "@stylistic/js/dot-location": "off",
1660
- "@stylistic/js/eol-last": "off",
1661
- "@stylistic/js/func-call-spacing": "off",
1662
- "@stylistic/js/function-call-argument-newline": "off",
1663
- "@stylistic/js/function-call-spacing": "off",
1664
- "@stylistic/js/function-paren-newline": "off",
1665
- "@stylistic/js/generator-star-spacing": "off",
1666
- "@stylistic/js/implicit-arrow-linebreak": "off",
1667
- "@stylistic/js/indent": "off",
1668
- "@stylistic/js/jsx-quotes": "off",
1669
- "@stylistic/js/key-spacing": "off",
1670
- "@stylistic/js/keyword-spacing": "off",
1671
- "@stylistic/js/linebreak-style": "off",
1672
- "@stylistic/js/max-statements-per-line": "off",
1673
- "@stylistic/js/multiline-ternary": "off",
1674
- "@stylistic/js/new-parens": "off",
1675
- "@stylistic/js/newline-per-chained-call": "off",
1676
- "@stylistic/js/no-extra-parens": "off",
1677
- "@stylistic/js/no-extra-semi": "off",
1678
- "@stylistic/js/no-floating-decimal": "off",
1679
- "@stylistic/js/no-mixed-spaces-and-tabs": "off",
1680
- "@stylistic/js/no-multi-spaces": "off",
1681
- "@stylistic/js/no-multiple-empty-lines": "off",
1682
- "@stylistic/js/no-trailing-spaces": "off",
1683
- "@stylistic/js/no-whitespace-before-property": "off",
1684
- "@stylistic/js/nonblock-statement-body-position": "off",
1685
- "@stylistic/js/object-curly-newline": "off",
1686
- "@stylistic/js/object-curly-spacing": "off",
1687
- "@stylistic/js/object-property-newline": "off",
1688
- "@stylistic/js/one-var-declaration-per-line": "off",
1689
- "@stylistic/js/operator-linebreak": "off",
1690
- "@stylistic/js/padded-blocks": "off",
1691
- "@stylistic/js/quote-props": "off",
1692
- "@stylistic/js/rest-spread-spacing": "off",
1693
- "@stylistic/js/semi": "off",
1694
- "@stylistic/js/semi-spacing": "off",
1695
- "@stylistic/js/semi-style": "off",
1696
- "@stylistic/js/space-before-blocks": "off",
1697
- "@stylistic/js/space-before-function-paren": "off",
1698
- "@stylistic/js/space-in-parens": "off",
1699
- "@stylistic/js/space-infix-ops": "off",
1700
- "@stylistic/js/space-unary-ops": "off",
1701
- "@stylistic/js/switch-colon-spacing": "off",
1702
- "@stylistic/js/template-curly-spacing": "off",
1703
- "@stylistic/js/template-tag-spacing": "off",
1704
- "@stylistic/js/wrap-iife": "off",
1705
- "@stylistic/js/wrap-regex": "off",
1706
- "@stylistic/js/yield-star-spacing": "off",
1707
- "@stylistic/ts/block-spacing": "off",
1708
- "@stylistic/ts/brace-style": "off",
1709
- "@stylistic/ts/comma-dangle": "off",
1710
- "@stylistic/ts/comma-spacing": "off",
1711
- "@stylistic/ts/func-call-spacing": "off",
1712
- "@stylistic/ts/function-call-spacing": "off",
1713
- "@stylistic/ts/indent": "off",
1714
- "@stylistic/ts/key-spacing": "off",
1715
- "@stylistic/ts/keyword-spacing": "off",
1716
- "@stylistic/ts/member-delimiter-style": "off",
1717
- "@stylistic/ts/no-extra-parens": "off",
1718
- "@stylistic/ts/no-extra-semi": "off",
1719
- "@stylistic/ts/object-curly-spacing": "off",
1720
- "@stylistic/ts/semi": "off",
1721
- "@stylistic/ts/space-before-blocks": "off",
1722
- "@stylistic/ts/space-before-function-paren": "off",
1723
- "@stylistic/ts/space-infix-ops": "off",
1724
- "@stylistic/ts/type-annotation-spacing": "off",
1725
- "@stylistic/jsx/jsx-child-element-spacing": "off",
1726
- "@stylistic/jsx/jsx-closing-bracket-location": "off",
1727
- "@stylistic/jsx/jsx-closing-tag-location": "off",
1728
- "@stylistic/jsx/jsx-curly-newline": "off",
1729
- "@stylistic/jsx/jsx-curly-spacing": "off",
1730
- "@stylistic/jsx/jsx-equals-spacing": "off",
1731
- "@stylistic/jsx/jsx-first-prop-new-line": "off",
1732
- "@stylistic/jsx/jsx-indent": "off",
1733
- "@stylistic/jsx/jsx-indent-props": "off",
1734
- "@stylistic/jsx/jsx-max-props-per-line": "off",
1735
- "@typescript-eslint/block-spacing": "off",
1736
- "@typescript-eslint/brace-style": "off",
1737
- "@typescript-eslint/comma-dangle": "off",
1738
- "@typescript-eslint/comma-spacing": "off",
1739
- "@typescript-eslint/func-call-spacing": "off",
1740
- "@typescript-eslint/indent": "off",
1741
- "@typescript-eslint/key-spacing": "off",
1742
- "@typescript-eslint/keyword-spacing": "off",
1743
- "@typescript-eslint/member-delimiter-style": "off",
1744
- "@typescript-eslint/no-extra-parens": "off",
1745
- "@typescript-eslint/no-extra-semi": "off",
1746
- "@typescript-eslint/object-curly-spacing": "off",
1747
- "@typescript-eslint/semi": "off",
1748
- "@typescript-eslint/space-before-blocks": "off",
1749
- "@typescript-eslint/space-before-function-paren": "off",
1750
- "@typescript-eslint/space-infix-ops": "off",
1751
- "@typescript-eslint/type-annotation-spacing": "off",
1752
- "babel/object-curly-spacing": "off",
1753
- "babel/semi": "off",
1754
- "flowtype/boolean-style": "off",
1755
- "flowtype/delimiter-dangle": "off",
1756
- "flowtype/generic-spacing": "off",
1757
- "flowtype/object-type-curly-spacing": "off",
1758
- "flowtype/object-type-delimiter": "off",
1759
- "flowtype/quotes": "off",
1760
- "flowtype/semi": "off",
1761
- "flowtype/space-after-type-colon": "off",
1762
- "flowtype/space-before-generic-bracket": "off",
1763
- "flowtype/space-before-type-colon": "off",
1764
- "flowtype/union-intersection-spacing": "off",
1765
- "react/jsx-child-element-spacing": "off",
1766
- "react/jsx-closing-bracket-location": "off",
1767
- "react/jsx-closing-tag-location": "off",
1768
- "react/jsx-curly-newline": "off",
1769
- "react/jsx-curly-spacing": "off",
1770
- "react/jsx-equals-spacing": "off",
1771
- "react/jsx-first-prop-new-line": "off",
1772
- "react/jsx-indent": "off",
1773
- "react/jsx-indent-props": "off",
1774
- "react/jsx-max-props-per-line": "off",
1775
- "react/jsx-newline": "off",
1776
- "react/jsx-one-expression-per-line": "off",
1777
- "react/jsx-props-no-multi-spaces": "off",
1778
- "react/jsx-tag-spacing": "off",
1779
- "react/jsx-wrap-multilines": "off",
1780
- "standard/array-bracket-even-spacing": "off",
1781
- "standard/computed-property-even-spacing": "off",
1782
- "standard/object-curly-even-spacing": "off",
1783
- "unicorn/empty-brace-spaces": "off",
1784
- "unicorn/no-nested-ternary": "off",
1785
- "unicorn/number-literal-case": "off",
1786
- "vue/array-bracket-newline": "off",
1787
- "vue/array-bracket-spacing": "off",
1788
- "vue/array-element-newline": "off",
1789
- "vue/arrow-spacing": "off",
1790
- "vue/block-spacing": "off",
1791
- "vue/block-tag-newline": "off",
1792
- "vue/brace-style": "off",
1793
- "vue/comma-dangle": "off",
1794
- "vue/comma-spacing": "off",
1795
- "vue/comma-style": "off",
1796
- "vue/dot-location": "off",
1797
- "vue/func-call-spacing": "off",
1798
- "vue/html-closing-bracket-newline": "off",
1799
- "vue/html-closing-bracket-spacing": "off",
1800
- "vue/html-end-tags": "off",
1801
- "vue/html-indent": "off",
1802
- "vue/html-quotes": "off",
1803
- "vue/key-spacing": "off",
1804
- "vue/keyword-spacing": "off",
1805
- "vue/max-attributes-per-line": "off",
1806
- "vue/multiline-html-element-content-newline": "off",
1807
- "vue/multiline-ternary": "off",
1808
- "vue/mustache-interpolation-spacing": "off",
1809
- "vue/no-extra-parens": "off",
1810
- "vue/no-multi-spaces": "off",
1811
- "vue/no-spaces-around-equal-signs-in-attribute": "off",
1812
- "vue/object-curly-newline": "off",
1813
- "vue/object-curly-spacing": "off",
1814
- "vue/object-property-newline": "off",
1815
- "vue/operator-linebreak": "off",
1816
- "vue/quote-props": "off",
1817
- "vue/script-indent": "off",
1818
- "vue/singleline-html-element-content-newline": "off",
1819
- "vue/space-in-parens": "off",
1820
- "vue/space-infix-ops": "off",
1821
- "vue/space-unary-ops": "off",
1822
- "vue/template-curly-spacing": "off",
1823
- "space-unary-word-ops": "off",
1824
- "generator-star": "off",
1825
- "no-comma-dangle": "off",
1826
- "no-reserved-keys": "off",
1827
- "no-space-before-semi": "off",
1828
- "no-wrap-func": "off",
1829
- "space-after-function-name": "off",
1830
- "space-before-function-parentheses": "off",
1831
- "space-in-brackets": "off",
1832
- "no-arrow-condition": "off",
1833
- "space-after-keywords": "off",
1834
- "space-before-keywords": "off",
1835
- "space-return-throw-case": "off",
1836
- "no-spaced-func": "off",
1837
- "indent-legacy": "off",
1838
- "array-bracket-newline": "off",
1839
- "array-bracket-spacing": "off",
1840
- "array-element-newline": "off",
1841
- "arrow-parens": "off",
1842
- "arrow-spacing": "off",
1843
- "block-spacing": "off",
1844
- "brace-style": "off",
1845
- "comma-dangle": "off",
1846
- "comma-spacing": "off",
1847
- "comma-style": "off",
1848
- "computed-property-spacing": "off",
1849
- "dot-location": "off",
1850
- "eol-last": "off",
1851
- "func-call-spacing": "off",
1852
- "function-call-argument-newline": "off",
1853
- "function-paren-newline": "off",
1854
- "generator-star-spacing": "off",
1855
- "implicit-arrow-linebreak": "off",
1856
- indent: "off",
1857
- "jsx-quotes": "off",
1858
- "key-spacing": "off",
1859
- "keyword-spacing": "off",
1860
- "linebreak-style": "off",
1861
- "lines-around-comment": 0,
1862
- "max-len": 0,
1863
- "max-statements-per-line": "off",
1864
- "multiline-ternary": "off",
1865
- "new-parens": "off",
1866
- "newline-per-chained-call": "off",
1867
- "no-confusing-arrow": 0,
1868
- "no-extra-parens": "off",
1869
- "no-extra-semi": "off",
1870
- "no-floating-decimal": "off",
1871
- "no-mixed-operators": 0,
1872
- "no-mixed-spaces-and-tabs": "off",
1873
- "no-multi-spaces": "off",
1874
- "no-multiple-empty-lines": "off",
1875
- "no-tabs": 0,
1876
- "no-trailing-spaces": "off",
1877
- "no-whitespace-before-property": "off",
1878
- "nonblock-statement-body-position": "off",
1879
- "object-curly-newline": "off",
1880
- "object-curly-spacing": "off",
1881
- "object-property-newline": "off",
1882
- "one-var-declaration-per-line": "off",
1883
- "operator-linebreak": "off",
1884
- "padded-blocks": "off",
1885
- "quote-props": "off",
1886
- quotes: 0,
1887
- "rest-spread-spacing": "off",
1888
- semi: "off",
1889
- "semi-spacing": "off",
1890
- "semi-style": "off",
1891
- "space-before-blocks": "off",
1892
- "space-before-function-paren": "off",
1893
- "space-in-parens": "off",
1894
- "space-infix-ops": "off",
1895
- "space-unary-ops": "off",
1896
- "switch-colon-spacing": "off",
1897
- "template-curly-spacing": "off",
1898
- "template-tag-spacing": "off",
1899
- "wrap-iife": "off",
1900
- "wrap-regex": "off",
1901
- "yield-star-spacing": "off",
1902
- "react/jsx-space-before-closing": "off",
1903
- "prettier/prettier": "error",
1904
- },
1905
- },
1906
- {
1907
- plugins: {
1908
- sonarjs: plugin0009,
1525
+ sonarjs: plugin0008,
1909
1526
  },
1910
1527
  rules: {
1911
1528
  "sonarjs/function-name": "off",
@@ -2201,6 +1818,13 @@ export default [
2201
1818
  ignores: [
2202
1819
  "**/dist/**/*.*",
2203
1820
  "**/esm/**/*.*",
1821
+ "**/node_modules/**/*.*",
1822
+ "**/ci/results/**",
1823
+ "**/__version.ts",
1824
+ "**/cypress/results/**",
1825
+ "**/cypress/screenshots/**",
1826
+ "**/cypress/videos/**",
1827
+ "**/temp/**",
2204
1828
  ],
2205
1829
  },
2206
1830
  ];
package/dist/base.json CHANGED
@@ -2,14 +2,13 @@
2
2
  "plugins": [
3
3
  "header",
4
4
  "no-barrel-files",
5
- "import",
5
+ "import-x",
6
6
  "no-only-tests",
7
7
  "sonarjs"
8
8
  ],
9
9
  "extends": [
10
10
  "eslint:recommended",
11
- "plugin:import/errors",
12
- "plugin:prettier/recommended",
11
+ "plugin:import-x/recommended",
13
12
  "plugin:regexp/recommended",
14
13
  "plugin:sonarjs/recommended-legacy"
15
14
  ],
@@ -597,7 +596,7 @@
597
596
  }
598
597
  ],
599
598
  "no-barrel-files/no-barrel-files": "error",
600
- "import/order": [
599
+ "import-x/order": [
601
600
  "error",
602
601
  {
603
602
  "pathGroups": [
@@ -632,7 +631,7 @@
632
631
  "newlines-between": "always"
633
632
  }
634
633
  ],
635
- "import/no-unassigned-import": "error",
634
+ "import-x/no-unassigned-import": "error",
636
635
  "no-only-tests/no-only-tests": [
637
636
  "error",
638
637
  {
@@ -1386,7 +1385,7 @@
1386
1385
  "**/*.tsx"
1387
1386
  ],
1388
1387
  "extends": [
1389
- "plugin:import/typescript"
1388
+ "plugin:import-x/typescript"
1390
1389
  ]
1391
1390
  },
1392
1391
  {
@@ -1416,13 +1415,36 @@
1416
1415
  }
1417
1416
  }
1418
1417
  ],
1419
- "settings": {},
1418
+ "settings": {
1419
+ "import-x/resolver": {
1420
+ "typescript": {
1421
+ "alwaysTryTypes": true
1422
+ },
1423
+ "node": {
1424
+ "extensions": [
1425
+ ".ts",
1426
+ ".tsx",
1427
+ ".js",
1428
+ ".jsx",
1429
+ ".mjs",
1430
+ ".cjs"
1431
+ ]
1432
+ }
1433
+ }
1434
+ },
1420
1435
  "env": {
1421
1436
  "node": true,
1422
1437
  "es2022": true
1423
1438
  },
1424
1439
  "ignorePatterns": [
1425
1440
  "**/dist/**/*.*",
1426
- "**/esm/**/*.*"
1441
+ "**/esm/**/*.*",
1442
+ "**/node_modules/**/*.*",
1443
+ "**/ci/results/**",
1444
+ "**/__version.ts",
1445
+ "**/cypress/results/**",
1446
+ "**/cypress/screenshots/**",
1447
+ "**/cypress/videos/**",
1448
+ "**/temp/**"
1427
1449
  ]
1428
1450
  }