Skip to content

Commit

Permalink
add prettier to nps scripts
Browse files Browse the repository at this point in the history
- run with `yarn lint`
  • Loading branch information
TheAfroOfDoom committed Dec 29, 2023
1 parent 238f78c commit 6c1cbe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,10 @@ module.exports = {
datapacks: `yarn rimraf --glob ${minecraftWorldPath}/datapacks/**/*`,
resourcepacks: `yarn rimraf --glob ${minecraftResourcePackPath}/**/*`,
},
lint: {
default: 'nps lint.check',
check: 'prettier --check .',
fix: 'prettier --write .',
},
},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "omega-flowey-minecraft-remastered",
"packageManager": "yarn@3.6.3",
"scripts": {
"lint": "nps lint",
"start": "nps",
"sync": "nps sync.world"
},
Expand Down

0 comments on commit 6c1cbe2

Please sign in to comment.