From a1a213151f78932fa6fc361b97058d5447332f79 Mon Sep 17 00:00:00 2001 From: hwasurr Date: Fri, 21 May 2021 10:52:27 +0900 Subject: [PATCH 1/3] =?UTF-8?q?Add:=20eslint=20=EC=A0=81=EC=9A=A9=EC=8B=9C?= =?UTF-8?q?,=20prettier=20=EB=A3=B0=EC=9D=84=20=EB=8D=94=20=EA=B0=95?= =?UTF-8?q?=ED=99=94=ED=95=98=EC=97=AC,=20=EB=8D=94=20=EA=B0=95=EB=A0=A5?= =?UTF-8?q?=ED=9E=88=20=EC=BD=94=EB=93=9C=EB=A3=B0=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 2 +- .prettierrc | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .prettierrc diff --git a/.eslintrc.js b/.eslintrc.js index 5670680d1..83ec596fe 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,10 +20,10 @@ module.exports = { "react", "react-hooks", '@typescript-eslint/eslint-plugin', - 'prettier', 'jest' ], extends: [ + "plugin:prettier/recommended", "plugin:react/recommended", 'airbnb-base', 'airbnb', diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..b9893d4c9 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "printWidth": 100, + "tabWidth": 2, + "singleQuote": true, + "trailingComma": "all", + "bracketSpacing": true, + "semi": true, + "useTabs": false, + "arrowParens": "avoid", + "endOfLine": "lf" + } \ No newline at end of file From 9822ce72decefe802631043ecaaa33158ecaa06d Mon Sep 17 00:00:00 2001 From: hwasurr Date: Fri, 21 May 2021 10:57:12 +0900 Subject: [PATCH 2/3] =?UTF-8?q?Add:=20eslint=20config=EA=B0=84=20=EC=B6=A9?= =?UTF-8?q?=EB=8F=8C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 83ec596fe..e99bdd53e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,14 +20,12 @@ module.exports = { "react", "react-hooks", '@typescript-eslint/eslint-plugin', - 'jest' + 'jest', ], extends: [ + 'airbnb', "plugin:prettier/recommended", "plugin:react/recommended", - 'airbnb-base', - 'airbnb', - 'eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', ], @@ -50,11 +48,11 @@ module.exports = { 'comma-dangle': 2, 'linebreak-style': 'off', 'no-useless-constructor': 0, - 'max-len': ["error", { - code: 120, tabWidth: 2, ignoreComments: true, ignoreTrailingComments: true, ignoreStrings: true, - ignoreUrls: true, ignoreTemplateLiterals: true, - ignorePattern: "^import\\s.+\\sfrom\\s.+;$", - }], + // 'max-len': ["error", { + // code: 120, tabWidth: 2, ignoreComments: true, ignoreTrailingComments: true, ignoreStrings: true, + // ignoreUrls: true, ignoreTemplateLiterals: true, + // ignorePattern: "^import\\s.+\\sfrom\\s.+;$", + // }], 'max-params': ["warn", 4], "no-shadow": 2, /** From 3ff03f357ad1367e56554ae133171fe1fe2f9768 Mon Sep 17 00:00:00 2001 From: hwasurr Date: Fri, 21 May 2021 11:03:35 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Fix:=20=EC=B5=9C=EC=83=81=EC=9C=84=20tsconf?= =?UTF-8?q?ig=20=EC=84=A4=EC=A0=95=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index cb8e7dc37..ec44cf22b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ /* other options */ "baseUrl": "./", "paths": { - "@quramy/*": [ + "@truepoint/*": [ "./*/src" ] }