Skip to content

Commit

Permalink
Feature: Add Prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
robloxiandemo committed Nov 10, 2023
1 parent 4c8aacc commit a809041
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# List files or directories below to ignore them when running prettier
# More information: https://prettier.io/docs/en/ignore.html
#

node_modules
.localdevserver
.vscode

*.txt

test/index.js
*.png
30 changes: 30 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"trailingComma": "none",
"useTabs": true,
"bracketSameLine": true,
"bracketSpacing": true,
"tabWidth": 2,
"singleQuote": true,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json", "printWidth": 80 }
},
{
"files": "**/*.js",
"options": { "parser": "babel", "useTabs": false, "printWidth": 80 }
},
{
"files": "doc*/**/*.html",
"options": {
"parser": "html",
"useTabs": true,
"tabWidth": 2,
"printWidth": 150,
"htmlWhitespaceSensitivity": "ignore",
"singleQuote": false
}
}
],
"$schema": "https://json.schemastore.org/prettierrc"
}

0 comments on commit a809041

Please sign in to comment.