Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Oct 27, 2024
1 parent e280453 commit 62684dd
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 83 deletions.
20 changes: 0 additions & 20 deletions .eslintignore

This file was deleted.

30 changes: 0 additions & 30 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ result
anuraos-types/
public/config.json
static/
x86_image_wizard/apline/anura-run
x86_image_wizard/alpine/anura-run
x86_image_wizard/alpine/xfrog.sh
x86_image_wizard/alpine/xsetrandr.sh
x86_image_wizard/alpine/anuramouse
Expand Down
4 changes: 3 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/**
* @type {import("prettier").Config}
*/
module.exports = {
const config = {
tabWidth: 4,
trailingComma: "all",
semi: true,
singleQuote: false,
};

export default config;
2 changes: 1 addition & 1 deletion dreamlandjs
Submodule dreamlandjs updated 2 files
+66 −4 dreamland.d.ts
+14 −10 src/core.js
74 changes: 74 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: [
"**/dist.js",
"**/build/",
"**/anuraos-types/",
"**/bin/",
"**/aboutproxy/",
"**/v86/",
"**/apps/",
"**/.eslintrc.js",
"public/anura-sw.js",
"public/lib/",
"documentation/templates",
"public/lib/html-to-image.min.js",
"public/uv/",
"**/static/",
"**/chimerix/",
"**/dreamlandjs/",
"x86_image_wizard/twisp/",
"x86_image_wizard/epoxy/",
"**/native-file-system-adapter/",
"**/server/",
],
},
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
},

parser: tsParser,
ecmaVersion: "latest",
sourceType: "script",
},

rules: {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-async-promise-executor": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-expressions": "off",
"linebreak-style": ["error", "unix"],
semi: ["error", "always"],
},
},
];
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,31 @@
"dependencies": {
"@mercuryworkshop/bare-mux": "^1.1.4",
"@titaniumnetwork-dev/ultraviolet": "3.1.5",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"autoprefixer": "^10.4.20",
"comlink": "^4.4.1",
"eslint": "=8.13.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-jsdoc": "^46.4.3",
"fflate": "^0.8.2",
"filer": "^1.4.1",
"fs-readdir-recursive": "^1.1.0",
"idb-keyval": "^6.2.1",
"libcurl.js": "^0.6.15",
"libcurl.js": "^0.6.17",
"mime": "^4.0.4",
"onchange": "^7.1.0",
"postcss": "^8.4.45",
"postcss-cli": "^11.0.0",
"typescript": "^5.6.2"
"typescript": "^5.6.3"
},
"devDependencies": {
"eslint": "9.13.0",
"eslint-plugin-html": "^8.1.2",
"eslint-plugin-jsdoc": "^50.4.3",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.13.0",
"@types/node": "^22.5.4",
"@types/wicg-file-system-access": "^2023.10.5",
"dreamland": "^0.0.24",
"globals": "^15.11.0",
"prettier": "3.3.3",
"rollup": "^4.21.3",
"workbox-cli": "7.1.0"
Expand Down
36 changes: 13 additions & 23 deletions src/coreapps/SettingsApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,12 @@ const settingsCSS = css`
}
`;

const SettingSwitch: Component<
{
title: string;
setting: string;
callback?: any;
on?: boolean;
},
{
//
}
> = function () {
const SettingSwitch: Component<{
title: string;
setting: string;
callback?: any;
on?: boolean;
}> = function () {
this.mount = () => {
this.on = anura.settings.get(this.setting);
};
Expand All @@ -198,18 +193,13 @@ const SettingSwitch: Component<
);
};

const SettingText: Component<
{
title: string;
setting: string;
callback?: any;
value?: string;
type?: string;
},
{
//
}
> = function () {
const SettingText: Component<{
title: string;
setting: string;
callback?: any;
value?: string;
type?: string;
}> = function () {
return (
<div class="settings-item">
<span class="settings-item-name">{use(this.title)}</span>
Expand Down

0 comments on commit 62684dd

Please sign in to comment.