Skip to content

Commit

Permalink
chore: Use oxlint instead of eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Dec 27, 2023
1 parent d7c9b6c commit 4180efb
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 532 deletions.
4 changes: 2 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ pre-commit:
parallel: false
commands:
prettier:
glob: '*.{json,md,yml}'
glob: '*.{json,md,yml,ts}'
run: npx prettier --write {staged_files} && git add {staged_files}
eslint:
glob: 'src/*.ts'
run: npx eslint --fix {staged_files} && git add {staged_files}
run: npx oxlint --fix {staged_files} && git add {staged_files}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@typescript-eslint/parser": "6.16.0",
"babel-eslint": "10.1.0",
"cross-env": "7.0.3",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jasmine": "4.1.3",
Expand All @@ -34,6 +33,7 @@
"eslint-plugin-typescript-sort-keys": "3.1.0",
"eslint-plugin-unused-imports": "3.0.0",
"logdown": "3.3.1",
"oxlint": "0.0.22",
"prettier": "3.1.1",
"rimraf": "5.0.5",
"ts-node": "10.9.2",
Expand Down Expand Up @@ -63,7 +63,7 @@
"fix:ts": "yarn lint:ts --fix",
"lint": "yarn lint:ts && yarn lint:other",
"lint:other": "yarn prettier --list-different",
"lint:ts": "eslint --ignore-path .gitignore --ext .ts src/",
"lint:ts": "oxlint --ignore-path .gitignore src/",
"prettier": "prettier \"*.{json,md,yml}\"",
"start": "cross-env NODE_DEBUG='schemastore-updater/*' ts-node src/cli.ts",
"test": "exit 0",
Expand Down
2 changes: 1 addition & 1 deletion src/SchemaGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ This package contains type definitions for ${schemaName}.
## Usage
\`\`\`ts
import * as ${schemaName.toLowerCase().replace(/[\.-]/g, '_')} from '@schemastore/${schemaName.toLowerCase()}';
import * as ${schemaName.toLowerCase().replace(/[.-]/g, '_')} from '@schemastore/${schemaName.toLowerCase()}';
\`\`\`
## Note
Expand Down
Loading

0 comments on commit 4180efb

Please sign in to comment.