@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
package/dist/esm-react.js CHANGED
@@ -1737,13 +1737,52 @@ export default [
1737
1737
  "**/vite.config.js",
1738
1738
  "**/vitest.config.ts",
1739
1739
  "**/vitest.config.js",
1740
+ "**/rolldown.config.ts",
1741
+ "**/rolldown.config.js",
1742
+ "**/playwright.config.ts",
1743
+ "**/playwright.config.js",
1744
+ "**/.dependency-cruiser.ts",
1740
1745
  "**/.dependency-cruiser.js",
1741
- "**/.dependency-cruiser.js",
1746
+ "**/.i18nrc.ts",
1747
+ "**/.i18nrc.js",
1742
1748
  ],
1743
1749
  rules: {
1744
1750
  "no-restricted-exports": "off",
1745
1751
  },
1746
1752
  },
1753
+ {
1754
+ files: [
1755
+ "**/*.ts",
1756
+ "**/*.tsx",
1757
+ "**/*.mts",
1758
+ "**/*.cts",
1759
+ ],
1760
+ rules: {
1761
+ "no-restricted-syntax": [
1762
+ "error",
1763
+ {
1764
+ selector: "MemberExpression[object.name='React']",
1765
+ message: "Do not use `React.*`. Use named imports instead.",
1766
+ },
1767
+ {
1768
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1769
+ message: "Do not use `React.*` types. Use named imports instead.",
1770
+ },
1771
+ {
1772
+ selector: "ExportNamespaceSpecifier",
1773
+ message: "Usage of 'export * as …' is forbidden.",
1774
+ },
1775
+ {
1776
+ selector: "ExportAllDeclaration",
1777
+ message: "Usage of `export * from` is forbidden.",
1778
+ },
1779
+ {
1780
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1781
+ message: "Do not use `import * as ...` from relative paths.",
1782
+ },
1783
+ ],
1784
+ },
1785
+ },
1747
1786
  {
1748
1787
  plugins: {
1749
1788
  headers: plugin0001,
@@ -1791,13 +1830,11 @@ export default [
1791
1830
  "getter-return": "off",
1792
1831
  "no-class-assign": "off",
1793
1832
  "no-const-assign": "off",
1794
- "no-dupe-args": "off",
1795
1833
  "no-dupe-class-members": "off",
1796
1834
  "no-dupe-keys": "off",
1797
1835
  "no-func-assign": "off",
1798
1836
  "no-import-assign": "off",
1799
1837
  "no-new-native-nonconstructor": "off",
1800
- "no-new-symbol": "off",
1801
1838
  "no-obj-calls": "off",
1802
1839
  "no-redeclare": "off",
1803
1840
  "no-setter-return": "off",
@@ -1811,8 +1848,9 @@ export default [
1811
1848
  "prefer-rest-params": "error",
1812
1849
  "prefer-spread": "error",
1813
1850
  "no-array-constructor": "off",
1814
- "no-unused-expressions": "off",
1815
1851
  "no-unused-vars": "off",
1852
+ "no-dupe-args": "off",
1853
+ "no-new-symbol": "off",
1816
1854
  "@typescript-eslint/no-array-constructor": "error",
1817
1855
  "@typescript-eslint/no-duplicate-enum-values": "error",
1818
1856
  "@typescript-eslint/no-empty-object-type": "error",
@@ -1827,11 +1865,11 @@ export default [
1827
1865
  "@typescript-eslint/prefer-as-const": "error",
1828
1866
  "@typescript-eslint/prefer-namespace-keyword": "error",
1829
1867
  "@typescript-eslint/triple-slash-reference": "error",
1830
- "@typescript-eslint/explicit-function-return-type": 0,
1831
- "@typescript-eslint/no-use-before-define": 0,
1832
- "@typescript-eslint/no-empty-function": 0,
1868
+ "@typescript-eslint/explicit-function-return-type": "off",
1869
+ "@typescript-eslint/no-use-before-define": "off",
1870
+ "@typescript-eslint/no-empty-function": "off",
1833
1871
  "@typescript-eslint/no-unused-vars": [
1834
- 2,
1872
+ "error",
1835
1873
  {
1836
1874
  varsIgnorePattern: "^_.*$",
1837
1875
  argsIgnorePattern: "^_.*$",
@@ -1870,34 +1908,8 @@ export default [
1870
1908
  },
1871
1909
  },
1872
1910
  ],
1873
- "@typescript-eslint/explicit-member-accessibility": "off",
1874
- "@typescript-eslint/interface-name-prefix": "off",
1875
- "@typescript-eslint/member-ordering": "off",
1876
1911
  "@typescript-eslint/no-inferrable-types": "off",
1877
1912
  "@typescript-eslint/no-non-null-assertion": "off",
1878
- "no-restricted-syntax": [
1879
- "error",
1880
- {
1881
- selector: "MemberExpression[object.name='React']",
1882
- message: "Do not use `React.*`. Use named imports instead.",
1883
- },
1884
- {
1885
- selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1886
- message: "Do not use `React.*` types. Use named imports instead.",
1887
- },
1888
- {
1889
- selector: "ExportNamespaceSpecifier",
1890
- message: "Usage of 'export * as …' is forbidden.",
1891
- },
1892
- {
1893
- selector: "ExportAllDeclaration",
1894
- message: "Usage of `export * from` is forbidden.",
1895
- },
1896
- {
1897
- selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1898
- message: "Do not use `import * as ...` from relative paths.",
1899
- },
1900
- ],
1901
1913
  "@typescript-eslint/consistent-type-imports": [
1902
1914
  "error",
1903
1915
  {
@@ -2038,13 +2038,52 @@
2038
2038
  "**/vite.config.js",
2039
2039
  "**/vitest.config.ts",
2040
2040
  "**/vitest.config.js",
2041
+ "**/rolldown.config.ts",
2042
+ "**/rolldown.config.js",
2043
+ "**/playwright.config.ts",
2044
+ "**/playwright.config.js",
2045
+ "**/.dependency-cruiser.ts",
2041
2046
  "**/.dependency-cruiser.js",
2042
- "**/.dependency-cruiser.js"
2047
+ "**/.i18nrc.ts",
2048
+ "**/.i18nrc.js"
2043
2049
  ],
2044
2050
  "rules": {
2045
2051
  "no-restricted-exports": "off"
2046
2052
  }
2047
2053
  },
2054
+ {
2055
+ "files": [
2056
+ "**/*.ts",
2057
+ "**/*.tsx",
2058
+ "**/*.mts",
2059
+ "**/*.cts"
2060
+ ],
2061
+ "rules": {
2062
+ "no-restricted-syntax": [
2063
+ "error",
2064
+ {
2065
+ "selector": "MemberExpression[object.name='React']",
2066
+ "message": "Do not use `React.*`. Use named imports instead."
2067
+ },
2068
+ {
2069
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2070
+ "message": "Do not use `React.*` types. Use named imports instead."
2071
+ },
2072
+ {
2073
+ "selector": "ExportNamespaceSpecifier",
2074
+ "message": "Usage of 'export * as …' is forbidden."
2075
+ },
2076
+ {
2077
+ "selector": "ExportAllDeclaration",
2078
+ "message": "Usage of `export * from` is forbidden."
2079
+ },
2080
+ {
2081
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2082
+ "message": "Do not use `import * as ...` from relative paths."
2083
+ }
2084
+ ]
2085
+ }
2086
+ },
2048
2087
  {
2049
2088
  "files": [
2050
2089
  "**/*.ts",
@@ -2057,13 +2096,11 @@
2057
2096
  "getter-return": "off",
2058
2097
  "no-class-assign": "off",
2059
2098
  "no-const-assign": "off",
2060
- "no-dupe-args": "off",
2061
2099
  "no-dupe-class-members": "off",
2062
2100
  "no-dupe-keys": "off",
2063
2101
  "no-func-assign": "off",
2064
2102
  "no-import-assign": "off",
2065
2103
  "no-new-native-nonconstructor": "off",
2066
- "no-new-symbol": "off",
2067
2104
  "no-obj-calls": "off",
2068
2105
  "no-redeclare": "off",
2069
2106
  "no-setter-return": "off",
@@ -2077,8 +2114,9 @@
2077
2114
  "prefer-rest-params": "error",
2078
2115
  "prefer-spread": "error",
2079
2116
  "no-array-constructor": "off",
2080
- "no-unused-expressions": "off",
2081
2117
  "no-unused-vars": "off",
2118
+ "no-dupe-args": "off",
2119
+ "no-new-symbol": "off",
2082
2120
  "@typescript-eslint/no-array-constructor": "error",
2083
2121
  "@typescript-eslint/no-duplicate-enum-values": "error",
2084
2122
  "@typescript-eslint/no-empty-object-type": "error",
@@ -2093,11 +2131,11 @@
2093
2131
  "@typescript-eslint/prefer-as-const": "error",
2094
2132
  "@typescript-eslint/prefer-namespace-keyword": "error",
2095
2133
  "@typescript-eslint/triple-slash-reference": "error",
2096
- "@typescript-eslint/explicit-function-return-type": 0,
2097
- "@typescript-eslint/no-use-before-define": 0,
2098
- "@typescript-eslint/no-empty-function": 0,
2134
+ "@typescript-eslint/explicit-function-return-type": "off",
2135
+ "@typescript-eslint/no-use-before-define": "off",
2136
+ "@typescript-eslint/no-empty-function": "off",
2099
2137
  "@typescript-eslint/no-unused-vars": [
2100
- 2,
2138
+ "error",
2101
2139
  {
2102
2140
  "varsIgnorePattern": "^_.*$",
2103
2141
  "argsIgnorePattern": "^_.*$"
@@ -2136,34 +2174,8 @@
2136
2174
  }
2137
2175
  }
2138
2176
  ],
2139
- "@typescript-eslint/explicit-member-accessibility": "off",
2140
- "@typescript-eslint/interface-name-prefix": "off",
2141
- "@typescript-eslint/member-ordering": "off",
2142
2177
  "@typescript-eslint/no-inferrable-types": "off",
2143
2178
  "@typescript-eslint/no-non-null-assertion": "off",
2144
- "no-restricted-syntax": [
2145
- "error",
2146
- {
2147
- "selector": "MemberExpression[object.name='React']",
2148
- "message": "Do not use `React.*`. Use named imports instead."
2149
- },
2150
- {
2151
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2152
- "message": "Do not use `React.*` types. Use named imports instead."
2153
- },
2154
- {
2155
- "selector": "ExportNamespaceSpecifier",
2156
- "message": "Usage of 'export * as …' is forbidden."
2157
- },
2158
- {
2159
- "selector": "ExportAllDeclaration",
2160
- "message": "Usage of `export * from` is forbidden."
2161
- },
2162
- {
2163
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2164
- "message": "Do not use `import * as ...` from relative paths."
2165
- }
2166
- ],
2167
2179
  "@typescript-eslint/consistent-type-imports": [
2168
2180
  "error",
2169
2181
  {
@@ -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
  {
@@ -2068,13 +2068,52 @@
2068
2068
  "**/vite.config.js",
2069
2069
  "**/vitest.config.ts",
2070
2070
  "**/vitest.config.js",
2071
+ "**/rolldown.config.ts",
2072
+ "**/rolldown.config.js",
2073
+ "**/playwright.config.ts",
2074
+ "**/playwright.config.js",
2075
+ "**/.dependency-cruiser.ts",
2071
2076
  "**/.dependency-cruiser.js",
2072
- "**/.dependency-cruiser.js"
2077
+ "**/.i18nrc.ts",
2078
+ "**/.i18nrc.js"
2073
2079
  ],
2074
2080
  "rules": {
2075
2081
  "no-restricted-exports": "off"
2076
2082
  }
2077
2083
  },
2084
+ {
2085
+ "files": [
2086
+ "**/*.ts",
2087
+ "**/*.tsx",
2088
+ "**/*.mts",
2089
+ "**/*.cts"
2090
+ ],
2091
+ "rules": {
2092
+ "no-restricted-syntax": [
2093
+ "error",
2094
+ {
2095
+ "selector": "MemberExpression[object.name='React']",
2096
+ "message": "Do not use `React.*`. Use named imports instead."
2097
+ },
2098
+ {
2099
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2100
+ "message": "Do not use `React.*` types. Use named imports instead."
2101
+ },
2102
+ {
2103
+ "selector": "ExportNamespaceSpecifier",
2104
+ "message": "Usage of 'export * as …' is forbidden."
2105
+ },
2106
+ {
2107
+ "selector": "ExportAllDeclaration",
2108
+ "message": "Usage of `export * from` is forbidden."
2109
+ },
2110
+ {
2111
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2112
+ "message": "Do not use `import * as ...` from relative paths."
2113
+ }
2114
+ ]
2115
+ }
2116
+ },
2078
2117
  {
2079
2118
  "files": [
2080
2119
  "**/*.ts",
@@ -2087,13 +2126,11 @@
2087
2126
  "getter-return": "off",
2088
2127
  "no-class-assign": "off",
2089
2128
  "no-const-assign": "off",
2090
- "no-dupe-args": "off",
2091
2129
  "no-dupe-class-members": "off",
2092
2130
  "no-dupe-keys": "off",
2093
2131
  "no-func-assign": "off",
2094
2132
  "no-import-assign": "off",
2095
2133
  "no-new-native-nonconstructor": "off",
2096
- "no-new-symbol": "off",
2097
2134
  "no-obj-calls": "off",
2098
2135
  "no-redeclare": "off",
2099
2136
  "no-setter-return": "off",
@@ -2107,8 +2144,9 @@
2107
2144
  "prefer-rest-params": "error",
2108
2145
  "prefer-spread": "error",
2109
2146
  "no-array-constructor": "off",
2110
- "no-unused-expressions": "off",
2111
2147
  "no-unused-vars": "off",
2148
+ "no-dupe-args": "off",
2149
+ "no-new-symbol": "off",
2112
2150
  "@typescript-eslint/no-array-constructor": "error",
2113
2151
  "@typescript-eslint/no-duplicate-enum-values": "error",
2114
2152
  "@typescript-eslint/no-empty-object-type": "error",
@@ -2123,11 +2161,11 @@
2123
2161
  "@typescript-eslint/prefer-as-const": "error",
2124
2162
  "@typescript-eslint/prefer-namespace-keyword": "error",
2125
2163
  "@typescript-eslint/triple-slash-reference": "error",
2126
- "@typescript-eslint/explicit-function-return-type": 0,
2127
- "@typescript-eslint/no-use-before-define": 0,
2128
- "@typescript-eslint/no-empty-function": 0,
2164
+ "@typescript-eslint/explicit-function-return-type": "off",
2165
+ "@typescript-eslint/no-use-before-define": "off",
2166
+ "@typescript-eslint/no-empty-function": "off",
2129
2167
  "@typescript-eslint/no-unused-vars": [
2130
- 2,
2168
+ "error",
2131
2169
  {
2132
2170
  "varsIgnorePattern": "^_.*$",
2133
2171
  "argsIgnorePattern": "^_.*$"
@@ -2166,34 +2204,8 @@
2166
2204
  }
2167
2205
  }
2168
2206
  ],
2169
- "@typescript-eslint/explicit-member-accessibility": "off",
2170
- "@typescript-eslint/interface-name-prefix": "off",
2171
- "@typescript-eslint/member-ordering": "off",
2172
2207
  "@typescript-eslint/no-inferrable-types": "off",
2173
2208
  "@typescript-eslint/no-non-null-assertion": "off",
2174
- "no-restricted-syntax": [
2175
- "error",
2176
- {
2177
- "selector": "MemberExpression[object.name='React']",
2178
- "message": "Do not use `React.*`. Use named imports instead."
2179
- },
2180
- {
2181
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2182
- "message": "Do not use `React.*` types. Use named imports instead."
2183
- },
2184
- {
2185
- "selector": "ExportNamespaceSpecifier",
2186
- "message": "Usage of 'export * as …' is forbidden."
2187
- },
2188
- {
2189
- "selector": "ExportAllDeclaration",
2190
- "message": "Usage of `export * from` is forbidden."
2191
- },
2192
- {
2193
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2194
- "message": "Do not use `import * as ...` from relative paths."
2195
- }
2196
- ],
2197
2209
  "@typescript-eslint/consistent-type-imports": [
2198
2210
  "error",
2199
2211
  {
@@ -1737,13 +1737,52 @@ export default [
1737
1737
  "**/vite.config.js",
1738
1738
  "**/vitest.config.ts",
1739
1739
  "**/vitest.config.js",
1740
+ "**/rolldown.config.ts",
1741
+ "**/rolldown.config.js",
1742
+ "**/playwright.config.ts",
1743
+ "**/playwright.config.js",
1744
+ "**/.dependency-cruiser.ts",
1740
1745
  "**/.dependency-cruiser.js",
1741
- "**/.dependency-cruiser.js",
1746
+ "**/.i18nrc.ts",
1747
+ "**/.i18nrc.js",
1742
1748
  ],
1743
1749
  rules: {
1744
1750
  "no-restricted-exports": "off",
1745
1751
  },
1746
1752
  },
1753
+ {
1754
+ files: [
1755
+ "**/*.ts",
1756
+ "**/*.tsx",
1757
+ "**/*.mts",
1758
+ "**/*.cts",
1759
+ ],
1760
+ rules: {
1761
+ "no-restricted-syntax": [
1762
+ "error",
1763
+ {
1764
+ selector: "MemberExpression[object.name='React']",
1765
+ message: "Do not use `React.*`. Use named imports instead.",
1766
+ },
1767
+ {
1768
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1769
+ message: "Do not use `React.*` types. Use named imports instead.",
1770
+ },
1771
+ {
1772
+ selector: "ExportNamespaceSpecifier",
1773
+ message: "Usage of 'export * as …' is forbidden.",
1774
+ },
1775
+ {
1776
+ selector: "ExportAllDeclaration",
1777
+ message: "Usage of `export * from` is forbidden.",
1778
+ },
1779
+ {
1780
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1781
+ message: "Do not use `import * as ...` from relative paths.",
1782
+ },
1783
+ ],
1784
+ },
1785
+ },
1747
1786
  {
1748
1787
  plugins: {
1749
1788
  headers: plugin0001,
@@ -1791,13 +1830,11 @@ export default [
1791
1830
  "getter-return": "off",
1792
1831
  "no-class-assign": "off",
1793
1832
  "no-const-assign": "off",
1794
- "no-dupe-args": "off",
1795
1833
  "no-dupe-class-members": "off",
1796
1834
  "no-dupe-keys": "off",
1797
1835
  "no-func-assign": "off",
1798
1836
  "no-import-assign": "off",
1799
1837
  "no-new-native-nonconstructor": "off",
1800
- "no-new-symbol": "off",
1801
1838
  "no-obj-calls": "off",
1802
1839
  "no-redeclare": "off",
1803
1840
  "no-setter-return": "off",
@@ -1811,8 +1848,9 @@ export default [
1811
1848
  "prefer-rest-params": "error",
1812
1849
  "prefer-spread": "error",
1813
1850
  "no-array-constructor": "off",
1814
- "no-unused-expressions": "off",
1815
1851
  "no-unused-vars": "off",
1852
+ "no-dupe-args": "off",
1853
+ "no-new-symbol": "off",
1816
1854
  "@typescript-eslint/no-array-constructor": "error",
1817
1855
  "@typescript-eslint/no-duplicate-enum-values": "error",
1818
1856
  "@typescript-eslint/no-empty-object-type": "error",
@@ -1827,11 +1865,11 @@ export default [
1827
1865
  "@typescript-eslint/prefer-as-const": "error",
1828
1866
  "@typescript-eslint/prefer-namespace-keyword": "error",
1829
1867
  "@typescript-eslint/triple-slash-reference": "error",
1830
- "@typescript-eslint/explicit-function-return-type": 0,
1831
- "@typescript-eslint/no-use-before-define": 0,
1832
- "@typescript-eslint/no-empty-function": 0,
1868
+ "@typescript-eslint/explicit-function-return-type": "off",
1869
+ "@typescript-eslint/no-use-before-define": "off",
1870
+ "@typescript-eslint/no-empty-function": "off",
1833
1871
  "@typescript-eslint/no-unused-vars": [
1834
- 2,
1872
+ "error",
1835
1873
  {
1836
1874
  varsIgnorePattern: "^_.*$",
1837
1875
  argsIgnorePattern: "^_.*$",
@@ -1870,34 +1908,8 @@ export default [
1870
1908
  },
1871
1909
  },
1872
1910
  ],
1873
- "@typescript-eslint/explicit-member-accessibility": "off",
1874
- "@typescript-eslint/interface-name-prefix": "off",
1875
- "@typescript-eslint/member-ordering": "off",
1876
1911
  "@typescript-eslint/no-inferrable-types": "off",
1877
1912
  "@typescript-eslint/no-non-null-assertion": "off",
1878
- "no-restricted-syntax": [
1879
- "error",
1880
- {
1881
- selector: "MemberExpression[object.name='React']",
1882
- message: "Do not use `React.*`. Use named imports instead.",
1883
- },
1884
- {
1885
- selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1886
- message: "Do not use `React.*` types. Use named imports instead.",
1887
- },
1888
- {
1889
- selector: "ExportNamespaceSpecifier",
1890
- message: "Usage of 'export * as …' is forbidden.",
1891
- },
1892
- {
1893
- selector: "ExportAllDeclaration",
1894
- message: "Usage of `export * from` is forbidden.",
1895
- },
1896
- {
1897
- selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1898
- message: "Do not use `import * as ...` from relative paths.",
1899
- },
1900
- ],
1901
1913
  "@typescript-eslint/consistent-type-imports": [
1902
1914
  "error",
1903
1915
  {