@gooddata/eslint-config 11.57.0-alpha.1 → 11.57.0-alpha.2

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 (47) hide show
  1. package/PACKAGES_V9_OXLINT.md +0 -1
  2. package/dist/base.js +46 -34
  3. package/dist/base.json +46 -34
  4. package/dist/browser-esm.js +46 -34
  5. package/dist/browser-esm.json +46 -34
  6. package/dist/esm-playwright.js +46 -35
  7. package/dist/esm-playwright.json +46 -35
  8. package/dist/esm-react-playwright.js +46 -35
  9. package/dist/esm-react-playwright.json +46 -35
  10. package/dist/esm-react-storybook.js +46 -34
  11. package/dist/esm-react-storybook.json +46 -34
  12. package/dist/esm-react-vitest-rtl.js +46 -34
  13. package/dist/esm-react-vitest-rtl.json +46 -34
  14. package/dist/esm-react-vitest.js +46 -34
  15. package/dist/esm-react-vitest.json +46 -34
  16. package/dist/esm-react.js +46 -34
  17. package/dist/esm-react.json +46 -34
  18. package/dist/esm-vitest-rtl.js +46 -34
  19. package/dist/esm-vitest-rtl.json +46 -34
  20. package/dist/esm-vitest.js +46 -34
  21. package/dist/esm-vitest.json +46 -34
  22. package/dist/esm.js +46 -34
  23. package/dist/esm.json +46 -34
  24. package/dist/oxlint-base.js +2 -1135
  25. package/dist/oxlint-browser-esm.js +2 -1135
  26. package/dist/oxlint-esm-playwright.js +2 -1135
  27. package/dist/oxlint-esm-react-playwright.js +2 -1135
  28. package/dist/oxlint-esm-react-storybook.js +2 -1135
  29. package/dist/oxlint-esm-react-vitest-rtl.js +2 -1135
  30. package/dist/oxlint-esm-react-vitest.js +2 -1135
  31. package/dist/oxlint-esm-react.js +2 -1135
  32. package/dist/oxlint-esm-vitest-rtl.js +2 -1135
  33. package/dist/oxlint-esm-vitest.js +2 -1135
  34. package/dist/oxlint-esm.js +2 -1135
  35. package/dist/oxlint-react-playwright.js +2 -1135
  36. package/dist/oxlint-react-vitest-rtl.js +2 -1135
  37. package/dist/oxlint-react-vitest.js +2 -1135
  38. package/dist/oxlint-react.js +2 -1135
  39. package/dist/react-playwright.js +46 -35
  40. package/dist/react-playwright.json +46 -35
  41. package/dist/react-vitest-rtl.js +46 -34
  42. package/dist/react-vitest-rtl.json +46 -34
  43. package/dist/react-vitest.js +46 -34
  44. package/dist/react-vitest.json +46 -34
  45. package/dist/react.js +46 -34
  46. package/dist/react.json +46 -34
  47. package/package.json +2 -3
@@ -1739,13 +1739,52 @@ export default [
1739
1739
  "**/vite.config.js",
1740
1740
  "**/vitest.config.ts",
1741
1741
  "**/vitest.config.js",
1742
+ "**/rolldown.config.ts",
1743
+ "**/rolldown.config.js",
1744
+ "**/playwright.config.ts",
1745
+ "**/playwright.config.js",
1746
+ "**/.dependency-cruiser.ts",
1742
1747
  "**/.dependency-cruiser.js",
1743
- "**/.dependency-cruiser.js",
1748
+ "**/.i18nrc.ts",
1749
+ "**/.i18nrc.js",
1744
1750
  ],
1745
1751
  rules: {
1746
1752
  "no-restricted-exports": "off",
1747
1753
  },
1748
1754
  },
