Skip to content

Commit bba5b18

Browse files
committed
Setup prettier and tslint
1 parent ae26382 commit bba5b18

File tree

5 files changed

+168
-48
lines changed

5 files changed

+168
-48
lines changed

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true,
4+
"useTabs": false,
5+
"tabWidth": 2,
6+
"trailingComma": "all",
7+
"printWidth": 80,
8+
"parser": "typescript"
9+
}

README.md

+2-43
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,3 @@
1-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
1+
## velog-client
22

3-
## Available Scripts
4-
5-
In the project directory, you can run:
6-
7-
### `npm start`
8-
9-
Runs the app in the development mode.<br>
10-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11-
12-
The page will reload if you make edits.<br>
13-
You will also see any lint errors in the console.
14-
15-
### `npm test`
16-
17-
Launches the test runner in the interactive watch mode.<br>
18-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19-
20-
### `npm run build`
21-
22-
Builds the app for production to the `build` folder.<br>
23-
It correctly bundles React in production mode and optimizes the build for the best performance.
24-
25-
The build is minified and the filenames include the hashes.<br>
26-
Your app is ready to be deployed!
27-
28-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29-
30-
### `npm run eject`
31-
32-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33-
34-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35-
36-
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37-
38-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39-
40-
## Learn More
41-
42-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43-
44-
To learn React, check out the [React documentation](https://reactjs.org/).
3+
NEXT CLIENT FOR VELOG

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"react": "^16.8.1",
1111
"react-dom": "^16.8.1",
1212
"react-scripts": "2.1.4",
13+
"tslint": "^5.12.1",
14+
"tslint-config-airbnb": "^5.11.1",
15+
"tslint-config-prettier": "^1.18.0",
1316
"typescript": "3.3.3"
1417
},
1518
"scripts": {

tslint.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"defaultSeverity": "error",
3+
"extends": [
4+
"tslint-config-airbnb",
5+
"tstlint-config-prettier"
6+
],
7+
"jsRules": {},
8+
"rules": {
9+
"import-name": false,
10+
"variable-name": false,
11+
"object-shorthand-properties-first": false
12+
},
13+
"rulesDirectory": []
14+
}

yarn.lock

+140-5
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,25 @@
760760
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
761761
integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
762762

763+
"@fimbul/bifrost@^0.17.0":
764+
version "0.17.0"
765+
resolved "https://registry.yarnpkg.com/@fimbul/bifrost/-/bifrost-0.17.0.tgz#f0383ba7e40992e3193dc87e2ddfde2ad62a9cf4"
766+
integrity sha512-gVTkJAOef5HtN6LPmrtt5fAUmBywwlgmObsU3FBhPoNeXPLaIl2zywXkJEtvvVLQnaFmtff3x+wIj5lHRCDE3Q==
767+
dependencies:
768+
"@fimbul/ymir" "^0.17.0"
769+
get-caller-file "^2.0.0"
770+
tslib "^1.8.1"
771+
tsutils "^3.5.0"
772+
773+
"@fimbul/ymir@^0.17.0":
774+
version "0.17.0"
775+
resolved "https://registry.yarnpkg.com/@fimbul/ymir/-/ymir-0.17.0.tgz#4f28389b9f804d1cd202e11983af1743488b7815"
776+
integrity sha512-xMXM9KTXRLHLVS6dnX1JhHNEkmWHcAVCQ/4+DA1KKwC/AFnGHzu/7QfQttEPgw3xplT+ILf9e3i64jrFwB3JtA==
777+
dependencies:
778+
inversify "^5.0.0"
779+
reflect-metadata "^0.1.12"
780+
tslib "^1.8.1"
781+
763782
"@mrmlnc/readdir-enhanced@^2.2.1":
764783
version "2.2.1"
765784
resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
@@ -1962,6 +1981,11 @@ buffer@^4.3.0:
19621981
ieee754 "^1.1.4"
19631982
isarray "^1.0.0"
19641983

1984+
builtin-modules@^1.1.1:
1985+
version "1.1.1"
1986+
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
1987+
integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=
1988+
19651989
builtin-status-codes@^3.0.0:
19661990
version "3.0.0"
19671991
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
@@ -2091,7 +2115,7 @@ ccount@^1.0.3:
20912115
resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.3.tgz#f1cec43f332e2ea5a569fd46f9f5bde4e6102aff"
20922116
integrity sha512-Jt9tIBkRc9POUof7QA/VwWd+58fKkEEfI+/t1/eOlxKM7ZhrczNzMFefge7Ai+39y1pR/pP6cI19guHy3FSLmw==
20932117

2094-
[email protected], chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2:
2118+
[email protected], chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2:
20952119
version "2.4.2"
20962120
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
20972121
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@@ -2328,7 +2352,7 @@ [email protected], commander@~2.17.1:
23282352
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf"
23292353
integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==
23302354

2331-
commander@^2.11.0:
2355+
commander@^2.11.0, commander@^2.12.1:
23322356
version "2.19.0"
23332357
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
23342358
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==
@@ -3029,6 +3053,14 @@ dns-txt@^2.0.2:
30293053
dependencies:
30303054
buffer-indexof "^1.0.0"
30313055

