Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Commit ed9cd7e

Browse files
committed
Add formatting
1 parent e96187c commit ed9cd7e

File tree

6 files changed

+34
-6
lines changed

6 files changed

+34
-6
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
yarn.lock

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": true,
4+
"singleQuote": true,
5+
"useTabs": true
6+
}

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.insertSpaces": false,
4+
"editor.formatOnPaste": true,
5+
"editor.tabSize": 2,
6+
"editor.detectIndentation": false,
7+
"[typescript]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
},
10+
"[md]": {
11+
"editor.defaultFormatter": "esbenp.prettier-vscode"
12+
}
13+
}

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
22
"name": "tstl-simple-const-unroller",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "TypeScriptToLua plugin that performs constant folding for certain binary expressions involving numeric literals",
55
"repository": {
6-
"type": "git",
7-
"url": "https://github.com/thinknathan/tstl-simple-const-unroller.git"
8-
},
6+
"type": "git",
7+
"url": "https://github.com/thinknathan/tstl-simple-const-unroller.git"
8+
},
99
"author": "Nathan Bolton (https://thinknathan.ca/)",
1010
"license": "CC0-1.0",
1111
"main": "dist/tstl-unroller.cjs",
1212
"type": "commonjs",
1313
"scripts": {
14-
"build": "tsc"
14+
"build": "tsc",
15+
"prettier": "prettier --write ./"
1516
},
1617
"devDependencies": {
18+
"prettier": "^3.1.0",
1719
"tsc": "^2.0.4",
1820
"typescript": "~5.2.2",
1921
"typescript-to-lua": "~1.21.0"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"./node_modules/@typescript-to-lua"
1515
]
1616
},
17-
"exclude": ["./node_modules/*", "./dist/*"],
17+
"exclude": ["./node_modules/*", "./dist/*"]
1818
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ picomatch@^2.3.1:
4949
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
5050
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
5151

52+
prettier@^3.1.0:
53+
version "3.1.0"
54+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e"
55+
integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==
56+
5257
resolve@^1.15.1:
5358
version "1.22.8"
5459
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"

0 commit comments

Comments
 (0)