Skip to content
Open
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
40 changes: 20 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 10
versioning-strategy: increase
groups:
production-dependencies:
dependency-type: "production"
development-dependencies:
dependency-type: "development"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 5
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 10
versioning-strategy: increase
groups:
production-dependencies:
dependency-type: 'production'
development-dependencies:
dependency-type: 'development'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 5
groups:
github-actions:
patterns:
- '*'
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
node-version: [22.x, 24.x, 26.x]
fail-fast: false
steps:
- name: Checkout
Expand All @@ -25,6 +25,8 @@ jobs:
run: npm run format:check
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Build
run: npm run build
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pkg-pr-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 20
node-version: 22.x
cache: 'npm'

- name: Install Dependencies
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
- name: Setup Node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 20
node-version: 22.x
- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Build
run: npm run build
- name: Test
Expand Down Expand Up @@ -50,6 +52,6 @@ jobs:
env:
TAG_NAME: ${{ github.ref_name }}
- run: npm stage publish --provenance --access public --tag next
if: "github.event.release.prerelease"
if: 'github.event.release.prerelease'
- run: npm stage publish --provenance --access public
if: "!github.event.release.prerelease"
if: '!github.event.release.prerelease'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/lib
/dist
/node_modules
*.swp
/coverage
10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

56 changes: 56 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.formatOnPaste": false,
"editor.formatOnType": false,
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.detectIndentation": false,
"oxc.enable": true,
"oxc.configPath": "oxlint.config.ts",
"oxc.fmt.configPath": "oxfmt.config.ts",
"[typescript]": {
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.tabSize": 2
},
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.tabSize": 2
},
"[jsonc]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.tabSize": 2
},
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.autoIndent": "keep",
"diffEditor.ignoreTrimWhitespace": false,
"editor.defaultColorDecorators": "never",
"editor.quickSuggestions": {
"strings": true,
"other": true,
"comments": false
},
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[markdown]": {
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.wordWrap": "on",
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
},
"editor.defaultFormatter": "oxc.oxc-vscode"
}
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Command-line options, exit behavior, and fuller examples are in the docs below.

## Documentation

| Page | Description |
|------|-------------|
| [`analyze`](./docs/analyze.md) | Analyze command: examples, flags, metrics, exit codes, what checks run |
| [`migrate`](./docs/migrate.md) | Migrate command: examples, flags, scope |
| [Programmatic API](./docs/programmatic-api.md) | Experimental `report()` usage and trust exports (`src/index.ts`) |
| Page | Description |
| ---------------------------------------------- | ---------------------------------------------------------------------- |
| [`analyze`](./docs/analyze.md) | Analyze command: examples, flags, metrics, exit codes, what checks run |
| [`migrate`](./docs/migrate.md) | Migrate command: examples, flags, scope |
| [Programmatic API](./docs/programmatic-api.md) | Experimental `report()` usage and trust exports (`src/index.ts`) |

## Contributing

Expand Down
2 changes: 0 additions & 2 deletions cli.js

This file was deleted.

21 changes: 0 additions & 21 deletions eslint.config.js

This file was deleted.

16 changes: 16 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {defineConfig} from 'oxfmt';

export default defineConfig({
bracketSpacing: false,
printWidth: 80,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'none',
useTabs: false,
arrowParens: 'always',
endOfLine: 'lf',
sortImports: false,
sortPackageJson: true,
ignorePatterns: ['test/fixtures/**']
});
15 changes: 15 additions & 0 deletions oxlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {defineConfig} from 'oxlint';

export default defineConfig({
plugins: ['oxc', 'typescript', 'import', 'jsdoc', 'promise', 'vitest'],
categories: {
correctness: 'error'
},
rules: {
'vitest/prefer-snapshot-hint': 'off'
},
options: {
typeAware: true
},
ignorePatterns: ['test/fixtures/**']
});
Loading