1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-02 09:04:01 -05:00

re-enable eslint-plugin-mdx with fix for OOM error

https://github.com/mdx-js/vscode-mdx#known-vscode-eslint-issues
This commit is contained in:
2022-08-25 20:18:42 -04:00
parent 595dda8347
commit 488bfac9c5
9 changed files with 1930 additions and 430 deletions

View File

@@ -17,15 +17,35 @@
// Configure properties specific to VS Code.
"vscode": {
"settings": {
"telemetry.enableTelemetry": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"eslint.options": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".md", ".mdx"]
},
"eslint.runtime": "node", // https://github.com/mdx-js/vscode-mdx#known-vscode-eslint-issues
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"markdown",
"mdx"
],
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"search.exclude": {
"**/.next": true,
"**/node_modules": true
},
"typescript.preferences.importModuleSpecifierEnding": "minimal",
"typescript.tsdk": "node_modules/typescript/lib"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"prisma.prisma",
"silvenon.mdx",
"unifiedjs.vscode-mdx",
"wix.vscode-import-cost"
]
}

View File

@@ -25,4 +25,23 @@ module.exports = {
},
],
},
overrides: [
{
files: ["*.md", "*.mdx"],
extends: ["plugin:mdx/recommended"],
rules: {
"react/jsx-no-undef": "off",
"prettier/prettier": [
"error",
{
// normal .prettierrc config:
singleQuote: false,
tabWidth: 2,
printWidth: 120,
},
],
},
},
],
ignorePatterns: ["README.md"],
};

View File

@@ -1,9 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"prisma.prisma",
"silvenon.mdx",
"unifiedjs.vscode-mdx",
"wix.vscode-import-cost"
]
}

12
.vscode/settings.json vendored
View File

@@ -4,6 +4,18 @@
120
],
"editor.tabSize": 2,
"eslint.options": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".md", ".mdx"]
},
"eslint.runtime": "node", // https://github.com/mdx-js/vscode-mdx#known-vscode-eslint-issues
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"markdown",
"mdx"
],
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,

View File

@@ -13,7 +13,7 @@ image: "/static/images/notes/dropping-dropbox/email.png"
I've been a loyal Dropbox user since its inception as a [Y Combinator startup](https://www.ycombinator.com/apply/dropbox/) ten years ago. Having a folder on all of my devices that instantly synchronized with each other was a game-changer for me, and I grew dependent on it more and more as they gave out free storage like candy — 48 GB for having a Samsung Chromebook, 1 GB for "Posting \<3 to Twitter," and so on — until I needed to upgrade to Dropbox Pro. But this month I canceled my Pro subscription after a few too many strikes.
<Figure src="/public/static/images/notes/dropping-dropbox/email.png" width="504" height="223" priority>
<Figure src="/public/static/images/notes/dropping-dropbox/email.png" width="504" height="223" priority={true}>
Deleting 401,907 files from Dropbox... 😬
</Figure>

View File

@@ -12,7 +12,12 @@ tags:
image: "/static/images/notes/how-to-backup-linux-server/apocalypse.png"
---
<Figure src="/public/static/images/notes/how-to-backup-linux-server/apocalypse.png" width="865" height="303" priority>
<Figure
src="/public/static/images/notes/how-to-backup-linux-server/apocalypse.png"
width="865"
height="303"
priority={true}
>
**The Cloud-pocalypse:** Coming soon(er than you think) to a server near you.
</Figure>

View File

@@ -14,7 +14,13 @@ A few months ago, I stumbled upon [my first website ever](https://jakejarvis.git
Introducing the [**Y2K Sandbox**](/y2k/) — with fully-featured, fully-isolated, on-demand [**Windows Millennium Edition®**](https://www.youtube.com/watch?v=CaNDeyYP98A) virtual machines, simply to experience my first website in its natural Internet Explorer 5 habitat. And maybe play some [3D Pinball: Space Cadet](https://en.wikipedia.org/wiki/Full_Tilt!_Pinball#3D_Pinball_for_Windows_%E2%80%93_Space_Cadet). Oh, and [Microsoft Bob](https://en.wikipedia.org/wiki/Microsoft_Bob) is there too if you want to say hello and catch up. 🤓
<Figure src="/public/static/images/notes/y2k-sandbox/screenshot.png" width="865" height="649" href="/y2k/" priority>
<Figure
src="/public/static/images/notes/y2k-sandbox/screenshot.png"
width="865"
height="649"
href="/y2k/"
priority={true}
>
[**Play in the Y2K Sandbox, at your own risk.**](/y2k/)
</Figure>

2268
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,7 @@
"dev": "cross-env NODE_OPTIONS='--inspect' next dev",
"build": "next build",
"start": "next start",
"lint": "eslint . --ext js,jsx,ts,tsx"
"lint": "eslint . --ext js,jsx,ts,tsx,md,mdx"
},
"dependencies": {
"@fontsource/comic-neue": "4.5.9",
@@ -24,7 +24,7 @@
"@hcaptcha/react-hcaptcha": "^1.4.4",
"@novnc/novnc": "github:novnc/novnc#cdfb33665195eb9a73fb00feb6ebaccd1068cd50",
"@octokit/graphql": "^5.0.1",
"@octokit/graphql-schema": "^11.1.0",
"@octokit/graphql-schema": "^12.0.0",
"@primer/octicons": "^17.4.1",
"@prisma/client": "^4.2.1",
"@react-spring/web": "^9.5.2",
@@ -42,7 +42,7 @@
"gray-matter": "^4.0.3",
"hex-to-rgba": "^2.0.1",
"marked": "^4.0.19",
"next": "12.2.6-canary.1",
"next": "12.2.6-canary.5",
"next-mdx-remote": "^4.1.0",
"next-seo": "^5.5.0",
"obj-str": "^1.1.0",
@@ -83,12 +83,13 @@
"@types/react-is": "^17.0.3",
"@types/remove-markdown": "^0.3.1",
"@types/uglify-js": "^3.17.0",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"cross-env": "^7.0.3",
"eslint": "~8.22.0",
"eslint-config-next": "12.2.6-canary.1",
"eslint-config-next": "12.2.6-canary.5",
"eslint-config-prettier": "~8.5.0",
"eslint-plugin-mdx": "~2.0.2",
"eslint-plugin-prettier": "~4.2.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
@@ -108,7 +109,7 @@
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"*.{js,jsx,ts,tsx,md,mdx}": [
"eslint"
]
},