@gooddata/eslint-config 11.57.0-alpha.1 → 11.57.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 (48) hide show
  1. package/PACKAGES_V9.md +2 -1
  2. package/PACKAGES_V9_OXLINT.md +1 -1
  3. package/dist/base.js +46 -34
  4. package/dist/base.json +46 -34
  5. package/dist/browser-esm.js +46 -34
  6. package/dist/browser-esm.json +46 -34
  7. package/dist/esm-playwright.js +46 -35
  8. package/dist/esm-playwright.json +46 -35
  9. package/dist/esm-react-playwright.js +46 -35
  10. package/dist/esm-react-playwright.json +46 -35
  11. package/dist/esm-react-storybook.js +46 -34
  12. package/dist/esm-react-storybook.json +46 -34
  13. package/dist/esm-react-vitest-rtl.js +46 -34
  14. package/dist/esm-react-vitest-rtl.json +46 -34
  15. package/dist/esm-react-vitest.js +46 -34
  16. package/dist/esm-react-vitest.json +46 -34
  17. package/dist/esm-react.js +46 -34
  18. package/dist/esm-react.json +46 -34
  19. package/dist/esm-vitest-rtl.js +46 -34
  20. package/dist/esm-vitest-rtl.json +46 -34
  21. package/dist/esm-vitest.js +46 -34
  22. package/dist/esm-vitest.json +46 -34
  23. package/dist/esm.js +46 -34
  24. package/dist/esm.json +46 -34
  25. package/dist/oxlint-base.js +2 -1135
  26. package/dist/oxlint-browser-esm.js +2 -1135
  27. package/dist/oxlint-esm-playwright.js +2 -1135
  28. package/dist/oxlint-esm-react-playwright.js +2 -1135
  29. package/dist/oxlint-esm-react-storybook.js +2 -1135
  30. package/dist/oxlint-esm-react-vitest-rtl.js +2 -1135
  31. package/dist/oxlint-esm-react-vitest.js +2 -1135
  32. package/dist/oxlint-esm-react.js +2 -1135
  33. package/dist/oxlint-esm-vitest-rtl.js +2 -1135
  34. package/dist/oxlint-esm-vitest.js +2 -1135
  35. package/dist/oxlint-esm.js +2 -1135
  36. package/dist/oxlint-react-playwright.js +2 -1135
  37. package/dist/oxlint-react-vitest-rtl.js +2 -1135
  38. package/dist/oxlint-react-vitest.js +2 -1135
  39. package/dist/oxlint-react.js +2 -1135
  40. package/dist/react-playwright.js +46 -35
  41. package/dist/react-playwright.json +46 -35
  42. package/dist/react-vitest-rtl.js +46 -34
  43. package/dist/react-vitest-rtl.json +46 -34
  44. package/dist/react-vitest.js +46 -34
  45. package/dist/react-vitest.json +46 -34
  46. package/dist/react.js +46 -34
  47. package/dist/react.json +46 -34
  48. package/package.json +3 -3
package/PACKAGES_V9.md CHANGED
@@ -4,7 +4,7 @@ This table shows which packages are required for each configuration.
4
4
 
5
5
  | Package | base | browser-esm | esm | esm-playwright | esm-react | esm-react-playwright | esm-react-storybook | esm-react-vitest | esm-react-vitest-rtl | esm-vitest | esm-vitest-rtl | react | react-playwright | react-vitest | react-vitest-rtl |
6
6
  | --------------------------------- | ------ | ----------- | ------ | -------------- | --------- | -------------------- | ------------------- | ---------------- | -------------------- | ---------- | -------------- | ------ | ---------------- | ------------ | ---------------- |
7
- | @eslint/js | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 |
7
+ | @eslint/js | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 | 9.39.5 |
8
8
  | @testing-library/dom | | | | | | | 10.4.1 | | | | | | | | |
9
9
  | @typescript-eslint/eslint-plugin | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 |
10
10
  | @typescript-eslint/parser | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 |
