diff --git a/.postcssrc.json b/.postcssrc.json deleted file mode 100644 index 529e0a2b..00000000 --- a/.postcssrc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "plugins": { - "autoprefixer": {} - } -} diff --git a/package.json b/package.json index 7e5b12bf..6427df48 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,72 @@ { "name": "blessing-skin-server", "version": "6.0.2", + "private": true, "description": "A web application brings your custom skins back in offline Minecraft servers.", "repository": { "type": "git", "url": "https://github.com/bs-community/blessing-skin-server" }, - "author": "printempw", "license": "MIT", + "author": "printempw", "type": "module", - "private": true, "scripts": { - "dev": "vite", "build": "vite build", + "build:urls": "ts-node tools/generateUrls.ts", + "dev": "vite", "lint": "eslint .", - "test": "vitest", - "build:urls": "ts-node tools/generateUrls.ts" + "test": "vitest" + }, + "browserslist": [ + "Firefox ESR", + "iOS >= 12.5", + "Chrome >= 87" + ], + "eslintConfig": { + "env": { + "es2024": true + }, + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "extends": [ + "xo", + "xo-react", + "plugin:react/jsx-runtime", + "./node_modules/xo/config/plugins.cjs" + ], + "rules": { + "import/extensions": "off", + "import/no-named-as-default": "off", + "n/file-extension-in-import": "off", + "unicorn/filename-case": "off", + "n/prefer-global/process": "off" + }, + "overrides": [ + { + "files": [ + "*.ts", + "*.tsx" + ], + "extends": [ + "xo-typescript" + ], + "rules": { + "@typescript-eslint/ban-types": "off", + "@typescript-eslint/consistent-type-definitions": "warn", + "@typescript-eslint/naming-convention": "warn" + } + } + ], + "ignorePatterns": [ + "dist", + "public" + ], + "root": true + }, + "resolutions": { + "kleur": "^4.1.3" }, "dependencies": { "@emotion/react": "^11.0.0", @@ -80,55 +131,9 @@ "vitest": "^1.3.1", "xo": "^0.57.0" }, - "resolutions": { - "kleur": "^4.1.3" - }, - "browserslist": [ - "Firefox ESR", - "iOS >= 12.5", - "Chrome >= 87" - ], - "eslintConfig": { - "env": { - "es2024": true - }, - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "extends": [ - "xo", - "xo-react", - "plugin:react/jsx-runtime", - "./node_modules/xo/config/plugins.cjs" - ], - "rules": { - "import/extensions": "off", - "import/no-named-as-default": "off", - "unicorn/filename-case": "off", - "n/file-extension-in-import": "off", - "n/prefer-global/process": "off" - }, - "overrides": [ - { - "files": [ - "*.ts", - "*.tsx" - ], - "extends": [ - "xo-typescript" - ], - "rules": { - "@typescript-eslint/consistent-type-definitions": "warn", - "@typescript-eslint/naming-convention": "warn", - "@typescript-eslint/ban-types": "off" - } - } - ], - "ignorePatterns": [ - "dist", - "public" - ], - "root": true + "postcss": { + "plugins": { + "autoprefixer": {} + } } } diff --git a/resources/assets/src/components/ModalInput.tsx b/resources/assets/src/components/ModalInput.tsx index 91e4c497..75483857 100644 --- a/resources/assets/src/components/ModalInput.tsx +++ b/resources/assets/src/components/ModalInput.tsx @@ -1,8 +1,8 @@ -import type React, {type HTMLAttributes} from 'react'; +import type React from 'react'; export type Props = { readonly inputType?: string; - readonly inputMode?: HTMLAttributes['inputMode']; + readonly inputMode?: React.HTMLAttributes['inputMode']; readonly choices?: Array<{text: string; value: string}>; readonly placeholder?: string; };