Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ gh get timobechtel/style templates/react/.oxlintrc.jsonc
<details>
<summary>Migrating to Oxlint? - `File '@timobechtel/style/tsconfig/core' not found.`</summary>

When migrating from ESLint to Oxlint, you might need to update the `tsconfig.json` file:
When migrating from ESLint to Oxlint, you might need to update the `tsconfig.json` file:

```diff
- "extends": ["@timobechtel/style/tsconfig/core"]
+ "extends": ["@timobechtel/style/tsconfig/core.json"]
```
```diff
- "extends": ["@timobechtel/style/tsconfig/core"]
+ "extends": ["@timobechtel/style/tsconfig/core.json"]
```

```diff
- "extends": ["@timobechtel/style/tsconfig/react"]
+ "extends": ["@timobechtel/style/tsconfig/react.json"]
```
```diff
- "extends": ["@timobechtel/style/tsconfig/react"]
+ "extends": ["@timobechtel/style/tsconfig/react.json"]
```

> tsgolint requires a file extension to resolve the config file.
> tsgolint requires a file extension to resolve the config file.

</details>

Expand Down
Binary file modified bun.lockb
Binary file not shown.
11 changes: 11 additions & 0 deletions oxlint/core.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"oxc",
"import"
],
"jsPlugins": [
"oxlint-plugin-complexity"
],
"categories": {
"correctness": "error",
"suspicious": "error",
Expand Down Expand Up @@ -187,6 +190,14 @@

// report duplicate code in branches
"oxc/branches-sharing-code": "warn",
"complexity/complexity": [
"warn",
{
"cyclomatic": 20,
"cognitive": 15,
"minLines": 15
}
],
// prevent mixing value and non-value returns in functions
"typescript/consistent-return": "warn",
"typescript/no-unnecessary-qualifier": "warn",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"eslint-plugin-unicorn": "^63.0.0",
"globals": "^17.3.0",
"oxlint-tsgolint": "^0.16.0",
"typescript-eslint": "^8.56.0"
"typescript-eslint": "^8.56.0",
"@oxlint/plugins": "^1.63.0",
"oxlint-plugin-complexity": "^2.1.2"
}
}