@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
@@ -2040,13 +2040,52 @@
2040
2040
  "**/vite.config.js",
2041
2041
  "**/vitest.config.ts",
2042
2042
  "**/vitest.config.js",
2043
+ "**/rolldown.config.ts",
2044
+ "**/rolldown.config.js",
2045
+ "**/playwright.config.ts",
2046
+ "**/playwright.config.js",
2047
+ "**/.dependency-cruiser.ts",
2043
2048
  "**/.dependency-cruiser.js",
2044
- "**/.dependency-cruiser.js"
2049
+ "**/.i18nrc.ts",
2050
+ "**/.i18nrc.js"
2045
2051
  ],
2046
2052
  "rules": {
2047
2053
  "no-restricted-exports": "off"
2048
2054
  }
2049
2055
  },
2056
+ {
2057
+ "files": [
2058
+ "**/*.ts",
2059
+ "**/*.tsx",
2060
+ "**/*.mts",
2061
+ "**/*.cts"
2062
+ ],
2063
+ "rules": {
2064
+ "no-restricted-syntax": [
2065
+ "error",
2066
+ {
2067
+ "selector": "MemberExpression[object.name='React']",
2068
+ "message": "Do not use `React.*`. Use named imports instead."
2069
+ },
2070
+ {
2071
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2072
+ "message": "Do not use `React.*` types. Use named imports instead."
2073
+ },
2074
+ {
2075
+ "selector": "ExportNamespaceSpecifier",
2076
+ "message": "Usage of 'export * as …' is forbidden."
2077
+ },
2078
+ {
2079
+ "selector": "ExportAllDeclaration",
2080
+ "message": "Usage of `export * from` is forbidden."
2081
+ },
2082
+ {
2083
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2084
+ "message": "Do not use `import * as ...` from relative paths."
2085
+ }
2086
+ ]
2087
+ }
2088
+ },
2050
2089
  {
2051
2090
  "files": [
2052
2091
  "**/*.ts",
@@ -2059,13 +2098,11 @@
2059
2098
  "getter-return": "off",
2060
2099
  "no-class-assign": "off",
2061
2100
  "no-const-assign": "off",
2062
- "no-dupe-args": "off",
2063
2101
  "no-dupe-class-members": "off",
2064
2102
  "no-dupe-keys": "off",
2065
2103
  "no-func-assign": "off",
2066
2104
  "no-import-assign": "off",
2067
2105
  "no-new-native-nonconstructor": "off",
2068
- "no-new-symbol": "off",
2069
2106
  "no-obj-calls": "off",
2070
2107
  "no-redeclare": "off",
2071
2108
  "no-setter-return": "off",
@@ -2079,8 +2116,9 @@
2079
2116
  "prefer-rest-params": "error",
2080
2117
  "prefer-spread": "error",
2081
2118
  "no-array-constructor": "off",
2082
- "no-unused-expressions": "off",
2083
2119
  "no-unused-vars": "off",
2120
+ "no-dupe-args": "off",
2121
+ "no-new-symbol": "off",
2084
2122
  "@typescript-eslint/no-array-constructor": "error",
2085
2123
  "@typescript-eslint/no-duplicate-enum-values": "error",
2086
2124
  "@typescript-eslint/no-empty-object-type": "error",
@@ -2095,11 +2133,11 @@
2095
2133
  "@typescript-eslint/prefer-as-const": "error",
2096
2134
  "@typescript-eslint/prefer-namespace-keyword": "error",
2097
2135
  "@typescript-eslint/triple-slash-reference": "error",
2098
- "@typescript-eslint/explicit-function-return-type": 0,
2099
- "@typescript-eslint/no-use-before-define": 0,
2100
- "@typescript-eslint/no-empty-function": 0,
2136
+ "@typescript-eslint/explicit-function-return-type": "off",
2137
+ "@typescript-eslint/no-use-before-define": "off",
2138
+ "@typescript-eslint/no-empty-function": "off",
2101
2139
  "@typescript-eslint/no-unused-vars": [
2102
- 2,
2140
+ "error",
2103
2141
  {
2104
2142
  "varsIgnorePattern": "^_.*$",
2105
2143
  "argsIgnorePattern": "^_.*$"
@@ -2138,34 +2176,8 @@
2138
2176
  }
2139
2177
  }
2140
2178
  ],
2141
- "@typescript-eslint/explicit-member-accessibility": "off",
2142
- "@typescript-eslint/interface-name-prefix": "off",
2143
- "@typescript-eslint/member-ordering": "off",
2144
2179
  "@typescript-eslint/no-inferrable-types": "off",
2145
2180
  "@typescript-eslint/no-non-null-assertion": "off",
2146
- "no-restricted-syntax": [
2147
- "error",
2148
- {
2149
- "selector": "MemberExpression[object.name='React']",
2150
- "message": "Do not use `React.*`. Use named imports instead."
2151
- },
2152
- {
2153
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2154
- "message": "Do not use `React.*` types. Use named imports instead."
2155
- },
2156
- {
2157
- "selector": "ExportNamespaceSpecifier",
2158
- "message": "Usage of 'export * as …' is forbidden."
2159
- },
2160
- {
2161
- "selector": "ExportAllDeclaration",
2162
- "message": "Usage of `export * from` is forbidden."
2163
- },
2164
- {
2165
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2166
- "message": "Do not use `import * as ...` from relative paths."
2167
- }
2168
- ],
2169
2181
  "@typescript-eslint/consistent-type-imports": [
2170
2182
  "error",
2171
2183
  {
package/dist/esm.js CHANGED
@@ -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
  {
package/dist/esm.json CHANGED
@@ -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
  {