1755
+ {
1756
+ files: [
1757
+ "**/*.ts",
1758
+ "**/*.tsx",
1759
+ "**/*.mts",
1760
+ "**/*.cts",
1761
+ ],
1762
+ rules: {
1763
+ "no-restricted-syntax": [
1764
+ "error",
1765
+ {
1766
+ selector: "MemberExpression[object.name='React']",
1767
+ message: "Do not use `React.*`. Use named imports instead.",
1768
+ },
1769
+ {
1770
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1771
+ message: "Do not use `React.*` types. Use named imports instead.",
1772
+ },
1773
+ {
1774
+ selector: "ExportNamespaceSpecifier",
1775
+ message: "Usage of 'export * as …' is forbidden.",
1776
+ },
1777
+ {
1778
+ selector: "ExportAllDeclaration",
1779
+ message: "Usage of `export * from` is forbidden.",
1780
+ },
1781
+ {
1782
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1783
+ message: "Do not use `import * as ...` from relative paths.",
1784
+ },
1785
+ ],
1786
+ },
1787
+ },
1749
1788
  {
1750
1789
  plugins: {
1751
1790
  headers: plugin0001,
@@ -1793,13 +1832,11 @@ export default [
1793
1832
  "getter-return": "off",
1794
1833
  "no-class-assign": "off",
1795
1834
  "no-const-assign": "off",
1796
- "no-dupe-args": "off",
1797
1835
  "no-dupe-class-members": "off",
1798
1836
  "no-dupe-keys": "off",
1799
1837
  "no-func-assign": "off",
1800
1838
  "no-import-assign": "off",
1801
1839
  "no-new-native-nonconstructor": "off",
1802
- "no-new-symbol": "off",
1803
1840
  "no-obj-calls": "off",
1804
1841
  "no-redeclare": "off",
1805
1842
  "no-setter-return": "off",
@@ -1813,8 +1850,9 @@ export default [
1813
1850
  "prefer-rest-params": "error",
1814
1851
  "prefer-spread": "error",
1815
1852
  "no-array-constructor": "off",
1816
- "no-unused-expressions": "off",
1817
1853
  "no-unused-vars": "off",
1854
+ "no-dupe-args": "off",
1855
+ "no-new-symbol": "off",
1818
1856
  "@typescript-eslint/no-array-constructor": "error",
1819
1857
  "@typescript-eslint/no-duplicate-enum-values": "error",
1820
1858
  "@typescript-eslint/no-empty-object-type": "error",
@@ -1829,11 +1867,11 @@ export default [
1829
1867
  "@typescript-eslint/prefer-as-const": "error",
1830
1868
  "@typescript-eslint/prefer-namespace-keyword": "error",
1831
1869
  "@typescript-eslint/triple-slash-reference": "error",
1832
- "@typescript-eslint/explicit-function-return-type": 0,
1833
- "@typescript-eslint/no-use-before-define": 0,
1834
- "@typescript-eslint/no-empty-function": 0,
1870
+ "@typescript-eslint/explicit-function-return-type": "off",
1871
+ "@typescript-eslint/no-use-before-define": "off",
1872
+ "@typescript-eslint/no-empty-function": "off",
1835
1873
  "@typescript-eslint/no-unused-vars": [
1836
- 2,
1874
+ "error",
1837
1875
  {
1838
1876
  varsIgnorePattern: "^_.*$",
1839
1877
  argsIgnorePattern: "^_.*$",
@@ -1872,34 +1910,8 @@ export default [
1872
1910
  },
1873
1911
  },
1874
1912
  ],
1875
- "@typescript-eslint/explicit-member-accessibility": "off",
1876
- "@typescript-eslint/interface-name-prefix": "off",
1877
- "@typescript-eslint/member-ordering": "off",
1878
1913
  "@typescript-eslint/no-inferrable-types": "off",
1879
1914
  "@typescript-eslint/no-non-null-assertion": "off",
1880
- "no-restricted-syntax": [
1881
- "error",
1882
- {
1883
- selector: "MemberExpression[object.name='React']",
1884
- message: "Do not use `React.*`. Use named imports instead.",
1885
- },
1886
- {
1887
- selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1888
- message: "Do not use `React.*` types. Use named imports instead.",
1889
- },
1890
- {
1891
- selector: "ExportNamespaceSpecifier",
1892
- message: "Usage of 'export * as …' is forbidden.",
1893
- },
1894
- {
1895
- selector: "ExportAllDeclaration",
1896
- message: "Usage of `export * from` is forbidden.",
1897
- },
1898
- {
1899
- selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1900
- message: "Do not use `import * as ...` from relative paths.",
1901
- },
1902
- ],
1903
1915
  "@typescript-eslint/consistent-type-imports": [
1904
1916
  "error",
1905
1917
  {
@@ -2421,7 +2433,6 @@ export default [
2421
2433
  "chai-friendly": plugin0011,
2422
2434
  },
2423
2435
  rules: {
2424
- "no-unused-expressions": "off",
2425
2436
  "chai-friendly/no-unused-expressions": "error",
2426
2437
  },
2427
2438
  },
@@ -994,7 +994,6 @@
994
994
  "playwright/valid-expect-in-promise": "error",
995
995
  "playwright/valid-test-tags": "error",
996
996
  "playwright/valid-title": "error",
997
- "no-unused-expressions": "off",
998
997
  "chai-friendly/no-unused-expressions": "error",
999
998
  "no-only-tests/no-only-tests": [
1000
999
  "error",
@@ -2087,13 +2086,52 @@
2087
2086
  "**/vite.config.js",
2088
2087
  "**/vitest.config.ts",
2089
2088
  "**/vitest.config.js",
2089
+ "**/rolldown.config.ts",
2090
+ "**/rolldown.config.js",
2091
+ "**/playwright.config.ts",
2092
+ "**/playwright.config.js",
2093
+ "**/.dependency-cruiser.ts",
2090
2094
  "**/.dependency-cruiser.js",
2091
- "**/.dependency-cruiser.js"
2095
+ "**/.i18nrc.ts",
2096
+ "**/.i18nrc.js"
2092
2097
  ],
2093
2098
  "rules": {
2094
2099
  "no-restricted-exports": "off"
2095
2100
  }
2096
2101
  },
2102
+ {
2103
+ "files": [
2104
+ "**/*.ts",
2105
+ "**/*.tsx",
2106
+ "**/*.mts",
2107
+ "**/*.cts"
2108
+ ],
2109
+ "rules": {
2110
+ "no-restricted-syntax": [
2111
+ "error",
2112
+ {
2113
+ "selector": "MemberExpression[object.name='React']",
2114
+ "message": "Do not use `React.*`. Use named imports instead."
2115
+ },
2116
+ {
2117
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2118
+ "message": "Do not use `React.*` types. Use named imports instead."
2119
+ },
2120
+ {
2121
+ "selector": "ExportNamespaceSpecifier",
2122
+ "message": "Usage of 'export * as …' is forbidden."
2123
+ },
2124
+ {
2125
+ "selector": "ExportAllDeclaration",
2126
+ "message": "Usage of `export * from` is forbidden."
2127
+ },
2128
+ {
2129
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2130
+ "message": "Do not use `import * as ...` from relative paths."
2131
+ }
2132
+ ]
2133
+ }
2134
+ },
2097
2135
  {
2098
2136
  "files": [
2099
2137
  "**/*.ts",
@@ -2106,13 +2144,11 @@
2106
2144
  "getter-return": "off",
2107
2145
  "no-class-assign": "off",
2108
2146
  "no-const-assign": "off",
2109
- "no-dupe-args": "off",
2110
2147
  "no-dupe-class-members": "off",
2111
2148
  "no-dupe-keys": "off",
2112
2149
  "no-func-assign": "off",
2113
2150
  "no-import-assign": "off",
2114
2151
  "no-new-native-nonconstructor": "off",
2115
- "no-new-symbol": "off",
2116
2152
  "no-obj-calls": "off",
2117
2153
  "no-redeclare": "off",
2118
2154
  "no-setter-return": "off",
@@ -2126,8 +2162,9 @@
2126
2162
  "prefer-rest-params": "error",
2127
2163
  "prefer-spread": "error",
2128
2164
  "no-array-constructor": "off",
2129
- "no-unused-expressions": "off",
2130
2165
  "no-unused-vars": "off",
2166
+ "no-dupe-args": "off",
2167
+ "no-new-symbol": "off",
2131
2168
  "@typescript-eslint/no-array-constructor": "error",
2132
2169
  "@typescript-eslint/no-duplicate-enum-values": "error",
2133
2170
  "@typescript-eslint/no-empty-object-type": "error",
@@ -2142,11 +2179,11 @@
2142
2179
  "@typescript-eslint/prefer-as-const": "error",
2143
2180
  "@typescript-eslint/prefer-namespace-keyword": "error",
2144
2181
  "@typescript-eslint/triple-slash-reference": "error",
2145
- "@typescript-eslint/explicit-function-return-type": 0,
2146
- "@typescript-eslint/no-use-before-define": 0,
2147
- "@typescript-eslint/no-empty-function": 0,
2182
+ "@typescript-eslint/explicit-function-return-type": "off",
2183
+ "@typescript-eslint/no-use-before-define": "off",
2184
+ "@typescript-eslint/no-empty-function": "off",
2148
2185
  "@typescript-eslint/no-unused-vars": [
2149
- 2,
2186
+ "error",
2150
2187
  {
2151
2188
  "varsIgnorePattern": "^_.*$",
2152
2189
  "argsIgnorePattern": "^_.*$"
@@ -2185,34 +2222,8 @@
2185
2222
  }
2186
2223
  }
2187
2224
  ],
2188
- "@typescript-eslint/explicit-member-accessibility": "off",
2189
- "@typescript-eslint/interface-name-prefix": "off",
2190
- "@typescript-eslint/member-ordering": "off",
2191
2225
  "@typescript-eslint/no-inferrable-types": "off",
2192
2226
  "@typescript-eslint/no-non-null-assertion": "off",
2193
- "no-restricted-syntax": [
2194
- "error",
2195
- {
2196
- "selector": "MemberExpression[object.name='React']",
2197
- "message": "Do not use `React.*`. Use named imports instead."
2198
- },
2199
- {
2200
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2201
- "message": "Do not use `React.*` types. Use named imports instead."
2202
- },
2203
- {
2204
- "selector": "ExportNamespaceSpecifier",
2205
- "message": "Usage of 'export * as …' is forbidden."
2206
- },
2207
- {
2208
- "selector": "ExportAllDeclaration",
2209
- "message": "Usage of `export * from` is forbidden."
2210
- },
2211
- {
2212
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2213
- "message": "Do not use `import * as ...` from relative paths."
2214
- }
2215
- ],
2216
2227
  "@typescript-eslint/consistent-type-imports": [
2217
2228
  "error",
2218
2229
  {
@@ -1739,13 +1739,52 @@ export default [
1739
1739
  "**/vite.config.js",
1740
1740
  "**/vitest.config.ts",
1741
1741
  "**/vitest.config.js",
1742
+ "**/rolldown.config.ts",
1743
+ "**/rolldown.config.js",
1744
+ "**/playwright.config.ts",
1745
+ "**/playwright.config.js",
1746
+ "**/.dependency-cruiser.ts",
1742
1747
  "**/.dependency-cruiser.js",
1743
- "**/.dependency-cruiser.js",
1748
+ "**/.i18nrc.ts",
1749
+ "**/.i18nrc.js",
1744
1750
  ],
1745
1751
  rules: {
1746
1752
  "no-restricted-exports": "off",
1747
1753
  },
1748
1754
  },
1755
+ {
1756
+ files: [
1757
+ "**/*.ts",
1758
+ "**/*.tsx",
1759
+ "**/*.mts",
1760
+ "**/*.cts",
1761
+ ],
1762
+ rules: {
1763
+ "no-restricted-syntax": [
1764
+ "error",
1765
+ {
1766
+ selector: "MemberExpression[object.name='React']",
1767
+ message: "Do not use `React.*`. Use named imports instead.",
1768
+ },
1769
+ {
1770
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1771
+ message: "Do not use `React.*` types. Use named imports instead.",
1772
+ },
1773
+ {
1774
+ selector: "ExportNamespaceSpecifier",
1775
+ message: "Usage of 'export * as …' is forbidden.",
1776
+ },
1777
+ {
1778
+ selector: "ExportAllDeclaration",
1779
+ message: "Usage of `export * from` is forbidden.",
1780
+ },
1781
+ {
1782
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1783
+ message: "Do not use `import * as ...` from relative paths.",
1784
+ },
1785
+ ],
1786
+ },
1787
+ },
1749
1788
  {
1750
1789
  plugins: {
1751
1790
  headers: plugin0001,
@@ -1793,13 +1832,11 @@ export default [
1793
1832
  "getter-return": "off",
1794
1833
  "no-class-assign": "off",
1795
1834
  "no-const-assign": "off",
1796
- "no-dupe-args": "off",
1797
1835
  "no-dupe-class-members": "off",
1798
1836
  "no-dupe-keys": "off",
1799
1837
  "no-func-assign": "off",
1800
1838
  "no-import-assign": "off",
1801
1839
  "no-new-native-nonconstructor": "off",
1802
- "no-new-symbol": "off",
1803
1840
  "no-obj-calls": "off",
1804
1841
  "no-redeclare": "off",
1805
1842
  "no-setter-return": "off",
@@ -1813,8 +1850,9 @@ export default [
1813
1850
  "prefer-rest-params": "error",
1814
1851
  "prefer-spread": "error",
1815
1852
  "no-array-constructor": "off",
1816
- "no-unused-expressions": "off",
1817
1853
  "no-unused-vars": "off",
1854
+ "no-dupe-args": "off",
1855
+ "no-new-symbol": "off",
1818
1856
  "@typescript-eslint/no-array-constructor": "error",
1819
1857
  "@typescript-eslint/no-duplicate-enum-values": "error",
1820
1858
  "@typescript-eslint/no-empty-object-type": "error",
@@ -1829,11 +1867,11 @@ export default [
1829
1867
  "@typescript-eslint/prefer-as-const": "error",
1830
1868
  "@typescript-eslint/prefer-namespace-keyword": "error",
1831
1869
  "@typescript-eslint/triple-slash-reference": "error",
1832
- "@typescript-eslint/explicit-function-return-type": 0,
1833
- "@typescript-eslint/no-use-before-define": 0,
1834
- "@typescript-eslint/no-empty-function": 0,
1870
+ "@typescript-eslint/explicit-function-return-type": "off",
1871
+ "@typescript-eslint/no-use-before-define": "off",
1872
+ "@typescript-eslint/no-empty-function": "off",
1835
1873
  "@typescript-eslint/no-unused-vars": [
1836
- 2,
1874
+ "error",
1837
1875
  {
1838
1876
  varsIgnorePattern: "^_.*$",
1839
1877
  argsIgnorePattern: "^_.*$",
@@ -1872,34 +1910,8 @@ export default [
1872
1910
  },
1873
1911
  },
1874
1912
  ],
1875
- "@typescript-eslint/explicit-member-accessibility": "off",
1876
- "@typescript-eslint/interface-name-prefix": "off",
1877
- "@typescript-eslint/member-ordering": "off",
1878
1913
  "@typescript-eslint/no-inferrable-types": "off",
1879
1914
  "@typescript-eslint/no-non-null-assertion": "off",
1880
- "no-restricted-syntax": [
1881
- "error",
1882
- {
1883
- selector: "MemberExpression[object.name='React']",
1884
- message: "Do not use `React.*`. Use named imports instead.",
1885
- },
1886
- {
1887
- selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1888
- message: "Do not use `React.*` types. Use named imports instead.",
1889
- },
1890
- {
1891
- selector: "ExportNamespaceSpecifier",
1892
- message: "Usage of 'export * as …' is forbidden.",
1893
- },
1894
- {
1895
- selector: "ExportAllDeclaration",
1896
- message: "Usage of `export * from` is forbidden.",
1897
- },
1898
- {
1899
- selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1900
- message: "Do not use `import * as ...` from relative paths.",
1901
- },
1902
- ],
1903
1915
  "@typescript-eslint/consistent-type-imports": [
1904
1916
  "error",
1905
1917
  {
@@ -2103,13 +2103,52 @@
2103
2103
  "**/vite.config.js",
2104
2104
  "**/vitest.config.ts",
2105
2105
  "**/vitest.config.js",
2106
+ "**/rolldown.config.ts",
2107
+ "**/rolldown.config.js",
2108
+ "**/playwright.config.ts",
2109
+ "**/playwright.config.js",
2110
+ "**/.dependency-cruiser.ts",
2106
2111
  "**/.dependency-cruiser.js",
2107
- "**/.dependency-cruiser.js"
2112
+ "**/.i18nrc.ts",
2113
+ "**/.i18nrc.js"
2108
2114
  ],
2109
2115
  "rules": {
2110
2116
  "no-restricted-exports": "off"
2111
2117
  }
2112
2118
  },
2119
+ {
2120
+ "files": [
2121
+ "**/*.ts",
2122
+ "**/*.tsx",
2123
+ "**/*.mts",
2124
+ "**/*.cts"
2125
+ ],
2126
+ "rules": {
2127
+ "no-restricted-syntax": [
2128
+ "error",
2129
+ {
2130
+ "selector": "MemberExpression[object.name='React']",
2131
+ "message": "Do not use `React.*`. Use named imports instead."
2132
+ },
2133
+ {
2134
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2135
+ "message": "Do not use `React.*` types. Use named imports instead."
2136
+ },
2137
+ {
2138
+ "selector": "ExportNamespaceSpecifier",
2139
+ "message": "Usage of 'export * as …' is forbidden."
2140
+ },
2141
+ {
2142
+ "selector": "ExportAllDeclaration",
2143
+ "message": "Usage of `export * from` is forbidden."
2144
+ },
2145
+ {
2146
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2147
+ "message": "Do not use `import * as ...` from relative paths."
2148
+ }
2149
+ ]
2150
+ }
2151
+ },
2113
2152
  {
2114
2153
  "files": [
2115
2154
  "**/*.ts",
@@ -2122,13 +2161,11 @@
2122
2161
  "getter-return": "off",
2123
2162
  "no-class-assign": "off",
2124
2163
  "no-const-assign": "off",
2125
- "no-dupe-args": "off",
2126
2164
  "no-dupe-class-members": "off",
2127
2165
  "no-dupe-keys": "off",
2128
2166
  "no-func-assign": "off",
2129
2167
  "no-import-assign": "off",
2130
2168
  "no-new-native-nonconstructor": "off",
2131
- "no-new-symbol": "off",
2132
2169
  "no-obj-calls": "off",
2133
2170
  "no-redeclare": "off",
2134
2171
  "no-setter-return": "off",
@@ -2142,8 +2179,9 @@
2142
2179
  "prefer-rest-params": "error",
2143
2180
  "prefer-spread": "error",
2144
2181
  "no-array-constructor": "off",
2145
- "no-unused-expressions": "off",
2146
2182
  "no-unused-vars": "off",
2183
+ "no-dupe-args": "off",
2184
+ "no-new-symbol": "off",
2147
2185
  "@typescript-eslint/no-array-constructor": "error",
2148
2186
  "@typescript-eslint/no-duplicate-enum-values": "error",
2149
2187
  "@typescript-eslint/no-empty-object-type": "error",
@@ -2158,11 +2196,11 @@
2158
2196
  "@typescript-eslint/prefer-as-const": "error",
2159
2197
  "@typescript-eslint/prefer-namespace-keyword": "error",
2160
2198
  "@typescript-eslint/triple-slash-reference": "error",
2161
- "@typescript-eslint/explicit-function-return-type": 0,
2162
- "@typescript-eslint/no-use-before-define": 0,
2163
- "@typescript-eslint/no-empty-function": 0,
2199
+ "@typescript-eslint/explicit-function-return-type": "off",
2200
+ "@typescript-eslint/no-use-before-define": "off",
2201
+ "@typescript-eslint/no-empty-function": "off",
2164
2202
  "@typescript-eslint/no-unused-vars": [
2165
- 2,
2203
+ "error",
2166
2204
  {
2167
2205
  "varsIgnorePattern": "^_.*$",
2168
2206
  "argsIgnorePattern": "^_.*$"
@@ -2201,34 +2239,8 @@
2201
2239
  }
2202
2240
  }
2203
2241
  ],
2204
- "@typescript-eslint/explicit-member-accessibility": "off",
2205
- "@typescript-eslint/interface-name-prefix": "off",
2206
- "@typescript-eslint/member-ordering": "off",
2207
2242
  "@typescript-eslint/no-inferrable-types": "off",
2208
2243
  "@typescript-eslint/no-non-null-assertion": "off",
2209
- "no-restricted-syntax": [
2210
- "error",
2211
- {
2212
- "selector": "MemberExpression[object.name='React']",
2213
- "message": "Do not use `React.*`. Use named imports instead."
2214
- },
2215
- {
2216
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2217
- "message": "Do not use `React.*` types. Use named imports instead."
2218
- },
2219
- {
2220
- "selector": "ExportNamespaceSpecifier",
2221
- "message": "Usage of 'export * as …' is forbidden."
2222
- },
2223
- {
2224
- "selector": "ExportAllDeclaration",
2225
- "message": "Usage of `export * from` is forbidden."
2226
- },
2227
- {
2228
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2229
- "message": "Do not use `import * as ...` from relative paths."
2230
- }
2231
- ],
2232
2244
  "@typescript-eslint/consistent-type-imports": [
2233
2245
  "error",
2234
2246
  {
@@ -1738,13 +1738,52 @@ export default [
1738
1738
  "**/vite.config.js",
1739
1739
  "**/vitest.config.ts",
1740
1740
  "**/vitest.config.js",
1741
+ "**/rolldown.config.ts",
1742
+ "**/rolldown.config.js",
1743
+ "**/playwright.config.ts",
1744
+ "**/playwright.config.js",
1745
+ "**/.dependency-cruiser.ts",
1741
1746
  "**/.dependency-cruiser.js",
1742
- "**/.dependency-cruiser.js",
1747
+ "**/.i18nrc.ts",
1748
+ "**/.i18nrc.js",
1743
1749
  ],
1744
1750
  rules: {
1745
1751
  "no-restricted-exports": "off",
1746
1752
  },
1747
1753
  },
1754
+ {
1755
+ files: [
1756
+ "**/*.ts",
1757
+ "**/*.tsx",
1758
+ "**/*.mts",
1759
+ "**/*.cts",
1760
+ ],
1761
+ rules: {
1762
+ "no-restricted-syntax": [
1763
+ "error",
1764
+ {
1765
+ selector: "MemberExpression[object.name='React']",
1766
+ message: "Do not use `React.*`. Use named imports instead.",
1767
+ },
1768
+ {
1769
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1770
+ message: "Do not use `React.*` types. Use named imports instead.",
1771
+ },
1772
+ {
1773
+ selector: "ExportNamespaceSpecifier",
1774
+ message: "Usage of 'export * as …' is forbidden.",
1775
+ },
1776
+ {
1777
+ selector: "ExportAllDeclaration",
1778
+ message: "Usage of `export * from` is forbidden.",
1779
+ },
1780
+ {
1781
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1782
+ message: "Do not use `import * as ...` from relative paths.",
1783
+ },
1784
+ ],
1785
+ },
1786
+ },
1748
1787
  {
1749
1788
  plugins: {
1750
1789
  headers: plugin0001,
@@ -1792,13 +1831,11 @@ export default [
1792
1831
  "getter-return": "off",
1793
1832
  "no-class-assign": "off",
1794
1833
  "no-const-assign": "off",
1795
- "no-dupe-args": "off",
1796
1834
  "no-dupe-class-members": "off",
1797
1835
  "no-dupe-keys": "off",
1798
1836
  "no-func-assign": "off",
1799
1837
  "no-import-assign": "off",
1800
1838
  "no-new-native-nonconstructor": "off",
1801
- "no-new-symbol": "off",
1802
1839
  "no-obj-calls": "off",
1803
1840
  "no-redeclare": "off",
1804
1841
  "no-setter-return": "off",
@@ -1812,8 +1849,9 @@ export default [
1812
1849
  "prefer-rest-params": "error",
1813
1850
  "prefer-spread": "error",
1814
1851
  "no-array-constructor": "off",
1815
- "no-unused-expressions": "off",
1816
1852
  "no-unused-vars": "off",
1853
+ "no-dupe-args": "off",
1854
+ "no-new-symbol": "off",
1817
1855
  "@typescript-eslint/no-array-constructor": "error",
1818
1856
  "@typescript-eslint/no-duplicate-enum-values": "error",
1819
1857
  "@typescript-eslint/no-empty-object-type": "error",
@@ -1828,11 +1866,11 @@ export default [
1828
1866
  "@typescript-eslint/prefer-as-const": "error",
1829
1867
  "@typescript-eslint/prefer-namespace-keyword": "error",
1830
1868
  "@typescript-eslint/triple-slash-reference": "error",
1831
- "@typescript-eslint/explicit-function-return-type": 0,
1832
- "@typescript-eslint/no-use-before-define": 0,
1833
- "@typescript-eslint/no-empty-function": 0,
1869
+ "@typescript-eslint/explicit-function-return-type": "off",
1870
+ "@typescript-eslint/no-use-before-define": "off",
1871
+ "@typescript-eslint/no-empty-function": "off",
1834
1872
  "@typescript-eslint/no-unused-vars": [
1835
- 2,
1873
+ "error",
1836
1874
  {
1837
1875
  varsIgnorePattern: "^_.*$",
1838
1876
  argsIgnorePattern: "^_.*$",
@@ -1871,34 +1909,8 @@ export default [
1871
1909
  },
1872
1910
  },
1873
1911
  ],
1874
- "@typescript-eslint/explicit-member-accessibility": "off",
1875
- "@typescript-eslint/interface-name-prefix": "off",
1876
- "@typescript-eslint/member-ordering": "off",
1877
1912
  "@typescript-eslint/no-inferrable-types": "off",
1878
1913
  "@typescript-eslint/no-non-null-assertion": "off",
1879
- "no-restricted-syntax": [
1880
- "error",
1881
- {
1882
- selector: "MemberExpression[object.name='React']",
1883
- message: "Do not use `React.*`. Use named imports instead.",
1884
- },
1885
- {
1886
- selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1887
- message: "Do not use `React.*` types. Use named imports instead.",
1888
- },
1889
- {
1890
- selector: "ExportNamespaceSpecifier",
1891
- message: "Usage of 'export * as …' is forbidden.",
1892
- },
1893
- {
1894
- selector: "ExportAllDeclaration",
1895
- message: "Usage of `export * from` is forbidden.",
1896
- },
1897
- {
1898
- selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1899
- message: "Do not use `import * as ...` from relative paths.",
1900
- },
1901
- ],
1902
1914
  "@typescript-eslint/consistent-type-imports": [
1903
1915
  "error",
1904
1916
  {