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

chore(deps): upgrade @dhis2/cli-style to latest alpha #174

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

8 changes: 6 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-unused-modules */

const { config } = require('@dhis2/cli-style')

module.exports = {
Expand Down Expand Up @@ -59,5 +57,11 @@ module.exports = {
'import/no-unused-modules': 'off',
},
},
{
files: ['.*.js', 'd2.config.js'],
rules: {
'import/no-unused-modules': 'off',
},
},
],
}
1 change: 1 addition & 0 deletions .hooks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn d2-style check commit "$1"
4 changes: 4 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn d2-style check --staged
15 changes: 0 additions & 15 deletions .huskyrc.js

This file was deleted.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"start": "d2-app-scripts start",
"test": "d2-app-scripts test --coverage",
"test:watch": "d2-app-scripts test --watch",
"lint": "yarn lint:js && yarn lint:text && yarn lint:css",
"lint:js": "d2-style js check",
"lint:text": "d2-style text check",
"lint": "d2-style check && yarn run lint:css",
"lint:js": "d2-style check js",
"lint:text": "d2-style check text",
"lint:css": "stylelint './src/**/*.css' && prettier './src/**/*.css' --check",
"format": "yarn format:js && yarn format:text && yarn format:css",
"format:js": "d2-style js apply",
"format:text": "d2-style text apply",
"format": "d2-style apply && yarn run format:css",
"format:js": "d2-style apply js",
"format:text": "d2-style apply text",
"format:css": "prettier './src/**/*.css' --write",
"cypress:open": "d2-utils-cypress open --appStart 'yarn start'",
"cypress:run": "d2-utils-cypress run --appStart 'yarn start'",
Expand All @@ -32,7 +32,7 @@
},
"devDependencies": {
"@dhis2/cli-app-scripts": "^6.0.0",
"@dhis2/cli-style": "^7.3.0",
"@dhis2/cli-style": "git+https://github.com/dhis2/cli-style#wrong-hooks-installed",
"@dhis2/cli-utils-cypress": "^7.0.0",
"@dhis2/cypress-commands": "^7.0.0",
"@dhis2/cypress-plugins": "^7.0.0",
Expand Down
Loading