Skip to content

Commit f848991

Browse files
committed
fix: update Biome and ESLint configs for bracket notation support
Update linting configuration to support TypeScript bracket notation for index signature properties: - Disable Biome rules: useLiteralKeys, noParameterAssign, noBannedTypes, noExplicitAny, noAsyncPromiseExecutor - Disable ESLint rules: no-unexpected-multiline, sort-imports This aligns with socket-sdk-js and enables TypeScript TS4111 compliance.
1 parent 42c7235 commit f848991

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.config/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export default [
177177
'no-new': 'error',
178178
'no-proto': 'error',
179179
'no-undef': 'error',
180+
'no-unexpected-multiline': 'off',
180181
'no-unused-vars': [
181182
'error',
182183
{
@@ -189,7 +190,7 @@ export default [
189190
'no-warning-comments': ['warn', { terms: ['fixme'] }],
190191
'prefer-const': 'error',
191192
'sort-destructure-keys/sort-destructure-keys': 'error',
192-
'sort-imports': ['error', { ignoreDeclarationSort: true }],
193+
'sort-imports': 'off',
193194
},
194195
},
195196
{

biome.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@
6060
"linter": {
6161
"rules": {
6262
"complexity": {
63+
"noBannedTypes": "off",
6364
"noStaticOnlyClass": "off",
6465
"useLiteralKeys": "off"
6566
},
6667
"style": {
6768
"noNonNullAssertion": "off",
68-
"noParameterAssign": "error",
69+
"noParameterAssign": "off",
6970
"useAsConstAssertion": "error",
7071
"useDefaultParameterLast": "error",
7172
"useEnumInitializers": "error",
@@ -79,6 +80,8 @@
7980
},
8081
"suspicious": {
8182
"noAssignInExpressions": "off",
83+
"noAsyncPromiseExecutor": "off",
84+
"noExplicitAny": "off",
8285
"useIterableCallbackReturn": "off"
8386
}
8487
}

0 commit comments

Comments
 (0)