diff --git a/.editorconfig b/.editorconfig index 3aa8b5ed..e0c4a0a0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,17 +1,15 @@ +# http://editorconfig.org root = true [*] indent_style = space indent_size = 2 -tab_width = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true - -[{*.json,*.json.example,*.gyp,*.yml,*.yaml}] -indent_style = space -indent_size = 2 +max_line_length = 120 +quote_type = single [*.md] trim_trailing_whitespace = false diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 1c020879..00000000 --- a/.eslintignore +++ /dev/null @@ -1,4 +0,0 @@ -next.config.js -postcss.config.js -tailwind.config.js -_redirects diff --git a/.eslintrc.json b/.eslintrc.json index 6bf8143d..7c940088 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,69 +1,28 @@ { - "root": true, - "env": { - "browser": true, - "es2021": true - }, - "extends": ["next/core-web-vitals", "eslint:recommended", "prettier"], - "parserOptions": { - "ecmaVersion": 12, - "sourceType": "module" - }, - "settings": { - "import/resolver": { - "node": { - "extensions": [".js", ".jsx", ".ts", ".tsx"] - } - } - }, + "extends": [ + "next/core-web-vitals", + "prettier", + "plugin:tailwindcss/recommended" + ], "rules": { - "array-bracket-spacing": ["error", "never"], "block-spacing": ["error", "always"], - "comma-spacing": [ - "error", - { - "before": false, - "after": true - } - ], + "comma-spacing": ["error", { "before": false, "after": true }], + "computed-property-spacing": ["error", "never"], "eol-last": ["error", "always"], - "indent": [ - "error", - 2, - { - "SwitchCase": 1 - } - ], + "indent": ["error", 2], "jsx-quotes": ["error", "prefer-double"], "linebreak-style": ["error", "unix"], "no-alert": "error", - "no-console": "error", + "no-console": "warn", "no-eval": "error", "no-implied-eval": "error", - "no-template-curly-in-string": "error", "no-useless-concat": "error", "object-curly-spacing": ["error", "always"], "quotes": ["error", "single"], - "space-before-function-paren": [ - "error", - { - "anonymous": "always", - "named": "never", - "asyncArrow": "always" - } - ], - "space-in-parens": ["error", "never"], - "spaced-comment": ["error", "always"] - }, - "overrides": [ - { - "files": ["*.md"], - "parser": "eslint-plugin-markdownlint/parser", - "extends": ["plugin:markdownlint/recommended"], - "rules": { - "markdownlint/md013": "off", - "markdownlint/md033": "off" - } - } - ] + "sort-imports": ["error", { + "allowSeparatedGroups": true, + "ignoreCase": true, + "ignoreMemberSort": true + }] + } } diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9f354075..24f04f37 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,6 +9,9 @@ updates: directory: "/" schedule: interval: "weekly" - reviewers: - - "bradp" versioning-strategy: increase + groups: + dev-dependencies: + applies-to: version-updates + patterns: + - "*" diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index a40897b1..00000000 --- a/.prettierrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "semi": false, - "printWidth": 200, - "tabWidth": 2, - "useTabs": false, - "trailingComma": "es5", - "singleQuote": true, - "importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], - "importOrderSeparation": true, - "importOrderSortSpecifiers": true -} diff --git a/README.md b/README.md index 7004f5db..596aee4d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # 🐭️ MouseHunt Guides, Tools, and Resources - [mouse.rip](https://mouse.rip)

- + Discord diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 00000000..cba73e57 Binary files /dev/null and b/bun.lockb differ diff --git a/components/Badge.jsx b/components/Badge.jsx deleted file mode 100644 index 9d3f345c..00000000 --- a/components/Badge.jsx +++ /dev/null @@ -1,11 +0,0 @@ -import clsx from 'clsx' - -export default function Badge({ type = 'live', text = '', className = '' }) { - if ('live' === type) { - return Live - } else if ('upcoming' === type) { - return Upcoming - } else { - return {text} - } -} diff --git a/components/ChallengeLinks.jsx b/components/ChallengeLinks.jsx deleted file mode 100644 index 2d01d92a..00000000 --- a/components/ChallengeLinks.jsx +++ /dev/null @@ -1,18 +0,0 @@ -import Link from 'next/link' - -export default function ChallengeLinks() { - return ( -

- - - Enter challenge - - - - - Update progress - - -
- ) -} diff --git a/components/ColorScaleBadge.jsx b/components/ColorScaleBadge.jsx deleted file mode 100644 index 1c346ed2..00000000 --- a/components/ColorScaleBadge.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import clsx from 'clsx' - -export default function ColorScaleBadge({ value = 0, className = '' }) { - value = Math.round(value) - - if (value < 10) { - return
{value}
- } else if (value < 40) { - return
{value}
- } else if (value < 100) { - return
{value}
- } else if (value > 300) { - return
{value}
- } else { - return
{value}
- } -} diff --git a/components/Icon.jsx b/components/Icon.jsx deleted file mode 100644 index 2a3db325..00000000 --- a/components/Icon.jsx +++ /dev/null @@ -1,117 +0,0 @@ -import { - AcademicCapIcon, - BeakerIcon, - CakeIcon, - CalculatorIcon, - CalendarIcon, - ChartBarIcon, - ChartBarSquareIcon, - CheckCircleIcon, - CircleStackIcon, - ClockIcon, - CodeBracketIcon, - CubeIcon, - DocumentCheckIcon, - GiftIcon, - GlobeEuropeAfricaIcon, - IdentificationIcon, - LinkIcon, - LockClosedIcon, - MagnifyingGlassIcon, - MagnifyingGlassCircleIcon, - MapIcon, - MapPinIcon, - NoSymbolIcon, - ShoppingCartIcon, - ShieldCheckIcon, - SparklesIcon, - StarIcon, - Squares2X2Icon, - SwatchIcon, - TicketIcon, - TrophyIcon, - TruckIcon, - UserCircleIcon, - UserIcon, - UsersIcon, - WindowIcon, -} from '@heroicons/react/24/outline' - -export default function Icon({ icon, className }) { - switch (icon) { - case 'AcademicCap': - return