Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Run `npm run bump` to bump the version and create a git tag.
push:
tags:
- "v*"
- 'v*'

workflow_dispatch:

Expand Down Expand Up @@ -46,4 +46,4 @@ jobs:
- name: Create GitHub Release
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
with:
generateReleaseNotes: "true"
generateReleaseNotes: 'true'
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24.15.0
cache: "pnpm"
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
dist
pnpm-lock.yaml
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["biomejs.biome"]
"recommendations": ["rstack.rslint", "esbenp.prettier-vscode"]
}
16 changes: 1 addition & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
"search.useIgnoreFiles": true,
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[css]": {
"editor.defaultFormatter": "biomejs.biome"
}
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
31 changes: 0 additions & 31 deletions biome.json

This file was deleted.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,30 @@
},
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "rslib",
"dev": "rslib -w",
"lint": "biome check .",
"lint:write": "biome check . --write",
"lint": "rslint && prettier -c .",
"lint:write": "rslint --fix && prettier -w .",
"prepare": "simple-git-hooks && rslib",
"test": "rstest",
"bump": "npx bumpp"
},
"simple-git-hooks": {
"pre-commit": "npm run lint:write"
"pre-commit": "pnpm run lint:write"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@rslib/core": "^0.21.3",
"@rslint/core": "^0.5.1",
"@rstest/core": "^0.9.10",
"@types/node": "^24.12.2",
"case-police": "^2.2.1",
"pathe": "^2.0.3",
"picocolors": "^1.1.1",
"prettier": "^3.8.3",
"rslog": "^2.1.1",
"simple-git-hooks": "^2.13.1",
"tinyglobby": "^0.2.16",
Expand Down
186 changes: 91 additions & 95 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig, js, ts } from '@rslint/core';

export default defineConfig([js.configs.recommended, ts.configs.recommended]);
Comment thread
chenjiahan marked this conversation as resolved.
Comment thread
chenjiahan marked this conversation as resolved.
4 changes: 1 addition & 3 deletions src/dict.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import abbreviates from 'case-police/dict/abbreviates.json' with {
type: 'json',
};
import abbreviates from 'case-police/dict/abbreviates.json' with { type: 'json' };
import brands from 'case-police/dict/brands.json' with { type: 'json' };
import general from 'case-police/dict/general.json' with { type: 'json' };
import products from 'case-police/dict/products.json' with { type: 'json' };
Expand Down
Loading