Update Prettier for package.json

Next sometimes wants to patch `package-lock.json`. The old Prettier setting indended with 4 spaces, but Next always indends with 2 spaces. Since `npm install` automatically uses the indendation from `package.json` for `package-lock.json` and to avoid the format switching back and forth, both files are now set to 2 spaces.
This commit is contained in:
Marcus Blättermann 2022-12-20 23:01:31 +01:00
parent 95443133f6
commit 39610dfd0f
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
3 changed files with 21079 additions and 21079 deletions

View File

@ -22,7 +22,7 @@
{ {
"files": ["package.json", "package-lock.json"], "files": ["package.json", "package-lock.json"],
"options": { "options": {
"tabWidth": 4, "tabWidth": 2,
"printWidth": 80, "printWidth": 80,
"proseWrap": "always" "proseWrap": "always"
} }

42034
website/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,63 +1,63 @@
{ {
"name": "next-blog", "name": "next-blog",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build && npm run sitemap && next export", "build": "next build && npm run sitemap && next export",
"prebuild": "pip install -r setup/requirements.txt && sh setup/setup.sh", "prebuild": "pip install -r setup/requirements.txt && sh setup/setup.sh",
"sitemap": "next-sitemap --config next-sitemap.config.mjs", "sitemap": "next-sitemap --config next-sitemap.config.mjs",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"prettier": "prettier . --write" "prettier": "prettier . --write"
}, },
"dependencies": { "dependencies": {
"@codemirror/lang-python": "^6.1.0", "@codemirror/lang-python": "^6.1.0",
"@docsearch/react": "^3.3.0", "@docsearch/react": "^3.3.0",
"@jupyterlab/services": "^3.2.1", "@jupyterlab/services": "^3.2.1",
"@lezer/highlight": "^1.1.3", "@lezer/highlight": "^1.1.3",
"@mapbox/rehype-prism": "^0.8.0", "@mapbox/rehype-prism": "^0.8.0",
"@mdx-js/loader": "^2.1.5", "@mdx-js/loader": "^2.1.5",
"@mdx-js/react": "^2.1.5", "@mdx-js/react": "^2.1.5",
"@next/mdx": "^13.0.2", "@next/mdx": "^13.0.2",
"@rehooks/online-status": "^1.1.2", "@rehooks/online-status": "^1.1.2",
"@types/node": "18.11.9", "@types/node": "18.11.9",
"@types/react": "18.0.25", "@types/react": "18.0.25",
"@types/react-dom": "18.0.8", "@types/react-dom": "18.0.8",
"@uiw/codemirror-themes": "^4.19.3", "@uiw/codemirror-themes": "^4.19.3",
"@uiw/react-codemirror": "^4.19.3", "@uiw/react-codemirror": "^4.19.3",
"acorn": "^8.8.1", "acorn": "^8.8.1",
"browser-monads": "^1.0.0", "browser-monads": "^1.0.0",
"classnames": "^2.3.2", "classnames": "^2.3.2",
"eslint": "8.27.0", "eslint": "8.27.0",
"eslint-config-next": "13.0.2", "eslint-config-next": "13.0.2",
"html-to-react": "^1.5.0", "html-to-react": "^1.5.0",
"jinja-to-js": "^3.2.3", "jinja-to-js": "^3.2.3",
"md-attr-parser": "^1.3.0", "md-attr-parser": "^1.3.0",
"next": "13.0.2", "next": "13.0.2",
"next-mdx-remote": "^4.2.0", "next-mdx-remote": "^4.2.0",
"next-plausible": "^3.6.5", "next-plausible": "^3.6.5",
"next-pwa": "^5.6.0", "next-pwa": "^5.6.0",
"next-sitemap": "^3.1.32", "next-sitemap": "^3.1.32",
"node-fetch": "^2.6.7", "node-fetch": "^2.6.7",
"parse-numeric-range": "^1.3.0", "parse-numeric-range": "^1.3.0",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"prismjs": "^1.29.0", "prismjs": "^1.29.0",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-github-btn": "^1.4.0", "react-github-btn": "^1.4.0",
"react-inlinesvg": "^3.0.1", "react-inlinesvg": "^3.0.1",
"react-intersection-observer": "^9.4.0", "react-intersection-observer": "^9.4.0",
"remark": "^14.0.2", "remark": "^14.0.2",
"remark-gfm": "^3.0.1", "remark-gfm": "^3.0.1",
"remark-react": "^9.0.1", "remark-react": "^9.0.1",
"remark-smartypants": "^2.0.0", "remark-smartypants": "^2.0.0",
"remark-unwrap-images": "^3.0.1", "remark-unwrap-images": "^3.0.1",
"sass": "^1.56.1", "sass": "^1.56.1",
"typescript": "4.8.4", "typescript": "4.8.4",
"unist-util-visit": "^4.1.1", "unist-util-visit": "^4.1.1",
"ws": "^8.11.0" "ws": "^8.11.0"
}, },
"engine": 18 "engine": 18
} }