Deps migration (#1988)

* chore: migrate eslint to oxlint

* chore: migrate prettier to oxfmt

* chore: migrate typescript

* chore: toThrow should have a expected value

* chore: cast test value as Day

* chore: small title fix

* chore: mocks should be hoisted

* chore: incorrect async useage

* chore: test should be inside description

* chore: test sohuld include an expeced

* chore: oxfmt

---------

Co-authored-by: alex-Arc <omnivox@LAPTOP-RC5SNBVV.localdomain>
This commit is contained in:
Carlos Valente
2026-03-08 16:22:12 +01:00
committed by GitHub
parent 9516ac21bb
commit 1849b4d39f
501 changed files with 2678 additions and 4654 deletions
-2
View File
@@ -1,2 +0,0 @@
node_modules
dist
-16
View File
@@ -1,16 +0,0 @@
{
"env": {
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["simple-import-sort", "@typescript-eslint"],
"rules": {
"simple-import-sort/imports": "error",
"@typescript-eslint/consistent-type-imports": "error"
}
}
+5
View File
@@ -0,0 +1,5 @@
{
"$schema": "../../node_modules/oxlint/configuration_schema.json",
"extends": ["../../.oxlintrc.json"],
"plugins": ["unicorn", "typescript", "oxc", "vitest"]
}
+1 -4
View File
@@ -7,7 +7,7 @@
"private": true,
"description": "shared typings for ontime",
"scripts": {
"lint": "eslint . --quiet",
"lint": "oxlint --quiet --type-aware",
"typecheck": "tsc --noEmit",
"build": "tsc"
},
@@ -15,9 +15,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:",
"ts-essentials": "catalog:"
}
@@ -6,7 +6,7 @@ export type PatchWithId<T extends OntimeEntry = OntimeEntry> = Partial<T> & { id
export type InsertOptions = {
after?: EntryId;
before?: EntryId;
}
};
export type EventPostPayload = Partial<OntimeEntry> & InsertOptions;
@@ -98,7 +98,7 @@ export type OntimeAction =
text?: string;
visible?: boolean;
}
// TODO: when setting a secondary source of type secondary we could specify a value to it
// TODO: when setting a secondary source of type secondary we could specify a value to it
| {
type: 'ontime';
action: OntimeMessageSecondary;
+1 -1
View File
@@ -1,4 +1,4 @@
import type { AutomationOutput, HTTPOutput, OntimeAction, OSCOutput } from '../definitions/core/Automation.type.js';
import type { AutomationOutput, HTTPOutput, OSCOutput, OntimeAction } from '../definitions/core/Automation.type.js';
import type {
OntimeDelay,
OntimeEntry,
+2 -1
View File
@@ -3,12 +3,13 @@
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node10",
"moduleResolution": "bundler",
"allowUnusedLabels": false,
"removeComments": true,
"preserveConstEnums": true,
"allowJs": true,
"declaration": true,
"rootDir": "src",
"outDir": "dist",
},
"include": [