Skip to content

Commit ffd70e8

Browse files
committed
feat(oxlint-config): brand new oxlint config
1 parent 5d3076d commit ffd70e8

51 files changed

Lines changed: 2910 additions & 485 deletions

Some content is hidden

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

.github/workflows/tests.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,18 @@ on:
77
jobs:
88
unit:
99
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
node-version:
13-
- 20
14-
- 22
15-
name: Node.js ${{ matrix.node-version }} / unit
10+
name: unit
1611
steps:
1712
- name: Checkout the repository
1813
uses: actions/checkout@v6
1914
- name: Install pnpm
2015
uses: pnpm/action-setup@v6
2116
with:
2217
version: 10
23-
- name: Install Node.js ${{ matrix.node-version }}
18+
- name: Install Node.js
2419
uses: actions/setup-node@v6
2520
with:
26-
node-version: ${{ matrix.node-version }}
21+
node-version: 22
2722
cache: 'pnpm'
2823
- name: Install dependencies
2924
run: pnpm install
@@ -42,7 +37,7 @@ jobs:
4237
- name: Install Node.js
4338
uses: actions/setup-node@v6
4439
with:
45-
node-version: 20
40+
node-version: 22
4641
cache: 'pnpm'
4742
- name: Install dependencies
4843
run: pnpm install

.nano-staged.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"*.{c,m,}{js,ts}{x,}": "eslint --flag v10_config_lookup_from_file --fix"
2+
"*.{c,m,}{js,ts}{x,}": "oxlint --fix"
33
}

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pnpm 10.11.0
2-
nodejs 22.4.1
2+
nodejs 22.18.0

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Scripts and configs for TrigenSoftware's projects.
2727
| [`@trigen/project-files`](packages/project-files#readme) | [![NPM version][project-files-npm]][project-files-npm-url] | [![Dependencies status][project-files-deps]][project-files-deps-url] |
2828
| [`@trigen/browserslist-config`](packages/browserslist-config#readme) | [![NPM version][browserslist-config-npm]][browserslist-config-npm-url] | |
2929
| [`@trigen/eslint-config`](packages/eslint-config#readme) | [![NPM version][eslint-config-npm]][eslint-config-npm-url] | [![Dependencies status][eslint-config-deps]][eslint-config-deps-url] |
30+
| [`@trigen/oxlint-config`](packages/oxlint-config#readme) | [![NPM version][oxlint-config-npm]][oxlint-config-npm-url] | [![Dependencies status][oxlint-config-deps]][oxlint-config-deps-url] |
3031
| [`@trigen/stylelint-config`](packages/stylelint-config#readme) | [![NPM version][stylelint-config-npm]][stylelint-config-npm-url] | [![Dependencies status][stylelint-config-deps]][stylelint-config-deps-url] |
3132
| [`@trigen/lint-package-json`](packages/lint-package-json#readme) | [![NPM version][lint-package-json-npm]][lint-package-json-npm-url] | [![Dependencies status][lint-package-json-deps]][lint-package-json-deps-url] |
3233
| [`@trigen/npm-package-json-lint-config`](packages/npm-package-json-lint-config#readme) | [![NPM version][npm-package-json-lint-config-npm]][npm-package-json-lint-config-npm-url] | [![Dependencies status][npm-package-json-lint-config-deps]][npm-package-json-lint-config-deps-url] |
@@ -52,6 +53,14 @@ Scripts and configs for TrigenSoftware's projects.
5253
[eslint-config-deps]: https://img.shields.io/librariesio/release/npm/@trigen/eslint-config
5354
[eslint-config-deps-url]: https://libraries.io/npm/@trigen%2Feslint-config
5455

56+
<!-- oxlint-config -->
57+
58+
[oxlint-config-npm]: https://img.shields.io/npm/v/%40trigen/oxlint-config.svg
59+
[oxlint-config-npm-url]: https://www.npmjs.com/package/@trigen/oxlint-config
60+
61+
[oxlint-config-deps]: https://img.shields.io/librariesio/release/npm/@trigen/oxlint-config
62+
[oxlint-config-deps-url]: https://libraries.io/npm/@trigen%2Foxlint-config
63+
5564
<!-- stylelint-config -->
5665

5766
[stylelint-config-npm]: https://img.shields.io/npm/v/%40trigen/stylelint-config.svg

eslint.config.js

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

oxlint.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import baseConfig from '@trigen/oxlint-config'
2+
import testConfig from '@trigen/oxlint-config/test'
3+
4+
export default {
5+
ignorePatterns: ['**/package/'],
6+
extends: [
7+
baseConfig,
8+
testConfig
9+
],
10+
env: {
11+
node: true
12+
},
13+
rules: {
14+
'eslint/no-console': 'off'
15+
}
16+
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"clear": "del './packages/*/package' ./coverage ./node_modules/.cache",
2121
"lint:package-json": "lint-package-json --monorepo",
22-
"lint": "eslint --flag v10_config_lookup_from_file",
22+
"lint": "oxlint",
2323
"test:unit": "vitest run",
2424
"test:unit:watch": "vitest watch",
2525
"test": "run -p lint test:unit",
@@ -31,17 +31,17 @@
3131
"@commitlint/config-conventional": "^20.0.0",
3232
"@commitlint/config-pnpm-scopes": "^20.0.0",
3333
"@commitlint/cz-commitlint": "^20.0.0",
34-
"@trigen/eslint-config": "workspace:*",
3534
"@trigen/lint-package-json": "workspace:*",
35+
"@trigen/oxlint-config": "workspace:*",
3636
"@trigen/project-files": "workspace:*",
3737
"@trigen/scripts": "workspace:*",
3838
"clean-publish": "^5.0.0",
3939
"commitizen": "^4.3.1",
4040
"del-cli": "^7.0.0",
41-
"eslint": "9.31.0",
4241
"inquirer": "^9.3.7",
4342
"nano-staged": "^1.0.0",
4443
"npm-package-json-lint": "^9.0.0",
44+
"oxlint": "^1.67.0",
4545
"simple-git-hooks": "^2.7.0",
4646
"vite": "^7.0.0",
4747
"vitest": "^4.0.0"

packages/browserslist-config/eslint.config.mjs

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import moduleConfig from '@trigen/oxlint-config/module'
2+
import rootConfig from '../../oxlint.config.ts'
3+
4+
export default {
5+
...rootConfig,
6+
extends: [
7+
rootConfig,
8+
moduleConfig
9+
],
10+
rules: {
11+
'import/no-default-export': 'off'
12+
}
13+
}

packages/eslint-config/eslint.config.js

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

0 commit comments

Comments
 (0)