-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from tinyhttp/chore/maintenance-sept2024
chore: use biome and vitest, remove everything else
- Loading branch information
Showing
28 changed files
with
2,455 additions
and
3,443 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --config commitlint.config.cjs --edit "$1" | ||
npx --no-install commitlint --config commitlint.config.mjs --edit "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm format && pnpm lint && pnpm build && pnpm test | ||
pnpm check | ||
pnpm test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json", | ||
"files": { | ||
"ignore": ["node_modules", "dist", "coverage", ".pnpm-store"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 120, | ||
"attributePosition": "auto" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"correctness": { | ||
"noVoidTypeReturn": "off" | ||
}, | ||
"style": { | ||
"noParameterAssign": "off", | ||
"noNonNullAssertion": "off" | ||
}, | ||
"suspicious": { | ||
"noAssignInExpressions": "off", | ||
"noExplicitAny": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "none", | ||
"semicolons": "asNeeded", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "single", | ||
"attributePosition": "auto" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,21 @@ | |
"name": "malibu", | ||
"version": "1.0.6", | ||
"description": "Framework-agnostic CSRF middleware", | ||
"keywords": [ | ||
"csrf", | ||
"middleware", | ||
"tokens", | ||
"framework agnostic", | ||
"express", | ||
"tinyhttp", | ||
"polka", | ||
"http" | ||
], | ||
"keywords": ["csrf", "middleware", "tokens", "framework agnostic", "express", "tinyhttp", "polka", "http"], | ||
"author": "Reinaldy Rafli <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"types": "./dist/index.d.ts", | ||
"exports": "./dist/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"files": ["dist"], | ||
"scripts": { | ||
"build": "rollup -c", | ||
"test": "uvu -r tsm tests", | ||
"test:coverage": "c8 --include=src pnpm test", | ||
"test:report": "c8 report --reporter=text-lcov > coverage.lcov", | ||
"lint": "eslint \"./**/*.ts\"", | ||
"format": "prettier --write \"./**/*.ts\"", | ||
"prepare": "husky install" | ||
"build": "tsc", | ||
"test": "vitest run", | ||
"test:coverage": "vitest run --coverage", | ||
"lint": "biome lint .", | ||
"format": "biome format .", | ||
"check": "biome check .", | ||
"prepare": "husky" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -45,32 +34,23 @@ | |
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "17.7.2", | ||
"@commitlint/config-conventional": "17.7.0", | ||
"@rollup/plugin-typescript": "11.1.4", | ||
"@tinyhttp/app": "2.0.32", | ||
"@biomejs/biome": "1.9.1", | ||
"@commitlint/cli": "19.5.0", | ||
"@commitlint/config-conventional": "19.5.0", | ||
"@tinyhttp/app": "2.4.0", | ||
"@tinyhttp/cookie-parser": "2.0.6", | ||
"@types/express-session": "1.17.8", | ||
"@types/node": "20.8.0", | ||
"@typescript-eslint/eslint-plugin": "6.7.3", | ||
"@typescript-eslint/parser": "6.7.3", | ||
"c8": "8.0.1", | ||
"eslint": "8.50.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"express-session": "1.17.3", | ||
"husky": "8.0.3", | ||
"milliparsec": "2.3.0", | ||
"prettier": "3.0.3", | ||
"rollup": "3.29.4", | ||
"supertest-fetch": "1.5.0", | ||
"tslib": "2.6.2", | ||
"tsm": "^2.3.0", | ||
"typescript": "5.2.2", | ||
"uvu": "0.5.6" | ||
"@types/express-session": "1.18.0", | ||
"@types/node": "22.5.5", | ||
"@vitest/coverage-v8": "2.1.1", | ||
"express-session": "1.18.0", | ||
"husky": "9.1.6", | ||
"milliparsec": "4.0.0", | ||
"supertest-fetch": "2.0.0", | ||
"typescript": "5.6.2", | ||
"vitest": "2.1.1" | ||
}, | ||
"dependencies": { | ||
"@tinyhttp/cookie": "2.1.0", | ||
"@tinyhttp/cookie-signature": "2.1.0" | ||
"@tinyhttp/cookie": "2.1.1", | ||
"@tinyhttp/cookie-signature": "2.1.1" | ||
} | ||
} |
Oops, something went wrong.