@gooddata/oxlint-config 11.19.0-alpha.11 → 11.20.0-alpha.0

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.
package/PACKAGES.md CHANGED
@@ -12,3 +12,4 @@ This table shows which packages are required for each configuration.
12
12
  | eslint-plugin-no-only-tests | | | | | | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | | 3.3.0 | 3.3.0 | 3.3.0 |
13
13
  | eslint-plugin-sonarjs | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 |
14
14
  | oxlint | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 | ^1.43.0 |
15
+ | oxlint-tsgolint | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 | 0.11.4 |
package/dist/base.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "plugins": [
4
4
  "oxc",
5
5
  "eslint",
6
+ "typescript",
6
7
  "import"
7
8
  ],
8
9
  "jsPlugins": [
@@ -617,6 +618,7 @@
617
618
  "no-extra-boolean-cast": "error",
618
619
  "no-unexpected-multiline": "off",
619
620
  "no-duplicate-imports": "error",
621
+ "prefer-const": "off",
620
622
  "headers/header-format": [
621
623
  "error",
622
624
  {
@@ -2002,6 +2004,134 @@
2002
2004
  "no-restricted-exports": "off"
2003
2005
  }
2004
2006
  },
2007
+ {
2008
+ "files": [
2009
+ "**/*.ts",
2010
+ "**/*.tsx",
2011
+ "**/*.mts",
2012
+ "**/*.cts"
2013
+ ],
2014
+ "rules": {
2015
+ "constructor-super": "off",
2016
+ "getter-return": "off",
2017
+ "no-class-assign": "off",
2018
+ "no-const-assign": "off",
2019
+ "no-dupe-args": "off",
2020
+ "no-dupe-class-members": "off",
2021
+ "no-dupe-keys": "off",
2022
+ "no-func-assign": "off",
2023
+ "no-import-assign": "off",
2024
+ "no-new-native-nonconstructor": "off",
2025
+ "no-new-symbol": "off",
2026
+ "no-obj-calls": "off",
2027
+ "no-redeclare": "off",
2028
+ "no-setter-return": "off",
2029
+ "no-this-before-super": "off",
2030
+ "no-undef": "off",
2031
+ "no-unreachable": "off",
2032
+ "no-unsafe-negation": "off",
2033
+ "no-var": "error",
2034
+ "no-with": "off",
2035
+ "prefer-const": "error",
2036
+ "prefer-rest-params": "error",
2037
+ "prefer-spread": "error",
2038
+ "no-array-constructor": "off",
2039
+ "no-unused-expressions": "off",
2040
+ "no-unused-vars": "off",
2041
+ "@typescript-eslint/no-array-constructor": "error",
2042
+ "@typescript-eslint/no-duplicate-enum-values": "error",
2043
+ "@typescript-eslint/no-empty-object-type": "error",
2044
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
2045
+ "@typescript-eslint/no-misused-new": "error",
2046
+ "@typescript-eslint/no-namespace": "error",
2047
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
2048
+ "@typescript-eslint/no-require-imports": "error",
2049
+ "@typescript-eslint/no-this-alias": "error",
2050
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
2051
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
2052
+ "@typescript-eslint/prefer-as-const": "error",
2053
+ "@typescript-eslint/prefer-namespace-keyword": "error",
2054
+ "@typescript-eslint/triple-slash-reference": "error",
2055
+ "@typescript-eslint/explicit-function-return-type": 0,
2056
+ "@typescript-eslint/no-use-before-define": 0,
2057
+ "@typescript-eslint/no-empty-function": 0,
2058
+ "@typescript-eslint/no-unused-vars": [
2059
+ 2,
2060
+ {
2061
+ "varsIgnorePattern": "^_.*$",
2062
+ "argsIgnorePattern": "^_.*$"
2063
+ }
2064
+ ],
2065
+ "@typescript-eslint/no-explicit-any": "error",
2066
+ "@typescript-eslint/array-type": "off",
2067
+ "@typescript-eslint/ban-ts-comment": [
2068
+ "error",
2069
+ {
2070
+ "ts-expect-error": "allow-with-description"
2071
+ }
2072
+ ],
2073
+ "@typescript-eslint/no-wrapper-object-types": "error",
2074
+ "@typescript-eslint/no-unsafe-function-type": "error",
2075
+ "@typescript-eslint/no-restricted-types": [
2076
+ "error",
2077
+ {
2078
+ "types": {
2079
+ "String": {
2080
+ "message": "Use 'string' instead",
2081
+ "fixWith": "string"
2082
+ },
2083
+ "Number": {
2084
+ "message": "Use 'number' instead",
2085
+ "fixWith": "number"
2086
+ },
2087
+ "Boolean": {
2088
+ "message": "Use 'boolean' instead",
2089
+ "fixWith": "boolean"
2090
+ },
2091
+ "Symbol": {
2092
+ "message": "Use 'symbol' instead",
2093
+ "fixWith": "symbol"
2094
+ }
2095
+ }
2096
+ }
2097
+ ],
2098
+ "@typescript-eslint/explicit-member-accessibility": "off",
2099
+ "@typescript-eslint/interface-name-prefix": "off",
2100
+ "@typescript-eslint/member-ordering": "off",
2101
+ "@typescript-eslint/no-inferrable-types": "off",
2102
+ "@typescript-eslint/no-non-null-assertion": "off",
2103
+ "no-restricted-syntax": [
2104
+ "error",
2105
+ {
2106
+ "selector": "MemberExpression[object.name='React']",
2107
+ "message": "Do not use `React.*`. Use named imports instead."
2108
+ },
2109
+ {
2110
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2111
+ "message": "Do not use `React.*` types. Use named imports instead."
2112
+ },
2113
+ {
2114
+ "selector": "ExportNamespaceSpecifier",
2115
+ "message": "Usage of 'export * as …' is forbidden."
2116
+ },
2117
+ {
2118
+ "selector": "ExportAllDeclaration",
2119
+ "message": "Usage of `export * from` is forbidden."
2120
+ },
2121
+ {
2122
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2123
+ "message": "Do not use `import * as ...` from relative paths."
2124
+ }
2125
+ ],
2126
+ "@typescript-eslint/consistent-type-imports": [
2127
+ "error",
2128
+ {
2129
+ "prefer": "type-imports",
2130
+ "fixStyle": "inline-type-imports"
2131
+ }
2132
+ ]
2133
+ }
2134
+ },
2005
2135
  {
2006
2136
  "files": [
2007
2137
  "**/eslint.config.ts"
@@ -3,6 +3,7 @@
3
3
  "plugins": [
4
4
  "oxc",
5
5
  "eslint",
6
+ "typescript",
6
7
  "import"
7
8
  ],
8
9
  "jsPlugins": [
@@ -621,6 +622,7 @@
621
622
  "no-extra-boolean-cast": "error",
622
623
  "no-unexpected-multiline": "off",
623
624
  "no-duplicate-imports": "error",
625
+ "prefer-const": "off",
624
626
  "headers/header-format": [
625
627
  "error",
626
628
  {
@@ -2007,6 +2009,134 @@
2007
2009
  "no-restricted-exports": "off"
2008
2010
  }
2009
2011
  },
2012
+ {
2013
+ "files": [
2014
+ "**/*.ts",
2015
+ "**/*.tsx",
2016
+ "**/*.mts",
2017
+ "**/*.cts"
2018
+ ],
2019
+ "rules": {
2020
+ "constructor-super": "off",
2021
+ "getter-return": "off",
2022
+ "no-class-assign": "off",
2023
+ "no-const-assign": "off",
2024
+ "no-dupe-args": "off",
2025
+ "no-dupe-class-members": "off",
2026
+ "no-dupe-keys": "off",
2027
+ "no-func-assign": "off",
2028
+ "no-import-assign": "off",
2029
+ "no-new-native-nonconstructor": "off",
2030
+ "no-new-symbol": "off",
2031
+ "no-obj-calls": "off",
2032
+ "no-redeclare": "off",
2033
+ "no-setter-return": "off",
2034
+ "no-this-before-super": "off",
2035
+ "no-undef": "off",
2036
+ "no-unreachable": "off",
2037
+ "no-unsafe-negation": "off",
2038
+ "no-var": "error",
2039
+ "no-with": "off",
2040
+ "prefer-const": "error",
2041
+ "prefer-rest-params": "error",
2042
+ "prefer-spread": "error",
2043
+ "no-array-constructor": "off",
2044
+ "no-unused-expressions": "off",
2045
+ "no-unused-vars": "off",
2046
+ "@typescript-eslint/no-array-constructor": "error",
2047
+ "@typescript-eslint/no-duplicate-enum-values": "error",
2048
+ "@typescript-eslint/no-empty-object-type": "error",
2049
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
2050
+ "@typescript-eslint/no-misused-new": "error",
2051
+ "@typescript-eslint/no-namespace": "error",
2052
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
2053
+ "@typescript-eslint/no-require-imports": "error",
2054
+ "@typescript-eslint/no-this-alias": "error",
2055
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
2056
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
2057
+ "@typescript-eslint/prefer-as-const": "error",
2058
+ "@typescript-eslint/prefer-namespace-keyword": "error",
2059
+ "@typescript-eslint/triple-slash-reference": "error",
2060
+ "@typescript-eslint/explicit-function-return-type": 0,
2061
+ "@typescript-eslint/no-use-before-define": 0,
2062
+ "@typescript-eslint/no-empty-function": 0,
2063
+ "@typescript-eslint/no-unused-vars": [
2064
+ 2,
2065
+ {
2066
+ "varsIgnorePattern": "^_.*$",
2067
+ "argsIgnorePattern": "^_.*$"
2068
+ }
2069
+ ],
2070
+ "@typescript-eslint/no-explicit-any": "error",
2071
+ "@typescript-eslint/array-type": "off",
2072
+ "@typescript-eslint/ban-ts-comment": [
2073
+ "error",
2074
+ {
2075
+ "ts-expect-error": "allow-with-description"
2076
+ }
2077
+ ],
2078
+ "@typescript-eslint/no-wrapper-object-types": "error",
2079
+ "@typescript-eslint/no-unsafe-function-type": "error",
2080
+ "@typescript-eslint/no-restricted-types": [
2081
+ "error",
2082
+ {
2083
+ "types": {
2084
+ "String": {
2085
+ "message": "Use 'string' instead",
2086
+ "fixWith": "string"
2087
+ },
2088
+ "Number": {
2089
+ "message": "Use 'number' instead",
2090
+ "fixWith": "number"
2091
+ },
2092
+ "Boolean": {
2093
+ "message": "Use 'boolean' instead",
2094
+ "fixWith": "boolean"
2095
+ },
2096
+ "Symbol": {
2097
+ "message": "Use 'symbol' instead",
2098
+ "fixWith": "symbol"
2099
+ }
2100
+ }
2101
+ }
2102
+ ],
2103
+ "@typescript-eslint/explicit-member-accessibility": "off",
2104
+ "@typescript-eslint/interface-name-prefix": "off",
2105
+ "@typescript-eslint/member-ordering": "off",
2106
+ "@typescript-eslint/no-inferrable-types": "off",
2107
+ "@typescript-eslint/no-non-null-assertion": "off",
2108
+ "no-restricted-syntax": [
2109
+ "error",
2110
+ {
2111
+ "selector": "MemberExpression[object.name='React']",
2112
+ "message": "Do not use `React.*`. Use named imports instead."
2113
+ },
2114
+ {
2115
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2116
+ "message": "Do not use `React.*` types. Use named imports instead."
2117
+ },
2118
+ {
2119
+ "selector": "ExportNamespaceSpecifier",
2120
+ "message": "Usage of 'export * as …' is forbidden."
2121
+ },
2122
+ {
2123
+ "selector": "ExportAllDeclaration",
2124
+ "message": "Usage of `export * from` is forbidden."
2125
+ },
2126
+ {
2127
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2128
+ "message": "Do not use `import * as ...` from relative paths."
2129
+ }
2130
+ ],
2131
+ "@typescript-eslint/consistent-type-imports": [
2132
+ "error",
2133
+ {
2134
+ "prefer": "type-imports",
2135
+ "fixStyle": "inline-type-imports"
2136
+ }
2137
+ ]
2138
+ }
2139
+ },
2010
2140
  {
2011
2141
  "files": [
2012
2142
  "**/eslint.config.ts"
package/dist/browser.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "plugins": [
4
4
  "oxc",
5
5
  "eslint",
6
+ "typescript",
6
7
  "import"
7
8
  ],
8
9
  "jsPlugins": [
@@ -617,6 +618,7 @@
617
618
  "no-extra-boolean-cast": "error",
618
619
  "no-unexpected-multiline": "off",
619
620
  "no-duplicate-imports": "error",
621
+ "prefer-const": "off",
620
622
  "headers/header-format": [
621
623
  "error",
622
624
  {
@@ -2002,6 +2004,134 @@
2002
2004
  "no-restricted-exports": "off"
2003
2005
  }
2004
2006
  },
2007
+ {
2008
+ "files": [
2009
+ "**/*.ts",
2010
+ "**/*.tsx",
2011
+ "**/*.mts",
2012
+ "**/*.cts"
2013
+ ],
2014
+ "rules": {
2015
+ "constructor-super": "off",
2016
+ "getter-return": "off",
2017
+ "no-class-assign": "off",
2018
+ "no-const-assign": "off",
2019
+ "no-dupe-args": "off",
2020
+ "no-dupe-class-members": "off",
2021
+ "no-dupe-keys": "off",
2022
+ "no-func-assign": "off",
2023
+ "no-import-assign": "off",
2024
+ "no-new-native-nonconstructor": "off",
2025
+ "no-new-symbol": "off",
2026
+ "no-obj-calls": "off",
2027
+ "no-redeclare": "off",
2028
+ "no-setter-return": "off",
2029
+ "no-this-before-super": "off",
2030
+ "no-undef": "off",
2031
+ "no-unreachable": "off",
2032
+ "no-unsafe-negation": "off",
2033
+ "no-var": "error",
2034
+ "no-with": "off",
2035
+ "prefer-const": "error",
2036
+ "prefer-rest-params": "error",
2037
+ "prefer-spread": "error",
2038
+ "no-array-constructor": "off",
2039
+ "no-unused-expressions": "off",
2040
+ "no-unused-vars": "off",
2041
+ "@typescript-eslint/no-array-constructor": "error",
2042
+ "@typescript-eslint/no-duplicate-enum-values": "error",
2043
+ "@typescript-eslint/no-empty-object-type": "error",
2044
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
2045
+ "@typescript-eslint/no-misused-new": "error",
2046
+ "@typescript-eslint/no-namespace": "error",
2047
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
2048
+ "@typescript-eslint/no-require-imports": "error",
2049
+ "@typescript-eslint/no-this-alias": "error",
2050
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
2051
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
2052
+ "@typescript-eslint/prefer-as-const": "error",
2053
+ "@typescript-eslint/prefer-namespace-keyword": "error",
2054
+ "@typescript-eslint/triple-slash-reference": "error",
2055
+ "@typescript-eslint/explicit-function-return-type": 0,
2056
+ "@typescript-eslint/no-use-before-define": 0,
2057
+ "@typescript-eslint/no-empty-function": 0,
2058
+ "@typescript-eslint/no-unused-vars": [
2059
+ 2,
2060
+ {
2061
+ "varsIgnorePattern": "^_.*$",
2062
+ "argsIgnorePattern": "^_.*$"
2063
+ }
2064
+ ],
2065
+ "@typescript-eslint/no-explicit-any": "error",
2066
+ "@typescript-eslint/array-type": "off",
2067
+ "@typescript-eslint/ban-ts-comment": [
2068
+ "error",
2069
+ {
2070
+ "ts-expect-error": "allow-with-description"
2071
+ }
2072
+ ],
2073
+ "@typescript-eslint/no-wrapper-object-types": "error",
2074
+ "@typescript-eslint/no-unsafe-function-type": "error",
2075
+ "@typescript-eslint/no-restricted-types": [
2076
+ "error",
2077
+ {
2078
+ "types": {
2079
+ "String": {
2080
+ "message": "Use 'string' instead",
2081
+ "fixWith": "string"
2082
+ },
2083
+ "Number": {
2084
+ "message": "Use 'number' instead",
2085
+ "fixWith": "number"
2086
+ },
2087
+ "Boolean": {
2088
+ "message": "Use 'boolean' instead",
2089
+ "fixWith": "boolean"
2090
+ },
2091
+ "Symbol": {
2092
+ "message": "Use 'symbol' instead",
2093
+ "fixWith": "symbol"
2094
+ }
2095
+ }
2096
+ }
2097
+ ],
2098
+ "@typescript-eslint/explicit-member-accessibility": "off",
2099
+ "@typescript-eslint/interface-name-prefix": "off",
2100
+ "@typescript-eslint/member-ordering": "off",
2101
+ "@typescript-eslint/no-inferrable-types": "off",
2102
+ "@typescript-eslint/no-non-null-assertion": "off",
2103
+ "no-restricted-syntax": [
2104
+ "error",
2105
+ {
2106
+ "selector": "MemberExpression[object.name='React']",
2107
+ "message": "Do not use `React.*`. Use named imports instead."
2108
+ },
2109
+ {
2110
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2111
+ "message": "Do not use `React.*` types. Use named imports instead."
2112
+ },
2113
+ {
2114
+ "selector": "ExportNamespaceSpecifier",
2115
+ "message": "Usage of 'export * as …' is forbidden."
2116
+ },
2117
+ {
2118
+ "selector": "ExportAllDeclaration",
2119
+ "message": "Usage of `export * from` is forbidden."
2120
+ },
2121
+ {
2122
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2123
+ "message": "Do not use `import * as ...` from relative paths."
2124
+ }
2125
+ ],
2126
+ "@typescript-eslint/consistent-type-imports": [
2127
+ "error",
2128
+ {
2129
+ "prefer": "type-imports",
2130
+ "fixStyle": "inline-type-imports"
2131
+ }
2132
+ ]
2133
+ }
2134
+ },
2005
2135
  {
2006
2136
  "files": [
2007
2137
  "**/eslint.config.ts"
@@ -3,6 +3,7 @@
3
3
  "plugins": [
4
4
  "oxc",
5
5
  "eslint",
6
+ "typescript",
6
7
  "import"
7
8
  ],
8
9
  "jsPlugins": [
@@ -633,6 +634,7 @@
633
634
  "no-extra-boolean-cast": "error",
634
635
  "no-unexpected-multiline": "off",
635
636
  "no-duplicate-imports": "error",
637
+ "prefer-const": "off",
636
638
  "headers/header-format": [
637
639
  "error",
638
640
  {
@@ -2036,6 +2038,134 @@
2036
2038
  "no-restricted-exports": "off"
2037
2039
  }
2038
2040
  },
2041
+ {
2042
+ "files": [
2043
+ "**/*.ts",
2044
+ "**/*.tsx",
2045
+ "**/*.mts",
2046
+ "**/*.cts"
2047
+ ],
2048
+ "rules": {
2049
+ "constructor-super": "off",
2050
+ "getter-return": "off",
2051
+ "no-class-assign": "off",
2052
+ "no-const-assign": "off",
2053
+ "no-dupe-args": "off",
2054
+ "no-dupe-class-members": "off",
2055
+ "no-dupe-keys": "off",
2056
+ "no-func-assign": "off",
2057
+ "no-import-assign": "off",
2058
+ "no-new-native-nonconstructor": "off",
2059
+ "no-new-symbol": "off",
2060
+ "no-obj-calls": "off",
2061
+ "no-redeclare": "off",
2062
+ "no-setter-return": "off",
2063
+ "no-this-before-super": "off",
2064
+ "no-undef": "off",
2065
+ "no-unreachable": "off",
2066
+ "no-unsafe-negation": "off",
2067
+ "no-var": "error",
2068
+ "no-with": "off",
2069
+ "prefer-const": "error",
2070
+ "prefer-rest-params": "error",
2071
+ "prefer-spread": "error",
2072
+ "no-array-constructor": "off",
2073
+ "no-unused-expressions": "off",
2074
+ "no-unused-vars": "off",
2075
+ "@typescript-eslint/no-array-constructor": "error",
2076
+ "@typescript-eslint/no-duplicate-enum-values": "error",
2077
+ "@typescript-eslint/no-empty-object-type": "error",
2078
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
2079
+ "@typescript-eslint/no-misused-new": "error",
2080
+ "@typescript-eslint/no-namespace": "error",
2081
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
2082
+ "@typescript-eslint/no-require-imports": "error",
2083
+ "@typescript-eslint/no-this-alias": "error",
2084
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
2085
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
2086
+ "@typescript-eslint/prefer-as-const": "error",
2087
+ "@typescript-eslint/prefer-namespace-keyword": "error",
2088
+ "@typescript-eslint/triple-slash-reference": "error",
2089
+ "@typescript-eslint/explicit-function-return-type": 0,
2090
+ "@typescript-eslint/no-use-before-define": 0,
2091
+ "@typescript-eslint/no-empty-function": 0,
2092
+ "@typescript-eslint/no-unused-vars": [
2093
+ 2,
2094
+ {
2095
+ "varsIgnorePattern": "^_.*$",
2096
+ "argsIgnorePattern": "^_.*$"
2097
+ }
2098
+ ],
2099
+ "@typescript-eslint/no-explicit-any": "error",
2100
+ "@typescript-eslint/array-type": "off",
2101
+ "@typescript-eslint/ban-ts-comment": [
2102
+ "error",
2103
+ {
2104
+ "ts-expect-error": "allow-with-description"
2105
+ }
2106
+ ],
2107
+ "@typescript-eslint/no-wrapper-object-types": "error",
2108
+ "@typescript-eslint/no-unsafe-function-type": "error",
2109
+ "@typescript-eslint/no-restricted-types": [
2110
+ "error",
2111
+ {
2112
+ "types": {
2113
+ "String": {
2114
+ "message": "Use 'string' instead",
2115
+ "fixWith": "string"
2116
+ },
2117
+ "Number": {
2118
+ "message": "Use 'number' instead",
2119
+ "fixWith": "number"
2120
+ },
2121
+ "Boolean": {
2122
+ "message": "Use 'boolean' instead",
2123
+ "fixWith": "boolean"
2124
+ },
2125
+ "Symbol": {
2126
+ "message": "Use 'symbol' instead",
2127
+ "fixWith": "symbol"
2128
+ }
2129
+ }
2130
+ }
2131
+ ],
2132
+ "@typescript-eslint/explicit-member-accessibility": "off",
2133
+ "@typescript-eslint/interface-name-prefix": "off",
2134
+ "@typescript-eslint/member-ordering": "off",
2135
+ "@typescript-eslint/no-inferrable-types": "off",
2136
+ "@typescript-eslint/no-non-null-assertion": "off",
2137
+ "no-restricted-syntax": [
2138
+ "error",
2139
+ {
2140
+ "selector": "MemberExpression[object.name='React']",
2141
+ "message": "Do not use `React.*`. Use named imports instead."
2142
+ },
2143
+ {
2144
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2145
+ "message": "Do not use `React.*` types. Use named imports instead."
2146
+ },
2147
+ {
2148
+ "selector": "ExportNamespaceSpecifier",
2149
+ "message": "Usage of 'export * as …' is forbidden."
2150
+ },
2151
+ {
2152
+ "selector": "ExportAllDeclaration",
2153
+ "message": "Usage of `export * from` is forbidden."
2154
+ },
2155
+ {
2156
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2157
+ "message": "Do not use `import * as ...` from relative paths."
2158
+ }
2159
+ ],
2160
+ "@typescript-eslint/consistent-type-imports": [
2161
+ "error",
2162
+ {
2163
+ "prefer": "type-imports",
2164
+ "fixStyle": "inline-type-imports"
2165
+ }
2166
+ ]
2167
+ }
2168
+ },
2039
2169
  {
2040
2170
  "files": [
2041
2171
  "**/eslint.config.ts"