Skip to content

feat: update deps & switch to biome #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 3, 2024
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
18 changes: 9 additions & 9 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/giant-beds-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@labdigital/dataloader-cache-wrapper': minor
---

Update dependencies
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

# Set up tabs as indent style for a11y reasons
# This will be the default for prettier in >=v3
[*]
indent_style = tab
indent_size = 2

# Yaml does not support tabs
[*.{yml,yaml}]
indent_style = space
indent_size = 2
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

29 changes: 0 additions & 29 deletions .eslintrc.cjs

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
title: "Release new version"
commit: "update version"
publish: pnpm publish:ci
version: pnpm publish:version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
55 changes: 55 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"defaultBranch": "main"
},
"json": {
"parser": {
"allowComments": true
}
},
"formatter": {
"enabled": true,
"lineWidth": 80
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noUselessTernary": "error",
"useDateNow": "error",
"useLiteralKeys": "off"
},
"correctness": {
"noUnusedFunctionParameters": "off",
"noUnusedImports": "error",
"noUnusedVariables": "off"
},
"suspicious": {
"noConsoleLog": "error",
"noEvolvingTypes": "error",
"useErrorMessage": "error"
},
"style": {
"noParameterAssign": "off",
"noUselessElse": "off",
"useConsistentBuiltinInstantiation": "error",
"useFilenamingConvention": {
"level": "error",
"options": {
"requireAscii": true,
"filenameCases": ["kebab-case"]
}
},
"useTemplate": "off",
"useThrowOnlyError": "error"
},
"nursery": {
"noNestedTernary": "warn"
}
}
}
}
109 changes: 54 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,56 @@
{
"name": "@labdigital/dataloader-cache-wrapper",
"version": "0.4.0",
"author": "Lab Digital <[email protected]>",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"description": "Wrapper around dataloader to cache the results of the loader",
"keywords": [],
"main": "dist/index.cjs",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"prettier": {
"printWidth": 80,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"publish:ci": "pnpm build && pnpm changeset publish",
"test": "vitest run --coverage",
"test:ci": "vitest run --coverage",
"lint": "eslint src/",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@labdigital/eslint-config-node": "^0.0.5",
"@types/object-hash": "^3.0.6",
"@vitest/coverage-v8": "^0.33.0",
"dataloader": "^2.2.2",
"eslint": "^8.40.0",
"eslint-plugin-unused-imports": "^2.0.0",
"tsup": "6.7.0",
"typescript": "5.0.4",
"vitest": "^0.33.0"
},
"peerDependencies": {
"dataloader": "^2.2.2",
"keyv": "^4.5.4"
},
"dependencies": {
"object-hash": "^3.0.0"
},
"packageManager": "[email protected]"
"name": "@labdigital/dataloader-cache-wrapper",
"version": "0.4.0",
"author": "Lab Digital <[email protected]>",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"description": "Wrapper around dataloader to cache the results of the loader",
"keywords": [],
"main": "dist/index.cjs",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"prettier": {
"printWidth": 80,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"publish:ci": "pnpm build && pnpm changeset publish",
"publish:version": "pnpm changeset version && pnpm format",
"test": "vitest run --coverage",
"test:ci": "vitest run --coverage",
"lint": "biome check",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@changesets/cli": "2.27.0",
"@types/object-hash": "3.0.6",
"@vitest/coverage-v8": "2.1.8",
"dataloader": "^2.2.2",
"tsup": "8.3.5",
"typescript": "5.7.2",
"vitest": "2.1.8"
},
"peerDependencies": {
"dataloader": ">=2.0 <3.0",
"keyv": ">=4.0.0 <6.0.0"
},
"dependencies": {
"@biomejs/biome": "1.9.4",
"object-hash": "3.0.0"
},
"packageManager": "[email protected]"
}
Loading
Loading