🔧 Replace ESLint and Prettier with oxlint and oxfmt
- Drop .eslintrc.cjs and .prettierrc, add .oxlintrc.json and .oxfmtrc.json - oxlint covers correctness/suspicious/perf/style/restriction categories plus import and typescript plugins; oxfmt reads the same .prettierrc-style options we had before - Update lefthook.yml pre-commit jobs to run oxlint/oxfmt instead of eslint/prettier - Update .vscode/extensions.json (oxc replaces eslint/prettier/vitest) and settings.json (oxc becomes the default formatter for TS/JS) - Add 'oxlint', 'oxfmt', 'oxc', 'nodenext' to cspell dictionary - Rewrite README 'Development' section to describe the new toolchain
This commit is contained in:
1 parent
3530262261
commit
078a8c30fd
11 files changed
+130
-130
No files matched your search
+25
-23
@@ -10,51 +10,47 @@
|
||||
"adt",
|
||||
"typescript"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tmueller/tiny-pattern-ts.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=22.6"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tmueller/tiny-pattern-ts.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
|
||||
"test": "npm run check:tsc && node --test --experimental-strip-types --no-warnings src/",
|
||||
"test:unit": "node --test --experimental-strip-types --no-warnings src/",
|
||||
"test:ci": "c8 --reporter=text --reporter=lcov --reporter=html node --test --experimental-strip-types --no-warnings src/",
|
||||
"check": "npm run check:oxlint && npm run check:oxfmt && npm run check:tsc && npm run check:cspell && npm run check:package && npm run check:outdated",
|
||||
"check:oxlint": "oxlint src",
|
||||
"check:oxfmt": "oxfmt --check src",
|
||||
"check:tsc": "tsc --noEmit",
|
||||
"check:cspell": "cspell .",
|
||||
"check:package": "sort-package-json --check",
|
||||
"check:outdated": "check-outdated",
|
||||
"fix:oxlint": "oxlint --fix src",
|
||||
"check:oxfmt": "oxfmt --check src",
|
||||
"check:oxlint": "oxlint src",
|
||||
"check:package": "sort-package-json --check",
|
||||
"check:tsc": "tsc --noEmit",
|
||||
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
|
||||
"fix:oxfmt": "oxfmt src",
|
||||
"fix:oxlint": "oxlint --fix src",
|
||||
"fix:package": "sort-package-json --write",
|
||||
"test": "npm run check:tsc && node --test --experimental-strip-types --no-warnings src/",
|
||||
"test:ci": "c8 --reporter=text --reporter=lcov --reporter=html node --test --experimental-strip-types --no-warnings src/",
|
||||
"test:unit": "node --test --experimental-strip-types --no-warnings src/",
|
||||
"use:git-commit-message": "cp commit-message-template .git/COMMIT_EDITMSG || true"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@oxfmt/binding-linux-x64-musl": "^0.66.0",
|
||||
"@oxlint/binding-linux-x64-musl": "^1.81.0",
|
||||
"@types/node": "^22.10.0",
|
||||
"c8": "^10.1.3",
|
||||
"check-outdated": "^2.13.0",
|
||||
@@ -66,5 +62,11 @@
|
||||
"tslib": "^2.8.1",
|
||||
"type-fest": "^4.40.1",
|
||||
"typescript": "^7.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.6"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user