Skip to content

Commit

Permalink
chore: revise project configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhr committed Sep 8, 2024
1 parent ac67be5 commit 15a22b8
Show file tree
Hide file tree
Showing 8 changed files with 2,943 additions and 2,284 deletions.
10 changes: 8 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ecmaFeatures": {
"jsx": true
},
"project": "./deno.jsonc",
"project": "./deno.json",
"sourceType": "module"
},
"plugins": [
Expand All @@ -26,6 +26,7 @@
"prefer-arrow-functions/prefer-arrow-functions": "warn",
"no-fallthrough": "off",
"no-constant-condition": "off",
"no-empty-pattern": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-var-requires": "off",
Expand All @@ -38,7 +39,12 @@
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-unnecessary-condition": "warn",
"no-empty-pattern": "off",
"@typescript-eslint/consistent-type-imports": ["warn", { "fixStyle": "inline-type-imports" }],
"@typescript-eslint/consistent-type-exports": [
"warn",
{ "fixMixedExportsWithInlineTypeSpecifier": true }
],
"import/no-duplicates": ["warn", { "prefer-inline": true }],
"import/first": "warn",
"import/exports-last": "warn",
"import/no-anonymous-default-export": "warn",
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.ts": ["eslint --fix", "prettier --write", "eclint fix"],
"*.(ts|tsx)": ["eslint --fix", "prettier --write", "eclint fix"],
"*.(json|jsonc|md|yaml)": ["prettier --write", "eclint fix"],
".env*": ["eclint fix"],
".!(env)rc": ["prettier --write", "eclint fix"],
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
deno 1.45.2
nodejs 20.11.1
deno 1.41.2
just 1.16.0
File renamed without changes.
13 changes: 13 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "routets",
"version": "3.0.0",
"exports": {
".": "./src/routets.ts",
"./Router": "./src/Router.ts",
"./Route": "./src/Route.ts"
},
"publish": {
"include": ["LICENSE", "README.md", "src/**/*.ts"]
}
}
2 changes: 2 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
setup:
chmod +x .githooks/*
git config --local core.hooksPath .githooks
corepack enable
pnpm install

serve:
deno run -A examples/serve.ts
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"private": true,
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eclint": "^2.8.1",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-consistent-default-export-name": "^0.0.15",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prefer-arrow-functions": "^3.1.4",
"eslint-plugin-unused-imports": "^2.0.0",
"lint-staged": "^13.2.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prefer-arrow-functions": "^3.3.2",
"eslint-plugin-unused-imports": "^3.1.0",
"lint-staged": "^15.2.2",
"prettier": "npm:@yuhr/prettier@^3.1.1",
"typescript": "^5.1.3"
"typescript": "^5.4.4"
},
"packageManager": "pnpm@8.15.4"
"packageManager": "pnpm@9.9.0+sha256.7a4261e50d9a44d9240baf6c9d6e10089dcf0a79d0007f2a26985a6927324177"
}
Loading

0 comments on commit 15a22b8

Please sign in to comment.