chore: update prettier
This commit is contained in:
parent
057294a985
commit
12ed6cf0c2
21 changed files with 93 additions and 125 deletions
|
@ -1,3 +1,4 @@
|
|||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
...require("@developomp-site/prettier-config"),
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"autoprefixer": "^10.4.16",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-next": "13.4.12",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"highlight.js": "^11.8.0",
|
||||
"katex": "^0.16.8",
|
||||
"next": "13.4.12",
|
||||
|
@ -43,7 +43,7 @@
|
|||
"open-cli": "^7.2.0",
|
||||
"postcss": "^8.4.32",
|
||||
"postcss-load-config": "^4.0.1",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier-plugin-tailwindcss": "^0.5.9",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
|
|
@ -30,7 +30,7 @@ export default function Home() {
|
|||
content_id: content_id,
|
||||
...contentMap.posts[content_id],
|
||||
}}
|
||||
/>
|
||||
/>,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ interface Props {
|
|||
export default function Toc({ data }: Props) {
|
||||
const [isTocOpened, setIsTocOpened] = useState<boolean>(
|
||||
typeof window !== "undefined" &&
|
||||
localStorage.getItem("isTocOpened") === "true"
|
||||
localStorage.getItem("isTocOpened") === "true",
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
@ -53,7 +53,7 @@ export function parsePageData(
|
|||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
fetched_content: any,
|
||||
pageType: PageType,
|
||||
content_id: string
|
||||
content_id: string,
|
||||
): PageData {
|
||||
// page date to be saved as a react state
|
||||
const pageData: PageData = {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const sharedConfig = require("@developomp-site/prettier-config")
|
||||
|
||||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
...sharedConfig,
|
||||
plugins: ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"autoprefixer": "^10.4.16",
|
||||
"dayjs": "^1.11.10",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"eslint-plugin-svelte": "^2.35.1",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import adapter from "@sveltejs/adapter-static"
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
...require("@developomp-site/prettier-config"),
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
"open-cli": "^7.2.0",
|
||||
"postcss": "^8.4.32",
|
||||
"postcss-load-config": "^4.0.1",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier-plugin-tailwindcss": "^0.5.9",
|
||||
"react": "18.2.0",
|
||||
"react-collapse": "^5.1.1",
|
||||
|
|
|
@ -19,7 +19,7 @@ function getProjects(): JSX.Element[] {
|
|||
projectID={projectID}
|
||||
project={portfolio.projects[projectID]}
|
||||
/>
|
||||
)
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue