Update dependencies
It's actually kinda scary to make changes to something that works well when you don't really know why it works well in the first place...
This commit is contained in:
parent
540fdd85ff
commit
28c898d400
7 changed files with 67 additions and 79 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bun.lockb -diff
|
|
@ -4,12 +4,12 @@
|
||||||
|
|
||||||
My personal website!
|
My personal website!
|
||||||
|
|
||||||
## Build
|
## Build and develop
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun install --global netlify-cli
|
bun install --global netlify-cli
|
||||||
bun i --ignore-scripts
|
bun i --ignore-scripts
|
||||||
netlify run
|
netlify dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## Environment variables
|
## Environment variables
|
||||||
|
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
@ -1,48 +0,0 @@
|
||||||
import globals from "globals";
|
|
||||||
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
|
|
||||||
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { FlatCompat } from "@eslint/eslintrc";
|
|
||||||
import pluginJs from "@eslint/js";
|
|
||||||
|
|
||||||
// mimic CommonJS variables -- not needed if using CommonJS
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
|
||||||
const __dirname = path.dirname(__filename);
|
|
||||||
const compat = new FlatCompat({baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended});
|
|
||||||
|
|
||||||
export default [
|
|
||||||
...compat.extends("xo-typescript"),
|
|
||||||
pluginReactConfig,
|
|
||||||
{
|
|
||||||
files: [
|
|
||||||
"**/*.ts",
|
|
||||||
"**/*.tsx"
|
|
||||||
],
|
|
||||||
languageOptions: {
|
|
||||||
globals: globals.node
|
|
||||||
},
|
|
||||||
settings: {
|
|
||||||
react: {
|
|
||||||
version: "detect"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
quotes: "off",
|
|
||||||
"@typescript-eslint/quotes": ["error", "double"],
|
|
||||||
indent: "off",
|
|
||||||
"@typescript-eslint/indent": ["error", 2],
|
|
||||||
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
||||||
"@typescript-eslint/dot-notation": "off",
|
|
||||||
"react/no-unescaped-entities": "off",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
ignores: [
|
|
||||||
".netlify/*",
|
|
||||||
"dist/*",
|
|
||||||
"*.js",
|
|
||||||
"*.cjs"
|
|
||||||
],
|
|
||||||
}
|
|
||||||
];
|
|
38
eslint.config.mjs
Normal file
38
eslint.config.mjs
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
|
||||||
|
import react from "eslint-plugin-react";
|
||||||
|
import eslint from '@eslint/js';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
import stylisticTs from '@stylistic/eslint-plugin-ts'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rules to consider:
|
||||||
|
*
|
||||||
|
* "@typescript-eslint/no-unsafe-assignment": "off",
|
||||||
|
* "@typescript-eslint/dot-notation": "off",
|
||||||
|
*/
|
||||||
|
|
||||||
|
export default tseslint.config(
|
||||||
|
pluginReactConfig,
|
||||||
|
eslint.configs.recommended,
|
||||||
|
...tseslint.configs.recommended,
|
||||||
|
{
|
||||||
|
plugins: {
|
||||||
|
"@stylistic/ts": stylisticTs,
|
||||||
|
react,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"@stylistic/ts/quotes": ["error", "double"],
|
||||||
|
"@stylistic/ts/indent": ["error", 2],
|
||||||
|
"react/no-unescaped-entities": "off",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
".netlify/*",
|
||||||
|
"dist/*",
|
||||||
|
"*.js",
|
||||||
|
"*.cjs",
|
||||||
|
"*.mjs",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
)
|
43
package.json
43
package.json
|
@ -7,35 +7,34 @@
|
||||||
"lint:fix": "bunx eslint . --fix"
|
"lint:fix": "bunx eslint . --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@carbon/icons-react": "^11.40.0",
|
"@carbon/icons-react": "^11.52.0",
|
||||||
"@netlify/functions": "^2.6.3",
|
"@netlify/functions": "^2.8.2",
|
||||||
"@octokit/rest": "^20.1.1",
|
"@octokit/rest": "^20.1.1",
|
||||||
"mongodb": "^6.6.0",
|
"mongodb": "^6.10.0",
|
||||||
"osu-api-v2-js": "^1.0.3",
|
"osu-api-v2-js": "^1.1.0",
|
||||||
"react": "^19.0.0-beta-1beb73de0f-20240503",
|
"react": "^19.0.0-rc-fb9a90fa48-20240614",
|
||||||
"react-dom": "^19.0.0-beta-1beb73de0f-20240503",
|
"react-dom": "^19.0.0-rc-fb9a90fa48-20240614",
|
||||||
"timeago.js": "^4.0.2"
|
"timeago.js": "^4.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/eslintrc": "^3.0.2",
|
"@eslint/eslintrc": "^3.1.0",
|
||||||
"@eslint/js": "^9.1.1",
|
"@eslint/js": "^9.13.0",
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@stylistic/eslint-plugin-ts": "^2.9.0",
|
||||||
"@types/node": "^20.10.0",
|
"@tailwindcss/forms": "^0.5.9",
|
||||||
|
"@types/node": "^20.17.3",
|
||||||
"@types/react": "npm:types-react@beta",
|
"@types/react": "npm:types-react@beta",
|
||||||
"@types/react-dom": "npm:types-react-dom@beta",
|
"@types/react-dom": "npm:types-react-dom@beta",
|
||||||
"@typescript-eslint/eslint-plugin": ">=7.0.2",
|
"@vitejs/plugin-react": "^4.3.3",
|
||||||
"@typescript-eslint/parser": ">=7.0.2",
|
"autoprefixer": "^10.4.20",
|
||||||
"@vitejs/plugin-react": "^4.2.0",
|
"eslint": "^9.13.0",
|
||||||
"autoprefixer": "^10.4.16",
|
"eslint-config-xo-typescript": "^7.0.0",
|
||||||
"eslint": "8.56.0",
|
"eslint-plugin-react": "^7.37.2",
|
||||||
"eslint-config-xo-typescript": "^4.0.0",
|
"postcss": "^8.4.47",
|
||||||
"eslint-plugin-react": "^7.34.1",
|
|
||||||
"globals": "^15.0.0",
|
|
||||||
"postcss": "^8.4.31",
|
|
||||||
"react-animate-height": "^3.2.3",
|
"react-animate-height": "^3.2.3",
|
||||||
"tailwindcss": "^3.3.5",
|
"tailwindcss": "^3.4.14",
|
||||||
"typescript": ">=5.0.0",
|
"typescript": "^5.6.3",
|
||||||
"vite": "^5.0.3"
|
"typescript-eslint": "^8.12.2",
|
||||||
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"type": "module"
|
"type": "module"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
/** @type {import('tailwindcss').Config} */
|
export default {
|
||||||
module.exports = {
|
|
||||||
content: [
|
content: [
|
||||||
"./src/**/*.{js,ts,jsx,tsx,mdx}"
|
"./src/**/*.{js,ts,jsx,tsx,mdx}"
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
require("@tailwindcss/forms")
|
|
||||||
],
|
],
|
||||||
important: false
|
important: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue