Skip to content

Commit 3a2b53f

Browse files
authored
Merge pull request #34 from dev-five-git/support-oxlint
Support oxlint
2 parents e357393 + 20dc82f commit 3a2b53f

File tree

25 files changed

+1797
-1303
lines changed

25 files changed

+1797
-1303
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"package.json":"Patch"},"note":"Support oxlint","date":"2026-01-22T15:25:57.906162800Z"}

.changepacks/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"latestPackage": "package.json",
55
"publish": {},
66
"updateOn": {}
7-
}
7+
}

.github/workflows/check-pr.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: Check Pull Request
2-
on:
3-
pull_request:
4-
branches:
5-
- main
6-
jobs:
7-
check:
8-
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
- uses: oven-sh/setup-bun@v2
16-
- run: bun i
17-
- run: |
18-
bun test
19-
bun run build
20-
# eslint project can not lint before build
21-
bun lint
1+
name: Check Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
check:
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- uses: oven-sh/setup-bun@v2
16+
- run: bun i
17+
- run: |
18+
bun test
19+
bun run build
20+
# eslint project can not lint before build
21+
bun lint

.github/workflows/publish.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: Publish Package to npm
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
8-
jobs:
9-
publish:
10-
runs-on: ubuntu-latest
11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: false
14-
permissions:
15-
# create pull request comments
16-
pull-requests: write
17-
18-
# Actions > General > Workflow permissions for creating pull request
19-
# Create brench to create pull request
20-
contents: write
21-
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v4
24-
- uses: oven-sh/setup-bun@v2
25-
- run: bun i
26-
- run: |
27-
bun test
28-
bun run build
29-
# eslint project can not lint before build
30-
bun lint
31-
- uses: changepacks/action@main
32-
id: changepacks
33-
with:
34-
publish: true
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
1+
name: Publish Package to npm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: false
14+
permissions:
15+
# create pull request comments
16+
pull-requests: write
17+
18+
# Actions > General > Workflow permissions for creating pull request
19+
# Create brench to create pull request
20+
contents: write
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- uses: oven-sh/setup-bun@v2
25+
- run: bun i
26+
- run: |
27+
bun test
28+
bun run build
29+
# eslint project can not lint before build
30+
bun lint
31+
- uses: changepacks/action@main
32+
id: changepacks
33+
with:
34+
publish: true
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}

.oxlintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3+
"extends": ["./oxlintrc.json"],
4+
"jsPlugins": [
5+
"./dist/oxlint.mjs",
6+
"eslint-plugin-simple-import-sort",
7+
"eslint-plugin-unused-imports",
8+
"@tanstack/eslint-plugin-query",
9+
"eslint-plugin-eslint-plugin"
10+
],
11+
"rules": {
12+
"eslint-plugin/require-meta-docs-description": "error",
13+
"eslint-plugin/require-meta-type": "error",
14+
"eslint-plugin/no-unused-message-ids": "error",
15+
"eslint-plugin/no-missing-message-ids": "error",
16+
"eslint-plugin/prefer-message-ids": "error",
17+
"eslint-plugin/no-deprecated-report-api": "error"
18+
}
19+
}

README.md

Lines changed: 58 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,58 @@
1-
# eslint-plugin-devup
2-
3-
`devup` is a system for faster and more accurate software development used at DevFive.
4-
5-
`eslint-plugin-devup` helps you develop software quickly and accurately.
6-
7-
For details on each rule, please refer to the files in the `src/rules` directory.
8-
9-
As this was originally used internally and has now been made public, some rules exist for company-specific systems.
10-
11-
All rules are provided as `named exports` so you can use only the rules you want.
12-
13-
## Installation
14-
15-
```bash
16-
bun add -d eslint-plugin-devup
17-
```
18-
19-
## Usage
20-
21-
Create an `eslint.config.mjs` file in your project root.
22-
23-
```js
24-
import { configs } from 'eslint-plugin-devup'
25-
26-
export default configs.recommended
27-
```
28-
29-
## Test
30-
31-
Coverage score must be 100%.
32-
33-
```bash
34-
bun test
35-
```
36-
37-
## Contributing
38-
39-
- When adding or modifying rules, add or modify files in the `src/rules` directory.
40-
- When adding or modifying rules, add a description of the rule in `README.md`.
41-
42-
All opinions and contributions are welcome.
43-
44-
## Join the Community
45-
46-
[Discord](https://discord.gg/8zjcGc7cWh)
1+
# eslint-plugin-devup
2+
3+
`devup` is a system for faster and more accurate software development used at DevFive.
4+
5+
`eslint-plugin-devup` helps you develop software quickly and accurately.
6+
7+
For details on each rule, please refer to the files in the `src/rules` directory.
8+
9+
As this was originally used internally and has now been made public, some rules exist for company-specific systems.
10+
11+
All rules are provided as `named exports` so you can use only the rules you want.
12+
13+
## Installation
14+
15+
```bash
16+
bun add -d eslint-plugin-devup
17+
```
18+
19+
## Usage
20+
21+
### ESLint
22+
23+
Create an `eslint.config.mjs` file in your project root.
24+
25+
```js
26+
import { configs } from "eslint-plugin-devup";
27+
28+
export default configs.recommended;
29+
```
30+
31+
### Oxlint
32+
33+
Create an `.oxlintrc.json` file in your project root.
34+
35+
```json
36+
{
37+
"extends": ["eslint-plugin-devup/oxlintrc"]
38+
}
39+
```
40+
41+
## Test
42+
43+
Coverage score must be 100%.
44+
45+
```bash
46+
bun test
47+
```
48+
49+
## Contributing
50+
51+
- When adding or modifying rules, add or modify files in the `src/rules` directory.
52+
- When adding or modifying rules, add a description of the rule in `README.md`.
53+
54+
All opinions and contributions are welcome.
55+
56+
## Join the Community
57+
58+
[Discord](https://discord.gg/8zjcGc7cWh)

0 commit comments

Comments
 (0)