Skip to content

Commit eb61594

Browse files
committed
update configs
1 parent 8993233 commit eb61594

2 files changed

Lines changed: 35 additions & 13 deletions

File tree

.oxfmtrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
"**/storybook-static/",
2222
"**/.changeset/",
2323
"**/dist/",
24+
"internal-packages/tsql/src/grammar/",
25+
// Maybe turn these on in the future
2426
"**/*.yaml",
25-
"internal-packages/tsql/src/grammar/"
27+
"**/*.mdx",
28+
"**/*.md"
2629
]
2730
}

.oxlintrc.json

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,38 @@
99
"**/seedCloud.ts",
1010
"**/populate.js"
1111
],
12+
// All rules below are disabled because they currently fire on the existing
13+
// codebase (1748 warnings across these 20 rules as of this commit). Disabled
14+
// to keep the lint baseline green; re-enable and fix incrementally.
1215
"rules": {
13-
"consistent-type-imports": [
14-
"warn",
15-
{
16-
"prefer": "type-imports",
17-
"disallowTypeAnnotations": true,
18-
"fixStyle": "inline-type-imports"
19-
}
20-
],
21-
"import/no-duplicates": ["warn", { "prefer-inline": true }],
22-
// Disabled for now: oxlint treats any use*()/use() call as a React hook,
23-
// producing false positives in async/test code (testcontainers, cli-v3 e2e).
24-
// Re-enable (ideally scoped to React packages) once those are addressed.
16+
// eslint
17+
"no-unused-vars": "off",
18+
"no-unused-expressions": "off",
19+
"no-control-regex": "off",
20+
"no-empty-pattern": "off",
21+
"no-unused-private-class-members": "off",
22+
"no-useless-catch": "off",
23+
"no-unsafe-optional-chaining": "off",
24+
"no-unreachable": "off",
25+
"require-yield": "off",
26+
"no-async-promise-executor": "off",
27+
"no-unsafe-finally": "off",
28+
"no-useless-escape": "off",
29+
// typescript
30+
"typescript/consistent-type-imports": "off",
31+
"typescript/no-this-alias": "off",
32+
"typescript/no-non-null-asserted-optional-chain": "off",
33+
"typescript/no-unnecessary-parameter-property-assignment": "off",
34+
// import
35+
"import/no-duplicates": "off",
36+
"import/namespace": "off",
37+
// react
38+
"react/jsx-key": "off",
39+
"react/no-children-prop": "off",
40+
// react-hooks
41+
"react-hooks/exhaustive-deps": "off",
42+
// oxlint treats any use*()/use() call as a React hook, producing false
43+
// positives in async/test code (testcontainers, cli-v3 e2e).
2544
"react-hooks/rules-of-hooks": "off"
2645
}
2746
}

0 commit comments

Comments
 (0)