Skip to content

Commit ad2f952

Browse files
committed
chore(deps-dev): moving from Biome+Prettier to Oxc
1 parent 2d0dbb5 commit ad2f952

18 files changed

Lines changed: 2707 additions & 387 deletions

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["EditorConfig.EditorConfig"]
2+
"recommendations": ["oxc.oxc-vscode"]
33
}

.vscode/settings.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
{
2-
"editor.defaultFormatter": "esbenp.prettier-vscode",
2+
"editor.defaultFormatter": "oxc.oxc-vscode",
33
"editor.codeActionsOnSave": {
44
"source.fixAll": "explicit"
55
},
66
"editor.formatOnSave": true,
77

8+
// Explicitly disable non-Oxc extensions to avoid conflicts.
9+
"biome.enabled": false,
10+
"eslint.enable": false,
11+
"oxc.enable.oxfmt": true,
12+
"oxc.enable.oxlint": true,
13+
"prettier.enable": false,
14+
15+
// Forcefully set the default formatter for all JS and TS files in this repository to Oxlint
16+
// just in case somebody has it set to another formatter in their personal settings.
17+
"[javascript]": {
18+
"editor.defaultFormatter": "oxc.oxc-vscode"
19+
},
20+
"[typescript]": {
21+
"editor.defaultFormatter": "oxc.oxc-vscode"
22+
},
23+
824
// controlled by the .editorconfig at root since we can't map vscode settings directly to files
925
// https://github.com/microsoft/vscode/issues/35350
1026
"files.insertFinalNewline": false,

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 ReadMe (https://readme.com)
3+
Copyright (c) 2026 ReadMe (https://readme.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

biome.jsonc

Lines changed: 0 additions & 55 deletions
This file was deleted.

oxfmt.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import oxfmtConfig from '@readme/oxlint-config/oxfmt';
2+
import { defineConfig } from 'oxfmt';
3+
4+
export default defineConfig(
5+
Object.assign(structuredClone(oxfmtConfig), {
6+
sortImports: {
7+
...oxfmtConfig.sortImports,
8+
},
9+
ignorePatterns: ['build/', 'coverage/', 'dist/', 'src/targets/**/fixtures/'],
10+
}),
11+
);

oxlint.config.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import oxlintConfig from '@readme/oxlint-config';
2+
import oxlintConfigVitest from '@readme/oxlint-config/testing/vitest';
3+
import oxlintConfigTS from '@readme/oxlint-config/typescript';
4+
import { defineConfig } from 'oxlint';
5+
6+
export default defineConfig({
7+
extends: [oxlintConfig, oxlintConfigTS],
8+
options: {
9+
reportUnusedDisableDirectives: 'error',
10+
},
11+
ignorePatterns: ['coverage/', 'dist/', 'src/targets/**/fixtures/'],
12+
categories: {
13+
suspicious: 'error',
14+
},
15+
env: {
16+
browser: true,
17+
commonjs: true,
18+
es2022: true,
19+
node: true,
20+
},
21+
rules: {
22+
'class-methods-use-this': 'off',
23+
'default-case': 'off',
24+
'max-classes-per-file': 'off',
25+
'no-param-reassign': 'off', // @fixme
26+
'no-use-before-define': 'off', // @fixme
27+
'unicorn/consistent-function-scoping': 'off', // @fixme
28+
'unicorn/no-array-sort': 'off', // @fixme
29+
},
30+
overrides: [
31+
{
32+
files: ['test/**/*.test.{js,ts}'],
33+
...oxlintConfigVitest,
34+
rules: oxlintConfigVitest.rules,
35+
},
36+
],
37+
});

0 commit comments

Comments
 (0)