-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps-dev): bump @dhis2/cli-style from 4.2.0 to 5.0.4 (#219)
* chore(deps-dev): bump @dhis2/cli-style from 4.2.0 to 5.0.2 Bumps [@dhis2/cli-style](https://github.com/dhis2/cli) from 4.2.0 to 5.0.2. - [Release notes](https://github.com/dhis2/cli/releases) - [Changelog](https://github.com/dhis2/cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/dhis2/cli/commits) Signed-off-by: dependabot-preview[bot] <[email protected]> * chore(deps-dev): update cli-style and hooks * style: update code to comply with code style * chore(deps-dev): remove eslint and babel-eslint * chore(eslintignore): move eslintignore back to shell Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0484971
commit 4c66ab9
Showing
11 changed files
with
402 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
> 0.5% | ||
last 2 versions | ||
Firefox ESR | ||
not ie 11 | ||
not dead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
const { config } = require('@dhis2/cli-style') | ||
const husky = require(config.husky) | ||
|
||
const tasks = arr => arr.join(' && ') | ||
|
||
module.exports = { | ||
hooks: { | ||
'commit-msg': 'd2-style commit check', | ||
'pre-commit': 'd2-style validate', | ||
...husky.hooks, | ||
'pre-commit': tasks([ | ||
'd2-style js check --staged', | ||
'd2-style text check --staged', | ||
]), | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.