Skip to content

Commit 29682c0

Browse files
committed
lint: Add pre-commit for linters
1 parent 677fa09 commit 29682c0

31 files changed

+59
-73
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.5.0
4+
hooks:
5+
- id: check-builtin-literals
6+
- id: check-added-large-files
7+
- id: check-case-conflict
8+
- id: check-yaml
9+
- id: debug-statements
10+
- id: end-of-file-fixer
11+
- id: forbid-new-submodules
12+
- id: trailing-whitespace

junction/static/fonts/fontawesome-webfont.svg

Lines changed: 1 addition & 1 deletion
Loading

junction/static/fonts/glyphicons-halflings-regular.svg

Lines changed: 1 addition & 1 deletion
Loading

junction/static/fonts/icomoon.svg

Lines changed: 1 addition & 1 deletion
Loading

junction/static/js/Chart.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

junction/static/js/bootstrap-markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@
10371037

10381038
if (link != null && link != '' && link != 'http://' && link.substr(0,4) == 'http') {
10391039
var sanitizedLink = $('<div>'+link+'</div>').text()
1040-
1040+
10411041
// transform selection and set the cursor into chunked text
10421042
e.replaceSelection('!['+chunk+']('+sanitizedLink+' "'+e.__localize('enter image title here')+'")')
10431043
cursor = selected.start+2

junction/static/js/bootstrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

junction/static/js/jquery-1.11.0.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

junction/static/js/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,4 +1613,4 @@ function merge_text_nodes( jsonml ) {
16131613
else {
16141614
return exports;
16151615
}
1616-
} )() );
1616+
} )() );

junction/static/js/sweetalert.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)