3056+
3057+
version "0.7.2"
3058+
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-0.7.2.tgz#7cb860359ba3be90e040b26b729ce4bfa654c523"
3059+
integrity sha1-fLhgNZujvpDgQLJrcpzkv6ZUxSM=
3060+
dependencies:
3061+
esutils "^1.1.6"
3062+
isarray "0.0.1"
3063+
30323064
30333065
version "1.5.0"
30343066
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa"
@@ -3463,6 +3495,11 @@ estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0:
34633495
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
34643496
integrity sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=
34653497

3498+
esutils@^1.1.6:
3499+
version "1.1.6"
3500+
resolved "https://registry.yarnpkg.com/esutils/-/esutils-1.1.6.tgz#c01ccaa9ae4b897c6d0c3e210ae52f3c7a844375"
3501+
integrity sha1-wBzKqa5LiXxtDD4hCuUvPHqEQ3U=
3502+
34663503
esutils@^2.0.0, esutils@^2.0.2:
34673504
version "2.0.2"
34683505
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
@@ -4048,6 +4085,11 @@ get-caller-file@^1.0.1:
40484085
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a"
40494086
integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==
40504087

4088+
get-caller-file@^2.0.0:
4089+
version "2.0.1"
4090+
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.1.tgz#25835260d3a2b9665fcdbb08cb039a7bbf7011c0"
4091+
integrity sha512-SpOZHfz845AH0wJYVuZk2jWDqFmu7Xubsx+ldIpwzy5pDUpu7OJHK7QYNSA2NPlDSKQwM1GFaAkciOWjjW92Sg==
4092+
40514093
get-own-enumerable-property-symbols@^3.0.0:
40524094
version "3.0.0"
40534095
resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz#b877b49a5c16aefac3655f2ed2ea5b684df8d203"
@@ -4696,6 +4738,11 @@ invariant@^2.2.2, invariant@^2.2.4:
46964738
dependencies:
46974739
loose-envify "^1.0.0"
46984740

4741+
inversify@^5.0.0:
4742+
version "5.0.1"
4743+
resolved "https://registry.yarnpkg.com/inversify/-/inversify-5.0.1.tgz#500d709b1434896ce5a0d58915c4a4210e34fb6e"
4744+
integrity sha512-Ieh06s48WnEYGcqHepdsJUIJUXpwH5o5vodAX+DK2JA/gjy4EbEcQZxw+uFfzysmKjiLXGYwNG3qDZsKVMcINQ==
4745+
46994746
invert-kv@^1.0.0:
47004747
version "1.0.0"
47014748
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
@@ -7869,7 +7916,7 @@ react-dev-utils@^7.0.2:
78697916
strip-ansi "5.0.0"
78707917
text-table "0.2.0"
78717918

7872-
7919+
react-dom@^16.8.1:
78737920
version "16.8.1"
78747921
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.1.tgz#ec860f98853d09d39bafd3a6f1e12389d283dbb4"
78757922
integrity sha512-N74IZUrPt6UiDjXaO7UbDDFXeUXnVhZzeRLy/6iqqN1ipfjrhR60Bp5NuBK+rv3GMdqdIuwIl22u1SYwf330bg==
@@ -7939,7 +7986,7 @@ [email protected]:
79397986
optionalDependencies:
79407987
fsevents "1.2.4"
79417988

7942-
7989+
react@^16.8.1:
79437990
version "16.8.1"
79447991
resolved "https://registry.yarnpkg.com/react/-/react-16.8.1.tgz#ae11831f6cb2a05d58603a976afc8a558e852c4a"
79457992
integrity sha512-wLw5CFGPdo7p/AgteFz7GblI2JPOos0+biSoxf1FPsGxWQZdN/pj6oToJs1crn61DL3Ln7mN86uZ4j74p31ELQ==
@@ -8038,6 +8085,11 @@ [email protected]:
80388085
dependencies:
80398086
minimatch "3.0.4"
80408087

8088+
reflect-metadata@^0.1.12:
8089+
version "0.1.13"
8090+
resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08"
8091+
integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==
8092+
80418093
regenerate-unicode-properties@^7.0.0:
80428094
version "7.0.0"
80438095
resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c"
@@ -9267,11 +9319,94 @@ ts-pnp@^1.0.0:
92679319
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.0.0.tgz#44a3a9e8c13fcb711bcda75d7b576c21af120c9d"
92689320
integrity sha512-qgwM7eBrxFvZSXLtSvjf3c2mXwJOOGD49VlE+KocUGX95DuMdLc/psZHBnPpZL5b2NU7VtQGHRCWF3cNfe5kxQ==
92699321

9270-
tslib@^1.9.0:
9322+
9323+
version "1.9.0"
9324+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
9325+
integrity sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==
9326+
9327+
tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0:
92719328
version "1.9.3"
92729329
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
92739330
integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==
92749331

