Skip to content

Commit

Permalink
Part of TTLApp#402: Move prettier files to configs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tupaschoal committed Feb 8, 2025
1 parent d891751 commit beaa3b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi

readarray -t changed_docs < <(get_changed_files 'locales/*/*.json' 'docs/*.md' '*.md')
if [ ! -z "$changed_docs" ]; then
prettier -c "${changed_docs[@]}" &
prettier -c "${changed_docs[@]}" --config configs/.prettierrc.json --ignore-path .gitignore --ignore-path configs/.prettierignore &
pids="$pids $!"
fi

Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"lint": "npm-run-all --parallel lint:*",
"lint:css": "stylelint css/*.css",
"lint:eslint": "eslint .",
"lint:markdown": "prettier docs/*.md *.md -c",
"lint:json": "prettier locales/*/*.json -c",
"lint:markdown": "prettier -c docs/*.md *.md --config configs/.prettierrc.json --ignore-path .gitignore --ignore-path configs/.prettierignore",
"lint:json": "prettier -c locales/*/*.json --config configs/.prettierrc.json --ignore-path .gitignore --ignore-path configs/.prettierignore",
"lint-fix": "npm-run-all --parallel lint-fix:*",
"lint-fix:css": "npm run lint:css -- --fix",
"lint-fix:eslint": "npm run lint:eslint -- --fix",
"lint-fix:json": "npm run lint:json -- --write",
"lint-fix:json": "npm run lint:json -- --write",
"lint-fix:markdown": "npm run lint:markdown -- --write",
"package:deb": "electron-packager . time-to-leave --overwrite --asar --platform=linux --arch=x64 --icon=assets/icon-deb.png --prune=true --out=release-builds --ignore=__tests__ --ignore=tests --ignore=./scripts --ignore=Resources --ignore=release-builds --ignore=packages --ignore=coverage_c8 --ignore=__mocks__ --ignore=docs",
"package:mac": "electron-packager . --overwrite --platform=darwin --arch=universal --icon=assets/icon-mac.icns --prune=true --out=release-builds --ignore=__tests__ --ignore=tests --ignore=./scripts --ignore=Resources --ignore=release-builds --ignore=packages --ignore=coverage_c8 --ignore=__mocks__ --ignore=docs",
Expand Down

0 comments on commit beaa3b7

Please sign in to comment.