Skip to content

Commit b3c9120

Browse files
authored
migrate from eslint/prettier to oxc (#1421)
1 parent cd20f28 commit b3c9120

File tree

575 files changed

+3066
-6888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

575 files changed

+3066
-6888
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.cjs

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

.github/workflows/build.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,22 @@ jobs:
3737
- name: yarn install
3838
run: |
3939
yarn install --immutable --immutable-cache
40-
# required to have types info, otherwise eslint will complain about any type
40+
# required to have types info for type-aware linting
4141
- name: yarn compile
4242
run: |
4343
yarn compile
4444
- name: yarn lint
4545
run: |
4646
yarn lint
47-
- name: yarn dlx sherif
47+
- name: yarn format:check
4848
run: |
49-
yarn dlx sherif
50-
51-
prettier:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v6
55-
- uses: actions/setup-node@v4
56-
with:
57-
node-version: 20
58-
cache: "yarn"
59-
- name: yarn install
49+
yarn format:check
50+
- name: yarn lint:type
6051
run: |
61-
yarn install --immutable --immutable-cache
62-
- name: yarn prettier
52+
yarn lint:type
53+
- name: yarn dlx sherif
6354
run: |
64-
yarn prettier:check
55+
yarn dlx sherif
6556
6657
build:
6758
name: "Build"

.oxfmtignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/test/fixtures/**
2+
**/dist/**
3+
out/**
4+
allure-report/**
5+
node_modules/**
6+
.yarn/**

.oxfmtrc.jsonc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 120,
3+
"trailingComma": "all",
4+
"singleQuote": false,
5+
"arrowParens": "always",
6+
"quoteProps": "consistent",
7+
"experimentalSortImports": {}
8+
}

.oxlintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"plugins": ["typescript", "import", "jsdoc", "node"],
3+
"env": {
4+
"browser": true,
5+
"node": true
6+
},
7+
"ignorePatterns": [
8+
"**/.yarn/**",
9+
"**/node_modules/**",
10+
"**/dist/**",
11+
"**/out/**",
12+
"**/.pnp.*",
13+
"**/allure-report/**",
14+
"**/test/fixtures/**"
15+
]
16+
}

0 commit comments

Comments
 (0)