Skip to content

Commit

Permalink
Merge pull request #41 from cirrahn/feature/lint
Browse files Browse the repository at this point in the history
Add linter; auto-lint for staged files on commit
  • Loading branch information
Z3nner authored Jun 25, 2024
2 parents 24bddf2 + f6e65ca commit 083f10f
Show file tree
Hide file tree
Showing 173 changed files with 4,066 additions and 2,924 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

npx lint-staged --verbose
7 changes: 7 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"scripts/**/*": "prettier --write",
"packs_source/**/*": "node tooling/prettier/prettier-packs.js",
"lang/**/*": "prettier --write",
"tooling/**/*": "prettier --write",
"test/**/*": "prettier --write"
}
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 120,
"semi": true,
"singleQuote": false,
"quoteProps": "preserve",
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "avoid",
"endOfLine": "lf"
}
6 changes: 3 additions & 3 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lancer-weapon-fx.Sound Volume": "Sound Volume",
"lancer-weapon-fx.Sound Volume Hint": "Set a base volume level for all sound effects. Note that for each user, this value is combined with the user's \"Global: Interface\" volume setting (see the \"Playlists\" sidebar tab) to produce their final volume level.",
"lancer-weapon-fx.Debug: Play Miss Animations by Default": "Debug: Play Miss Animations by Default"
"lancer-weapon-fx.Sound Volume": "Sound Volume",
"lancer-weapon-fx.Sound Volume Hint": "Set a base volume level for all sound effects. Note that for each user, this value is combined with the user's \"Global: Interface\" volume setting (see the \"Playlists\" sidebar tab) to produce their final volume level.",
"lancer-weapon-fx.Debug: Play Miss Animations by Default": "Debug: Play Miss Animations by Default"
}
Loading

0 comments on commit 083f10f

Please sign in to comment.