9332+
tslint-config-airbnb@^5.11.1:
9333+
version "5.11.1"
9334+
resolved "https://registry.yarnpkg.com/tslint-config-airbnb/-/tslint-config-airbnb-5.11.1.tgz#51a27fbb8bf24c144d064a274a71da47e7ece617"
9335+
integrity sha512-hkaittm2607vVMe8eotANGN1CimD5tor7uoY3ypg2VTtEcDB/KGWYbJOz58t8LI4cWSyWtgqYQ5F0HwKxxhlkQ==
9336+
dependencies:
9337+
tslint-consistent-codestyle "^1.14.1"
9338+
tslint-eslint-rules "^5.4.0"
9339+
tslint-microsoft-contrib "~5.2.1"
9340+
9341+
tslint-config-prettier@^1.18.0:
9342+
version "1.18.0"
9343+
resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz#75f140bde947d35d8f0d238e0ebf809d64592c37"
9344+
integrity sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg==
9345+
9346+
tslint-consistent-codestyle@^1.14.1:
9347+
version "1.15.0"
9348+
resolved "https://registry.yarnpkg.com/tslint-consistent-codestyle/-/tslint-consistent-codestyle-1.15.0.tgz#a3acf8d0a3ca0dc7d1285705102ba1fe4a17c4cb"
9349+
integrity sha512-6BNDBbZh2K0ibRXe70Mkl9gfVttxQ3t3hqV1BRDfpIcjrUoOgD946iH4SrXp+IggDgeMs3dJORjD5tqL5j4jXg==
9350+
dependencies:
9351+
"@fimbul/bifrost" "^0.17.0"
9352+
tslib "^1.7.1"
9353+
tsutils "^2.29.0"
9354+
9355+
tslint-eslint-rules@^5.4.0:
9356+
version "5.4.0"
9357+
resolved "https://registry.yarnpkg.com/tslint-eslint-rules/-/tslint-eslint-rules-5.4.0.tgz#e488cc9181bf193fe5cd7bfca213a7695f1737b5"
9358+
integrity sha512-WlSXE+J2vY/VPgIcqQuijMQiel+UtmXS+4nvK4ZzlDiqBfXse8FAvkNnTcYhnQyOTW5KFM+uRRGXxYhFpuBc6w==
9359+
dependencies:
9360+
doctrine "0.7.2"
9361+
tslib "1.9.0"
9362+
tsutils "^3.0.0"
9363+
9364+
tslint-microsoft-contrib@~5.2.1:
9365+
version "5.2.1"
9366+
resolved "https://registry.yarnpkg.com/tslint-microsoft-contrib/-/tslint-microsoft-contrib-5.2.1.tgz#a6286839f800e2591d041ea2800c77487844ad81"
9367+
integrity sha512-PDYjvpo0gN9IfMULwKk0KpVOPMhU6cNoT9VwCOLeDl/QS8v8W2yspRpFFuUS7/c5EIH/n8ApMi8TxJAz1tfFUA==
9368+
dependencies:
9369+
tsutils "^2.27.2 <2.29.0"
9370+
9371+
tslint@^5.12.1:
9372+
version "5.12.1"
9373+
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.12.1.tgz#8cec9d454cf8a1de9b0a26d7bdbad6de362e52c1"
9374+
integrity sha512-sfodBHOucFg6egff8d1BvuofoOQ/nOeYNfbp7LDlKBcLNrL3lmS5zoiDGyOMdT7YsEXAwWpTdAHwOGOc8eRZAw==
9375+
dependencies:
9376+
babel-code-frame "^6.22.0"
9377+
builtin-modules "^1.1.1"
9378+
chalk "^2.3.0"
9379+
commander "^2.12.1"
9380+
diff "^3.2.0"
9381+
glob "^7.1.1"
9382+
js-yaml "^3.7.0"
9383+
minimatch "^3.0.4"
9384+
resolve "^1.3.2"
9385+
semver "^5.3.0"
9386+
tslib "^1.8.0"
9387+
tsutils "^2.27.2"
9388+
9389+
tsutils@^2.27.2, tsutils@^2.29.0:
9390+
version "2.29.0"
9391+
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99"
9392+
integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==
9393+
dependencies:
9394+
tslib "^1.8.1"
9395+
9396+
"tsutils@^2.27.2 <2.29.0":
9397+
version "2.28.0"
9398+
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.28.0.tgz#6bd71e160828f9d019b6f4e844742228f85169a1"
9399+
integrity sha512-bh5nAtW0tuhvOJnx1GLRn5ScraRLICGyJV5wJhtRWOLsxW70Kk5tZtpK3O/hW6LDnqKS9mlUMPZj9fEMJ0gxqA==
9400+
dependencies:
9401+
tslib "^1.8.1"
9402+
9403+
tsutils@^3.0.0, tsutils@^3.5.0:
9404+
version "3.8.0"
9405+
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.8.0.tgz#7a3dbadc88e465596440622b65c04edc8e187ae5"
9406+
integrity sha512-XQdPhgcoTbCD8baXC38PQ0vpTZ8T3YrE+vR66YIj/xvDt1//8iAhafpIT/4DmvzzC1QFapEImERu48Pa01dIUA==
9407+
dependencies:
9408+
tslib "^1.8.1"
9409+
92759410
92769411
version "0.0.0"
92779412
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"

0 commit comments

Comments
 (0)