Skip to content

Commit

Permalink
cleanup lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Apr 25, 2024
1 parent 8e8f45b commit f9e50b9
Show file tree
Hide file tree
Showing 4 changed files with 453 additions and 324 deletions.
18 changes: 7 additions & 11 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ const CUSTOM_IGNORES = [
"*.md",
];

export default config(
{
svelte: true,
ignores: [...DEFAULT_IGNORES, ...CUSTOM_IGNORES],
rules: {
"ts/consistent-type-definitions": "off",
},
export default config({
svelte: true,
ignores: [...DEFAULT_IGNORES, ...CUSTOM_IGNORES],
}).override("antfu/typescript/rules", {
rules: {
"ts/consistent-type-definitions": "off",
},
{
ignores: [...DEFAULT_IGNORES, ...CUSTOM_IGNORES],
}
);
});
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test": "pnpm -r test",
"test:package": "pnpm -F \"./packages/**\" test",
"test:package:watch": "pnpm -F \"./packages/**\" test:watch",
"build": "pnpm -r build",
"build": "pnpm -r build",
"build:packages": "pnpm -F \"./packages/**\" --parallel build",
"build:content": "pnpm -F \"./sites/**\" --parallel build:content",
"ci:publish": "pnpm build:packages && changeset publish",
Expand All @@ -41,14 +41,14 @@
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@huntabyte/eslint-config": "^0.2.0",
"@huntabyte/eslint-config": "^0.3.1",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"eslint": "^8.56.0",
"eslint-plugin-svelte": "2.36.0-next.13",
"eslint": "^9.1.1",
"eslint-plugin-svelte": "2.38.0",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "^0.5.13",
"svelte-eslint-parser": "^0.33.1"
"prettier-plugin-svelte": "^3.2.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"svelte-eslint-parser": "^0.35.0"
},
"type": "module"
}
32 changes: 16 additions & 16 deletions packages/runed/src/lib/functions/box/box.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ function boxWith<T>(getter: () => T, setter?: (v: T) => void) {

export type BoxFrom<T> =
T extends WritableBox<infer U>
? WritableBox<U>
: T extends ReadableBox<infer U>
? ReadableBox<U>
: T extends Getter<infer U>
? ReadableBox<U>
: WritableBox<T>;
? WritableBox<U>
: T extends ReadableBox<infer U>
? ReadableBox<U>
: T extends Getter<infer U>
? ReadableBox<U>
: WritableBox<T>;

/**
* Creates a box from either a static value, a box, or a getter function.
Expand All @@ -131,16 +131,16 @@ type BoxFlatten<R extends Record<string, unknown>> = Expand<
},
never
> &
RemoveValues<
{
readonly [K in keyof R]: R[K] extends WritableBox<infer _>
? never
: R[K] extends ReadableBox<infer T>
? T
: never;
},
never
>
RemoveValues<
{
readonly [K in keyof R]: R[K] extends WritableBox<infer _>
? never
: R[K] extends ReadableBox<infer T>
? T
: never;
},
never
>
> &
RemoveValues<
{
Expand Down
Loading

0 comments on commit f9e50b9

Please sign in to comment.