Skip to content

Commit

Permalink
Revert "Test prettier-local hacks"
Browse files Browse the repository at this point in the history
This reverts commit e05ab31.
  • Loading branch information
victortrinh2 committed Nov 18, 2024
1 parent e05ab31 commit 8daa4e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .storybook/components/snippet/formatCode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isNil } from "@components/shared/index.ts";
import prettier from "prettier-local";
import babel from "prettier-parser-babel";
import postcss from "prettier-parser-postcss";
import * as prettier from "prettier-local/standalone";
import babel from "prettier-local/parser-babel";
import postcss from "prettier-local/parser-postcss";

const PrettierParser = {
"javascript": "babel",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"jest-environment-jsdom": "29.7.0",
"meow": "9.0.0",
"netlify-cli": "17.37.2",
"prettier-local": "npm:prettier@2.8.8",
"prettier-local": "npm:prettier@2.5.1",
"prism-react-renderer": "1.2.1",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
11 changes: 9 additions & 2 deletions pnpm-lock.yaml

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

4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"@components": ["packages/components/src/index.ts"],
"@components/*": ["packages/components/src/*"],
"@stories/components": [".storybook/components/index.ts"],
"@stories/mdx": [".storybook/mdx/index.ts"],
"prettier-parser-babel": ["node_modules/.pnpm/[email protected]/node_modules/prettier/esm/parser-babel.mjs"],
"prettier-parser-postcss": ["node_modules/.pnpm/[email protected]/node_modules/prettier/esm/parser-postcss.mjs"]
"@stories/mdx": [".storybook/mdx/index.ts"]
}
},
"exclude": ["**/dist/**", "node_modules", "packages", "apps"],
Expand Down

0 comments on commit 8daa4e8

Please sign in to comment.