Skip to content

Commit 7b3072d

Browse files
author
gitgitWi
committed
Refactor: ts path alias, prettier singleQuote 적용
1 parent 4d39d51 commit 7b3072d

File tree

15 files changed

+51
-37
lines changed

15 files changed

+51
-37
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ insert_final_newline = ignore
1818

1919
[*.md]
2020
trim_trailing_whitespace = false
21-

.eslintrc.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ module.exports = {
66
es2021: true,
77
},
88
extends: [
9-
"eslint:recommended",
10-
"plugin:react/recommended",
11-
"plugin:@typescript-eslint/recommended",
12-
"plugin:prettier/recommended",
9+
'eslint:recommended',
10+
'plugin:react/recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'plugin:prettier/recommended',
1313
],
14-
parser: "@typescript-eslint/parser",
14+
parser: '@typescript-eslint/parser',
1515
parserOptions: {
1616
ecmaFeatures: {
1717
jsx: true,
1818
},
1919
ecmaVersion: 12,
20-
sourceType: "module",
20+
sourceType: 'module',
2121
},
22-
plugins: ["react", "@typescript-eslint", "prettier"],
22+
plugins: ['react', '@typescript-eslint', 'prettier'],
2323
rules: {
24-
"react/jsx-uses-react": "off",
25-
"react/react-in-jsx-scope": "off",
26-
"react/prop-types": "off",
27-
"react/require-default-props": "off",
28-
"@typescript-eslint/explicit-module-boundary-types": "off",
24+
'react/jsx-uses-react': 'off',
25+
'react/react-in-jsx-scope': 'off',
26+
'react/prop-types': 'off',
27+
'react/require-default-props': 'off',
28+
'@typescript-eslint/explicit-module-boundary-types': 'off',
2929
},
3030
};

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ jobs:
2222
uses: actions/setup-node@v2
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
cache: "yarn"
25+
cache: 'yarn'
2626

2727
- name: Install Packages
2828
run: yarn install --frozen-lockfile
2929

3030
- name: Build 🔧
3131
run: yarn build
32+
3233
- run: yarn run export
34+
3335
- run: touch ./out/.nojekyll
3436

3537
- name: Deploy

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"useTabs": false,
44
"endOfLine": "lf",
55
"printWidth": 90,
6-
"trailingComma": "es5"
6+
"trailingComma": "es5",
7+
"singleQuote": true
78
}

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"editor.tabSize": 2,
33
"prettier.printWidth": 90,
4-
"prettier.endOfLine": "lf"
4+
"prettier.endOfLine": "lf",
5+
"prettier.singleQuote": true,
6+
"typescript.tsdk": "node_modules/typescript/lib",
7+
"editor.formatOnSave": true,
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
"cSpell.words": ["gitgitWi"]
510
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import { Texts } from "../atoms/Texts";
2-
import { CENTER } from "../../styles/GlobalClassNames";
3-
import style from "./TitleTexts.module.scss";
1+
import { Texts } from '@/components/atoms/Texts';
2+
import { CENTER } from '@/styles/GlobalClassNames';
3+
4+
import style from './TitleTexts.module.scss';
45

56
interface TitleTextsProps {
67
titleText: string;
78
}
89

910
export function TitleTexts({ titleText }: TitleTextsProps) {
10-
return <Texts texts={titleText} className={[style.headText, CENTER].join(" ")} />;
11+
return <Texts texts={titleText} className={[style.headText, CENTER].join(' ')} />;
1112
}

components/molecules/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { TitleTexts } from "./TitleTexts";
1+
export { TitleTexts } from './TitleTexts';

constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "./texts";
1+
export * from './texts';

pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AppProps } from "next/app";
2-
import "../styles/globals.scss";
1+
import { AppProps } from 'next/app';
2+
import '@/styles/globals.scss';
33

44
export default function MyApp({ Component, pageProps }: AppProps) {
55
return <Component {...pageProps} />;

pages/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Head from "next/head";
2-
import { MAIN_META_DESC, MAIN_TITLE } from "../constants";
3-
import { TitleTexts } from "../components/molecules";
1+
import Head from 'next/head';
2+
import { MAIN_META_DESC, MAIN_TITLE } from '@/constants/index';
3+
import { TitleTexts } from '@/components/molecules';
44

55
export default function Home() {
66
return (

0 commit comments

Comments
 (0)