@@ -24,6 +24,7 @@ This table shows which packages are required for each configuration.
24
24
  | eslint-plugin-storybook | | | | | | | 10.5.6 | | | | | | | | |
25
25
  | eslint-plugin-testing-library | | | | | | | | | 7.16.2 | | 7.16.2 | | | | 7.16.2 |
26
26
  | globals | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 |
27
+ | jiti | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 |
27
28
  | react | | | | | | | 19.1.1 | | | | | | | | |
28
29
  | react-dom | | | | | | | 19.1.1 | | | | | | | | |
29
30
  | storybook | | | | | | | ^10.5.6 | | | | | | | | |
@@ -4,10 +4,10 @@ This table shows which packages are required for each configuration.
4
4
 
5
5
  | Package | oxlint-base | oxlint-browser-esm | oxlint-esm | oxlint-esm-playwright | oxlint-esm-react | oxlint-esm-react-playwright | oxlint-esm-react-storybook | oxlint-esm-react-vitest | oxlint-esm-react-vitest-rtl | oxlint-esm-vitest | oxlint-esm-vitest-rtl | oxlint-react | oxlint-react-playwright | oxlint-react-vitest | oxlint-react-vitest-rtl |
6
6
  | -------------------------------- | ----------- | ------------------ | ---------- | --------------------- | ---------------- | --------------------------- | -------------------------- | ----------------------- | --------------------------- | ----------------- | --------------------- | ------------ | ----------------------- | ------------------- | ----------------------- |
7
- | @eslint/js | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 |
8
7
  | @typescript-eslint/eslint-plugin | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 |
9
8
  | @typescript-eslint/parser | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 | 8.58.0 |
10
9
  | eslint-plugin-jsdoc | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 |
11
10
  | eslint-plugin-react | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 |
12
11
  | eslint-plugin-react-hooks | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 |
13
12
  | globals | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 |
13
+ | jiti | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 | 2.6.1 |
package/dist/base.js CHANGED
@@ -1734,13 +1734,52 @@ export default [
1734
1734
  "**/vite.config.js",
1735
1735
  "**/vitest.config.ts",
1736
1736
  "**/vitest.config.js",
1737
+ "**/rolldown.config.ts",
1738
+ "**/rolldown.config.js",
1739
+ "**/playwright.config.ts",
1740
+ "**/playwright.config.js",
1741
+ "**/.dependency-cruiser.ts",
1737
1742
  "**/.dependency-cruiser.js",
1738
- "**/.dependency-cruiser.js",
1743
+ "**/.i18nrc.ts",
1744
+ "**/.i18nrc.js",
1739
1745
  ],
1740
1746
  rules: {
1741
1747
  "no-restricted-exports": "off",
1742
1748
  },
1743
1749
  },
