Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b3b7d124
Commit
b3b7d124
authored
Dec 20, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog and newlines
parent
6f45cbd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
changelogs/unreleased/pre-commit-prettier.yml
changelogs/unreleased/pre-commit-prettier.yml
+5
-0
scripts/add-code-formatters
scripts/add-code-formatters
+1
-1
scripts/pre-commit
scripts/pre-commit
+1
-1
No files found.
changelogs/unreleased/pre-commit-prettier.yml
0 → 100644
View file @
b3b7d124
---
title
:
Adds scripts to add code formatters in pre-commit via prettier
merge_request
:
author
:
type
:
added
scripts/add-code-formatters
View file @
b3b7d124
#!/bin/sh
touch
./.git/hooks/pre-commit
ln
-s
-f
./pre-commit .git/hooks/pre-commit
\ No newline at end of file
ln
-s
-f
./pre-commit .git/hooks/pre-commit
scripts/pre-commit
View file @
b3b7d124
...
...
@@ -8,4 +8,4 @@ echo "$jsfiles" | xargs ./node_modules/.bin/prettier --write
# Add back the modified/prettified files to staging
echo
"
$jsfiles
"
| xargs git add
exit
0
\ No newline at end of file
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment