-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added prettier function * Added eslint * Added vsCode default set * Added Vscode set desc
- Loading branch information
Showing
13 changed files
with
1,034 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#Ignore artifacts | ||
dist | ||
node_modules | ||
Sherlock-Holmes-Selected-Stories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"env": { | ||
"commonjs": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": "latest" | ||
}, | ||
"rules": { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#Ignore artifacts | ||
dist | ||
node_modules | ||
Sherlock-Holmes-Selected-Stories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"bracketSameLine": true, | ||
"endOfLine": "crlf", | ||
"printWidth": 80, | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
![header](https://capsule-render.vercel.app/api?type=waving&color=gradient&height=400§ion=header&text=Prettier&animation=fadeIn&fontSize=90) | ||
|
||
# PRETTIER | ||
|
||
## Usage | ||
|
||
Formatting: | ||
- `npm run prettier`: Format files by Prettier. | ||
- `npm run prettier-check`: Check the files are formatted or not. | ||
|
||
## Setting | ||
|
||
- You can change Prettier setting in `.prettierrc.json` | ||
|
||
# ESLINT | ||
|
||
## Usage | ||
|
||
Running: | ||
- `npm run eslint`: Show the errors from the files by Eslint. | ||
- `npm run eslint-fix`: Fix the errors from the files by Eslint. | ||
|
||
## Setting | ||
|
||
- You can change Prettier setting in `.eslintrc.json` | ||
|
||
# Vscode | ||
|
||
- Prettier: `esbenp.prettier-vscode` | ||
- ESLint: `dbaeumer.vscode-eslint` | ||
|
||
- It will automatically set the Prettier and ESLint as a default option to your Vscode. | ||
|
||
![footer](https://capsule-render.vercel.app/api?type=waving&color=auto&height=500§ion=footer&text=Jun%20Song&desc=Student%20of%20Seneca%20College&animation=fadeIn&fontSize=70) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.