1750
+ {
1751
+ files: [
1752
+ "**/*.ts",
1753
+ "**/*.tsx",
1754
+ "**/*.mts",
1755
+ "**/*.cts",
1756
+ ],
1757
+ rules: {
1758
+ "no-restricted-syntax": [
1759
+ "error",
1760
+ {
1761
+ selector: "MemberExpression[object.name='React']",
1762
+ message: "Do not use `React.*`. Use named imports instead.",
1763
+ },
1764
+ {
1765
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1766
+ message: "Do not use `React.*` types. Use named imports instead.",
1767
+ },
1768
+ {
1769
+ selector: "ExportNamespaceSpecifier",
1770
+ message: "Usage of 'export * as …' is forbidden.",
1771
+ },
1772
+ {
1773
+ selector: "ExportAllDeclaration",
1774
+ message: "Usage of `export * from` is forbidden.",
1775
+ },
1776
+ {
1777
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1778
+ message: "Do not use `import * as ...` from relative paths.",
1779
+ },
1780
+ ],
1781
+ },
1782
+ },
1744
1783
  {
1745
1784
  plugins: {
1746
1785
  headers: plugin0001,
@@ -1788,13 +1827,11 @@ export default [
1788
1827
  "getter-return": "off",
1789
1828
  "no-class-assign": "off",
1790
1829
  "no-const-assign": "off",
1791
- "no-dupe-args": "off",
1792
1830
  "no-dupe-class-members": "off",
1793
1831
  "no-dupe-keys": "off",
1794
1832
  "no-func-assign": "off",
1795
1833
  "no-import-assign": "off",
1796
1834
  "no-new-native-nonconstructor": "off",
1797
- "no-new-symbol": "off",
1798
1835
  "no-obj-calls": "off",
1799
1836
  "no-redeclare": "off",
1800
1837
  "no-setter-return": "off",
@@ -1808,8 +1845,9 @@ export default [
1808
1845
  "prefer-rest-params": "error",
1809
1846
  "prefer-spread": "error",
1810
1847
  "no-array-constructor": "off",
1811
- "no-unused-expressions": "off",
1812
1848
  "no-unused-vars": "off",
1849
+ "no-dupe-args": "off",
1850
+ "no-new-symbol": "off",
1813
1851
  "@typescript-eslint/no-array-constructor": "error",
1814
1852
  "@typescript-eslint/no-duplicate-enum-values": "error",
1815
1853
  "@typescript-eslint/no-empty-object-type": "error",
@@ -1824,11 +1862,11 @@ export default [
1824
1862
  "@typescript-eslint/prefer-as-const": "error",
1825
1863
  "@typescript-eslint/prefer-namespace-keyword": "error",
1826
1864
  "@typescript-eslint/triple-slash-reference": "error",
1827
- "@typescript-eslint/explicit-function-return-type": 0,
1828
- "@typescript-eslint/no-use-before-define": 0,
1829
- "@typescript-eslint/no-empty-function": 0,
1865
+ "@typescript-eslint/explicit-function-return-type": "off",
1866
+ "@typescript-eslint/no-use-before-define": "off",
1867
+ "@typescript-eslint/no-empty-function": "off",
1830
1868
  "@typescript-eslint/no-unused-vars": [
1831
- 2,
1869
+ "error",
1832
1870
  {
1833
1871
  varsIgnorePattern: "^_.*$",
1834
1872
  argsIgnorePattern: "^_.*$",
@@ -1867,34 +1905,8 @@ export default [
1867
1905
  },
1868
1906
  },
1869
1907
  ],
1870
- "@typescript-eslint/explicit-member-accessibility": "off",
1871
- "@typescript-eslint/interface-name-prefix": "off",
1872
- "@typescript-eslint/member-ordering": "off",
1873
1908
  "@typescript-eslint/no-inferrable-types": "off",
1874
1909
  "@typescript-eslint/no-non-null-assertion": "off",
1875
- "no-restricted-syntax": [
1876
- "error",
1877
- {
1878
- selector: "MemberExpression[object.name='React']",
1879
- message: "Do not use `React.*`. Use named imports instead.",
1880
- },
1881
- {
1882
- selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1883
- message: "Do not use `React.*` types. Use named imports instead.",
1884
- },
1885
- {
1886
- selector: "ExportNamespaceSpecifier",
1887
- message: "Usage of 'export * as …' is forbidden.",
1888
- },
1889
- {
1890
- selector: "ExportAllDeclaration",
1891
- message: "Usage of `export * from` is forbidden.",
1892
- },
1893
- {
1894
- selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1895
- message: "Do not use `import * as ...` from relative paths.",
1896
- },
1897
- ],
1898
1910
  "@typescript-eslint/consistent-type-imports": [
1899
1911
  "error",
1900
1912
  {
package/dist/base.json CHANGED
@@ -2009,13 +2009,52 @@
2009
2009
  "**/vite.config.js",
2010
2010
  "**/vitest.config.ts",
2011
2011
  "**/vitest.config.js",
2012
+ "**/rolldown.config.ts",
2013
+ "**/rolldown.config.js",
2014
+ "**/playwright.config.ts",
2015
+ "**/playwright.config.js",
2016
+ "**/.dependency-cruiser.ts",
2012
2017
  "**/.dependency-cruiser.js",
2013
- "**/.dependency-cruiser.js"
2018
+ "**/.i18nrc.ts",
2019
+ "**/.i18nrc.js"
2014
2020
  ],
2015
2021
  "rules": {
2016
2022
  "no-restricted-exports": "off"
2017
2023
  }
2018
2024
  },
2025
+ {
2026
+ "files": [
2027
+ "**/*.ts",
2028
+ "**/*.tsx",
2029
+ "**/*.mts",
2030
+ "**/*.cts"
2031
+ ],
2032
+ "rules": {
2033
+ "no-restricted-syntax": [
2034
+ "error",
2035
+ {
2036
+ "selector": "MemberExpression[object.name='React']",
2037
+ "message": "Do not use `React.*`. Use named imports instead."
2038
+ },
2039
+ {
2040
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2041
+ "message": "Do not use `React.*` types. Use named imports instead."
2042
+ },
2043
+ {
2044
+ "selector": "ExportNamespaceSpecifier",
2045
+ "message": "Usage of 'export * as …' is forbidden."
2046
+ },
2047
+ {
2048
+ "selector": "ExportAllDeclaration",
2049
+ "message": "Usage of `export * from` is forbidden."
2050
+ },
2051
+ {
2052
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2053
+ "message": "Do not use `import * as ...` from relative paths."
2054
+ }
2055
+ ]
2056
+ }
2057
+ },
2019
2058
  {
2020
2059
  "files": [
2021
2060
  "**/*.ts",
@@ -2028,13 +2067,11 @@
2028
2067
  "getter-return": "off",
2029
2068
  "no-class-assign": "off",
2030
2069
  "no-const-assign": "off",
2031
- "no-dupe-args": "off",
2032
2070
  "no-dupe-class-members": "off",
2033
2071
  "no-dupe-keys": "off",
2034
2072
  "no-func-assign": "off",
2035
2073
  "no-import-assign": "off",
2036
2074
  "no-new-native-nonconstructor": "off",
2037
- "no-new-symbol": "off",
2038
2075
  "no-obj-calls": "off",
2039
2076
  "no-redeclare": "off",
2040
2077
  "no-setter-return": "off",
@@ -2048,8 +2085,9 @@
2048
2085
  "prefer-rest-params": "error",
2049
2086
  "prefer-spread": "error",
2050
2087
  "no-array-constructor": "off",
2051
- "no-unused-expressions": "off",
2052
2088
  "no-unused-vars": "off",
2089
+ "no-dupe-args": "off",
2090
+ "no-new-symbol": "off",
2053
2091
  "@typescript-eslint/no-array-constructor": "error",
2054
2092
  "@typescript-eslint/no-duplicate-enum-values": "error",
2055
2093
  "@typescript-eslint/no-empty-object-type": "error",
@@ -2064,11 +2102,11 @@
2064
2102
  "@typescript-eslint/prefer-as-const": "error",
2065
2103
  "@typescript-eslint/prefer-namespace-keyword": "error",
2066
2104
  "@typescript-eslint/triple-slash-reference": "error",
2067
- "@typescript-eslint/explicit-function-return-type": 0,
2068
- "@typescript-eslint/no-use-before-define": 0,
2069
- "@typescript-eslint/no-empty-function": 0,
2105
+ "@typescript-eslint/explicit-function-return-type": "off",
2106
+ "@typescript-eslint/no-use-before-define": "off",
2107
+ "@typescript-eslint/no-empty-function": "off",
2070
2108
  "@typescript-eslint/no-unused-vars": [
2071
- 2,
2109
+ "error",
2072
2110
  {
2073
2111
  "varsIgnorePattern": "^_.*$",
2074
2112
  "argsIgnorePattern": "^_.*$"
@@ -2107,34 +2145,8 @@
2107
2145
  }
2108
2146
  }
2109
2147
  ],
2110
- "@typescript-eslint/explicit-member-accessibility": "off",
2111
- "@typescript-eslint/interface-name-prefix": "off",
2112
- "@typescript-eslint/member-ordering": "off",
2113
2148
  "@typescript-eslint/no-inferrable-types": "off",
2114
2149
  "@typescript-eslint/no-non-null-assertion": "off",
2115
- "no-restricted-syntax": [
2116
- "error",
2117
- {
2118
- "selector": "MemberExpression[object.name='React']",
2119
- "message": "Do not use `React.*`. Use named imports instead."
2120
- },
2121
- {
2122
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2123
- "message": "Do not use `React.*` types. Use named imports instead."
2124
- },
2125
- {
2126
- "selector": "ExportNamespaceSpecifier",
2127
- "message": "Usage of 'export * as …' is forbidden."
2128
- },
2129
- {
2130
- "selector": "ExportAllDeclaration",
2131
- "message": "Usage of `export * from` is forbidden."
2132
- },
2133
- {
2134
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2135
- "message": "Do not use `import * as ...` from relative paths."
2136
- }
2137
- ],
2138
2150
  "@typescript-eslint/consistent-type-imports": [
2139
2151
  "error",
2140
2152
  {
@@ -1735,13 +1735,52 @@ export default [
1735
1735
  "**/vite.config.js",
1736
1736
  "**/vitest.config.ts",
1737
1737
  "**/vitest.config.js",
1738
+ "**/rolldown.config.ts",
1739
+ "**/rolldown.config.js",
1740
+ "**/playwright.config.ts",
1741
+ "**/playwright.config.js",
1742
+ "**/.dependency-cruiser.ts",
1738
1743
  "**/.dependency-cruiser.js",
1739
- "**/.dependency-cruiser.js",
1744
+ "**/.i18nrc.ts",
1745
+ "**/.i18nrc.js",
1740
1746
  ],
1741
1747
  rules: {
1742
1748
  "no-restricted-exports": "off",
1743
1749
  },
1744
1750
  },
1751
+ {
1752
+ files: [
1753
+ "**/*.ts",
1754
+ "**/*.tsx",
1755
+ "**/*.mts",
1756
+ "**/*.cts",
1757
+ ],
1758
+ rules: {
1759
+ "no-restricted-syntax": [
1760
+ "error",
1761
+ {
1762
+ selector: "MemberExpression[object.name='React']",
1763
+ message: "Do not use `React.*`. Use named imports instead.",
1764
+ },
1765
+ {
1766
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1767
+ message: "Do not use `React.*` types. Use named imports instead.",
1768
+ },
1769
+ {
1770
+ selector: "ExportNamespaceSpecifier",
1771
+ message: "Usage of 'export * as …' is forbidden.",
1772
+ },
1773
+ {
1774
+ selector: "ExportAllDeclaration",
1775
+ message: "Usage of `export * from` is forbidden.",
1776
+ },
1777
+ {
1778
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1779
+ message: "Do not use `import * as ...` from relative paths.",
1780
+ },
1781
+ ],
1782
+ },
1783
+ },
1745
1784
  {
1746
1785
  plugins: {
1747
1786
  headers: plugin0001,
@@ -1789,13 +1828,11 @@ export default [
1789
1828
  "getter-return": "off",
1790
1829
  "no-class-assign": "off",
1791
1830
  "no-const-assign": "off",
1792
- "no-dupe-args": "off",
1793
1831
  "no-dupe-class-members": "off",
1794
1832
  "no-dupe-keys": "off",
1795
1833
  "no-func-assign": "off",
1796
1834
  "no-import-assign": "off",
1797
1835
  "no-new-native-nonconstructor": "off",
1798
- "no-new-symbol": "off",
1799
1836
  "no-obj-calls": "off",
1800
1837
  "no-redeclare": "off",
1801
1838
  "no-setter-return": "off",
@@ -1809,8 +1846,9 @@ export default [
1809
1846
  "prefer-rest-params": "error",
1810
1847
  "prefer-spread": "error",
1811
1848
  "no-array-constructor": "off",
1812
- "no-unused-expressions": "off",
1813
1849
  "no-unused-vars": "off",
1850
+ "no-dupe-args": "off",
1851
+ "no-new-symbol": "off",
1814
1852
  "@typescript-eslint/no-array-constructor": "error",
1815
1853
  "@typescript-eslint/no-duplicate-enum-values": "error",
1816
1854
  "@typescript-eslint/no-empty-object-type": "error",
@@ -1825,11 +1863,11 @@ export default [
1825
1863
  "@typescript-eslint/prefer-as-const": "error",
1826
1864
  "@typescript-eslint/prefer-namespace-keyword": "error",
1827
1865
  "@typescript-eslint/triple-slash-reference": "error",
1828
- "@typescript-eslint/explicit-function-return-type": 0,
1829
- "@typescript-eslint/no-use-before-define": 0,
1830
- "@typescript-eslint/no-empty-function": 0,
1866
+ "@typescript-eslint/explicit-function-return-type": "off",
1867
+ "@typescript-eslint/no-use-before-define": "off",
1868
+ "@typescript-eslint/no-empty-function": "off",
1831
1869
  "@typescript-eslint/no-unused-vars": [
1832
- 2,
1870
+ "error",
1833
1871
  {
1834
1872
  varsIgnorePattern: "^_.*$",
1835
1873
  argsIgnorePattern: "^_.*$",
@@ -1868,34 +1906,8 @@ export default [
1868
1906
  },
1869
1907
  },
1870
1908
  ],
1871
- "@typescript-eslint/explicit-member-accessibility": "off",
1872
- "@typescript-eslint/interface-name-prefix": "off",
1873
- "@typescript-eslint/member-ordering": "off",
1874
1909
  "@typescript-eslint/no-inferrable-types": "off",
1875
1910
  "@typescript-eslint/no-non-null-assertion": "off",
1876
- "no-restricted-syntax": [
1877
- "error",
1878
- {
1879
- selector: "MemberExpression[object.name='React']",
1880
- message: "Do not use `React.*`. Use named imports instead.",
1881
- },
1882
- {
1883
- selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1884
- message: "Do not use `React.*` types. Use named imports instead.",
1885
- },
1886
- {
1887
- selector: "ExportNamespaceSpecifier",
1888
- message: "Usage of 'export * as …' is forbidden.",
1889
- },
1890
- {
1891
- selector: "ExportAllDeclaration",
1892
- message: "Usage of `export * from` is forbidden.",
1893
- },
1894
- {
1895
- selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1896
- message: "Do not use `import * as ...` from relative paths.",
1897
- },
1898
- ],
1899
1911
  "@typescript-eslint/consistent-type-imports": [
1900
1912
  "error",
1901
1913
  {
@@ -2011,13 +2011,52 @@
2011
2011
  "**/vite.config.js",
2012
2012
  "**/vitest.config.ts",
2013
2013
  "**/vitest.config.js",
2014
+ "**/rolldown.config.ts",
2015
+ "**/rolldown.config.js",
2016
+ "**/playwright.config.ts",
2017
+ "**/playwright.config.js",
2018
+ "**/.dependency-cruiser.ts",
2014
2019
  "**/.dependency-cruiser.js",
2015
- "**/.dependency-cruiser.js"
2020
+ "**/.i18nrc.ts",
2021
+ "**/.i18nrc.js"
2016
2022
  ],
2017
2023
  "rules": {
2018
2024
  "no-restricted-exports": "off"
2019
2025
  }
2020
2026
  },
2027
+ {
2028
+ "files": [
2029
+ "**/*.ts",
2030
+ "**/*.tsx",
2031
+ "**/*.mts",
2032
+ "**/*.cts"
2033
+ ],
2034
+ "rules": {
2035
+ "no-restricted-syntax": [
2036
+ "error",
2037
+ {
2038
+ "selector": "MemberExpression[object.name='React']",
2039
+ "message": "Do not use `React.*`. Use named imports instead."
2040
+ },
2041
+ {
2042
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2043
+ "message": "Do not use `React.*` types. Use named imports instead."
2044
+ },
2045
+ {
2046
+ "selector": "ExportNamespaceSpecifier",
2047
+ "message": "Usage of 'export * as …' is forbidden."
2048
+ },
2049
+ {
2050
+ "selector": "ExportAllDeclaration",
2051
+ "message": "Usage of `export * from` is forbidden."
2052
+ },
2053
+ {
2054
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2055
+ "message": "Do not use `import * as ...` from relative paths."
2056
+ }
2057
+ ]
2058
+ }
2059
+ },
2021
2060
  {
2022
2061
  "files": [
2023
2062
  "**/*.ts",
@@ -2030,13 +2069,11 @@
2030
2069
  "getter-return": "off",
2031
2070
  "no-class-assign": "off",
2032
2071
  "no-const-assign": "off",
2033
- "no-dupe-args": "off",
2034
2072
  "no-dupe-class-members": "off",
2035
2073
  "no-dupe-keys": "off",
2036
2074
  "no-func-assign": "off",
2037
2075
  "no-import-assign": "off",
2038
2076
  "no-new-native-nonconstructor": "off",
2039
- "no-new-symbol": "off",
2040
2077
  "no-obj-calls": "off",
2041
2078
  "no-redeclare": "off",
2042
2079
  "no-setter-return": "off",
@@ -2050,8 +2087,9 @@
2050
2087
  "prefer-rest-params": "error",
2051
2088
  "prefer-spread": "error",
2052
2089
  "no-array-constructor": "off",
2053
- "no-unused-expressions": "off",
2054
2090
  "no-unused-vars": "off",
2091
+ "no-dupe-args": "off",
2092
+ "no-new-symbol": "off",
2055
2093
  "@typescript-eslint/no-array-constructor": "error",
2056
2094
  "@typescript-eslint/no-duplicate-enum-values": "error",
2057
2095
  "@typescript-eslint/no-empty-object-type": "error",
@@ -2066,11 +2104,11 @@
2066
2104
  "@typescript-eslint/prefer-as-const": "error",
2067
2105
  "@typescript-eslint/prefer-namespace-keyword": "error",
2068
2106
  "@typescript-eslint/triple-slash-reference": "error",
2069
- "@typescript-eslint/explicit-function-return-type": 0,
2070
- "@typescript-eslint/no-use-before-define": 0,
2071
- "@typescript-eslint/no-empty-function": 0,
2107
+ "@typescript-eslint/explicit-function-return-type": "off",
2108
+ "@typescript-eslint/no-use-before-define": "off",
2109
+ "@typescript-eslint/no-empty-function": "off",
2072
2110
  "@typescript-eslint/no-unused-vars": [
2073
- 2,
2111
+ "error",
2074
2112
  {
2075
2113
  "varsIgnorePattern": "^_.*$",
2076
2114
  "argsIgnorePattern": "^_.*$"
@@ -2109,34 +2147,8 @@
2109
2147
  }
2110
2148
  }
2111
2149
  ],
2112
- "@typescript-eslint/explicit-member-accessibility": "off",
2113
- "@typescript-eslint/interface-name-prefix": "off",
2114
- "@typescript-eslint/member-ordering": "off",
2115
2150
  "@typescript-eslint/no-inferrable-types": "off",
2116
2151
  "@typescript-eslint/no-non-null-assertion": "off",
2117
- "no-restricted-syntax": [
2118
- "error",
2119
- {
2120
- "selector": "MemberExpression[object.name='React']",
2121
- "message": "Do not use `React.*`. Use named imports instead."
2122
- },
2123
- {
2124
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2125
- "message": "Do not use `React.*` types. Use named imports instead."
2126
- },
2127
- {
2128
- "selector": "ExportNamespaceSpecifier",
2129
- "message": "Usage of 'export * as …' is forbidden."
2130
- },
2131
- {
2132
- "selector": "ExportAllDeclaration",
2133
- "message": "Usage of `export * from` is forbidden."
2134
- },
2135
- {
2136
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2137
- "message": "Do not use `import * as ...` from relative paths."
2138
- }
2139
- ],
2140
2152
  "@typescript-eslint/consistent-type-imports": [
2141
2153
  "error",
2142
2154
  {