Skip to content

Commit 041cf59

Browse files
Prettier issue #203 solved (#237)
* Prettier issue #203 solved * Keep semi colons Currently we've been keeping semi colons in this code base, so making the prettier config reflect that. --------- Co-authored-by: Johnny Dickinson <[email protected]>
1 parent dd7769c commit 041cf59

File tree

2 files changed

+8
-39
lines changed

2 files changed

+8
-39
lines changed

.prettierrc

+6-38
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,10 @@
11
{
2-
"useTabs": false, // Indent lines with tabs instead of spaces.
3-
"printWidth": 80, // Specify the length of line that the printer will wrap on.
4-
"tabWidth": 4, // Specify the number of spaces per indentation-level.
5-
"singleQuote": false, // Use single quotes instead of double quotes.
6-
/**
7-
* Print trailing commas wherever possible.
8-
* Valid options:
9-
* - "none" - no trailing commas
10-
* - "es5" - trailing commas where valid in ES5 (objects, arrays, etc)
11-
* - "all" - trailing commas wherever possible (function arguments)
12-
*/
2+
"useTabs": false,
3+
"printWidth": 80,
4+
"tabWidth": 2, // Updated to 2 spaces per indentation-level as recommended.
5+
"singleQuote": false,
136
"trailingComma": "none",
14-
/**
15-
* Do not print spaces between brackets.
16-
* If true, puts the > of a multi-line jsx element at the end of the last line instead of being
17-
* alone on the next line
18-
*/
197
"jsxBracketSameLine": false,
20-
/**
21-
* Specify which parse to use.
22-
* Valid options:
23-
* - "flow"
24-
* - "babylon"
25-
*/
26-
"parser": "babylon",
27-
/**
28-
* Do not print semicolons, except at the beginning of lines which may need them.
29-
* Valid options:
30-
* - true - add a semicolon at the end of every line
31-
* - false - only add semicolons at the beginning of lines that may introduce ASI failures
32-
*/
33-
"noSemi": true,
34-
/**
35-
* Add additional logging from prettierrc (not prettier itself).
36-
* Defaults to false
37-
* Valid options:
38-
* - true - enable additional logging
39-
* - false - disable additional logging
40-
*/
8+
"parser": "babel", // Updated to use Babel parser instead of babylon.
419
"rcVerbose": true
42-
}
10+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"vm2": "^3.9.11",
5353
"wikijs": "^6.0.1",
5454
"youtube-dl": "^3.0.2",
55-
"youtube-node": "^1.3.3"
55+
"youtube-node": "^1.3.3",
56+
"prettier": "2.5.0"
5657
},
5758
"main": "discord_bot.js",
5859
"scripts": {

0 commit comments

Comments
 (0)