Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettier package 생성 #195

Merged
merged 3 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .pnp.cjs

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

3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require("./packages/prettier-config/index.json"),
};
10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"exportall.config.folderListener": []
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"exportall.config.folderListener": [],
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
3 changes: 2 additions & 1 deletion apps/jurumarble/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"eslint.nodePath": "../../.yarn/sdks"
"eslint.nodePath": "../../.yarn/sdks",
"prettier.prettierPath": "../../.yarn/sdks/prettier/index.js",
}
1 change: 1 addition & 0 deletions apps/jurumarble/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@types/styled-components": "^5",
"eslint": "^8.51.0",
"eslint-config-mogakko": "workspace:*",
"prettier": "^2.8.1",
"typescript": "4.9.3",
"typescript-plugin-css-modules": "^5.0.2"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/jurumarble/src/components/divide/DivideLine.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from "styled-components";
import styled from 'styled-components';

function DivideLine() {
return <Line />;
Expand Down
8 changes: 4 additions & 4 deletions apps/jurumarble/src/components/layouts/PageLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { PropsWithChildren } from "react";
import { PropsWithChildren } from 'react';

import { getClassNames } from "lib/styles/getClassNames";
import { getClassNames } from 'lib/styles/getClassNames';

import styles from "./styles.module.css";
import styles from './styles.module.css';

const cx = getClassNames(styles);

export const PageLayout = ({ children }: PropsWithChildren) => {
return <div className={cx("rootlayout")}>{children}</div>;
return <div className={cx('rootlayout')}>{children}</div>;
};
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"private": true,
"scripts": {
"chooz": "yarn workspace @monorepo/chooz",
"juma": "yarn workspace @monorepo/jurumarble"
"juma": "yarn workspace @monorepo/jurumarble",
"eslint": "yarn workspaces foreach -pi run eslint",
"eslint:fix": "yarn workspaces foreach -pi run eslint:fix --cache",
"prettier": "yarn workspaces foreach -pi run prettier",
"prettier:fix": "yarn workspaces foreach -pi run prettier:fix --cache"
},
"workspaces": {
"packages": [
Expand All @@ -16,6 +20,7 @@
"styled-components": "^5.3.6"
},
"devDependencies": {
"@mogakko/prettier-config": "workspace:*",
"eslint": "^8.51.0",
"prettier": "^2.8.1",
"typescript": "4.9.3"
Expand Down
11 changes: 11 additions & 0 deletions packages/prettier-config/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"printWidth": 80,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"quoteProps": "consistent",
"bracketSameLine": false,
"useTabs": false
}
7 changes: 7 additions & 0 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@mogakko/prettier-config",
"version": "1.0.0",
"description": "prettier config",
"main": "index.js",
"license": "MIT"
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,12 @@ __metadata:
languageName: unknown
linkType: soft

"@mogakko/prettier-config@workspace:*, @mogakko/prettier-config@workspace:packages/prettier-config":
version: 0.0.0-use.local
resolution: "@mogakko/prettier-config@workspace:packages/prettier-config"
languageName: unknown
linkType: soft

"@monorepo/chooz@workspace:apps/chooz":
version: 0.0.0-use.local
resolution: "@monorepo/chooz@workspace:apps/chooz"
Expand Down Expand Up @@ -1747,6 +1753,7 @@ __metadata:
eslint: ^8.51.0
eslint-config-mogakko: "workspace:*"
next: ^13.5.3
prettier: ^2.8.1
react: 18.2.0
react-dom: 18.2.0
react-is: ^18.2.0
Expand Down Expand Up @@ -6212,6 +6219,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "monorepo@workspace:."
dependencies:
"@mogakko/prettier-config": "workspace:*"
eslint: ^8.51.0
prettier: ^2.8.1
styled-components: ^5.3.6
Expand Down
Loading