Skip to content

Commit

Permalink
website: fix plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed May 4, 2024
1 parent ba3e971 commit 54ee6d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const ts = require('typescript');
const prettier = require('prettier/standalone');
const parserTypescript = require('prettier/parser-typescript');
const prettierPluginEstree = require('prettier/plugins/estree');
// const prettierPluginEstree = require('prettier/plugins/estree');

const stripTypes = (origCode) => {
const modifiedCode = origCode.replace(/\n\n/g, '\n//--EMPTYLINE--\n');
Expand All @@ -21,7 +21,10 @@ const stripTypes = (origCode) => {
const format = (code) =>
prettier.format(code, {
parser: 'typescript',
plugins: [parserTypescript, prettierPluginEstree],
plugins: [
parserTypescript,
// prettierPluginEstree,
],
singleQuote: true,
trailingComma: 'all',
});
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"private": true,
"scripts": {
"start": "docusaurus start",
"serve": "docusaurus serve",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy"
Expand Down

0 comments on commit 54ee6d2

Please sign in to comment.