Skip to content

Commit

Permalink
chore: add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed May 7, 2024
1 parent 73c1d87 commit 09f88c4
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 5 deletions.
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "vocs dev",
"build": "vocs build",
"preview": "vocs preview"
"preview": "vocs preview",
"format": "prettier --write README.md \"docs/**/*.{js,jsx,ts,tsx,json,md}\""
},
"dependencies": {
"@radix-ui/react-tabs": "^1.0.4",
Expand All @@ -15,5 +16,17 @@
"typescript": "latest",
"vocs": "1.0.0-alpha.47"
},
"devDependencies": {
"@homer0/prettier-plugin-jsdoc": "^9.0.0",
"prettier": "^3.2.5"
},
"prettier": {
"printWidth": 80,
"semi": false,
"trailingComma": "all",
"plugins": [
"@homer0/prettier-plugin-jsdoc"
]
},
"packageManager": "[email protected]+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394"
}
35 changes: 35 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/** @type {import('tailwindcss').Config} */
/**
* @type {import("tailwindcss").Config}
*/
module.exports = {
content: ["./docs/**/*.{html,md,mdx,tsx,js,jsx}"],
theme: {
extend: {},
},
plugins: [],
};
}
4 changes: 2 additions & 2 deletions vocs.config.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from "vocs";
import { defineConfig } from "vocs"

export default defineConfig({
title: "Polkadot-API",
Expand Down Expand Up @@ -56,4 +56,4 @@ export default defineConfig({
link: "https://github.com/polkadot-api/polkadot-api",
},
],
});
})

0 comments on commit 09f88c4

Please sign in to comment.