Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/eslint #33

Merged
merged 46 commits into from
Apr 24, 2019
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
f3127e8
feat: add eslint
varl Apr 18, 2019
9ec437e
feat: add eslint to js standards
varl Apr 18, 2019
655d9cd
chore: add comments
varl Apr 18, 2019
8771c3d
chore: add comments
varl Apr 18, 2019
a68a70d
chore: add comments
varl Apr 18, 2019
9730f88
refactor: simplify and electrify
varl Apr 19, 2019
4fd0968
test: foobar
varl Apr 19, 2019
783b553
test: remove test
varl Apr 19, 2019
b90dd5d
docs: add jsdoc
varl Apr 19, 2019
2d0323e
fix: use sourcetype module
varl Apr 19, 2019
a2190eb
chore: remove sort imports
varl Apr 19, 2019
cacaf2a
refactor: rename const to severity
varl Apr 19, 2019
f6b979d
refactor: here we go
varl Apr 20, 2019
a43ca90
refactor: run standardisation tools as a stream
varl Apr 20, 2019
8ae6207
chore: add babel-eslint as dep
varl Apr 20, 2019
c9ca634
refactor: change variable names for readability
varl Apr 21, 2019
0aae53f
refactor: export git commands
varl Apr 21, 2019
0a6c52d
chore: add performance measurements for hotspots
varl Apr 21, 2019
80cc9bf
chore: improve logging in verbose
varl Apr 21, 2019
447125e
chore: print amount of files for total time
varl Apr 21, 2019
ffae116
chore: consistent logging
varl Apr 21, 2019
7f5d7da
fix: abort early if there are no files to work on
varl Apr 21, 2019
10ae8de
refactor: rearrange structure
varl Apr 23, 2019
a088de1
docs: update readme
varl Apr 23, 2019
642ea7c
docs: fix ugly formatting in readme
varl Apr 23, 2019
db9d151
refactor: de-duplicate the code that runs js tools
varl Apr 23, 2019
f981abe
fix: change command to runner
varl Apr 23, 2019
69e26f1
fix: remove confusing name from runner of commitlint
varl Apr 23, 2019
2e80e3e
chore: only filter for violations once
amcgee Apr 23, 2019
ef13780
fix: change output to debug level
varl Apr 23, 2019
217c75a
merge: branch 'feat/eslint' of github.com:dhis2/cli-style into feat/e…
varl Apr 23, 2019
6db612e
chore: rename underscored functions to camelcase
varl Apr 23, 2019
624b626
chore: rename snake case to camel case
varl Apr 23, 2019
663c90a
fix: add boolean to toggle between check and apply
varl Apr 23, 2019
1527f8d
fix: only write and stage modified files
varl Apr 23, 2019
b99e55d
fix: rename summary to summarize (verb vs. noun)
varl Apr 23, 2019
f06fcb3
fix: track modified source
varl Apr 23, 2019
49bef15
fix: reduce confusing logging
varl Apr 23, 2019
62d9fff
refactor: improve logging
varl Apr 23, 2019
08cd695
fix: only do things when there are things to do
varl Apr 23, 2019
9f4876d
fix: remove unused prop
varl Apr 23, 2019
f8d6188
fix: make commit check consistent
varl Apr 23, 2019
b686598
docs: improve jsdocs
varl Apr 23, 2019
9606418
fix: ignore vendor folders for now
varl Apr 24, 2019
fda9662
fix: make eslint a bit stricter for now
varl Apr 24, 2019
72d2ac2
fix: do not use optional filename arg to execute on text
varl Apr 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add comments
  • Loading branch information
varl committed Apr 18, 2019
commit 655d9cdb1b5a61409966af5b25dd492c1ab19159
4 changes: 4 additions & 0 deletions src/run-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ function fixFile(file) {
}
}



// runs the checkers
exports.check_fmt = files => {
return files.map(checkFile)
}

// runs the appliers
exports.apply_fmt = files => {
return files.map(fixFile)
}