-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chore) Separate linting and formatting concerns (#51)
* (chore) Separate linting and formatting concerns * (chore) Fix Prettier glob patterns
- Loading branch information
1 parent
79b5fc4
commit e4d65a9
Showing
6 changed files
with
508 additions
and
456 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
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
|
||
set -e # die on error | ||
|
||
yarn prettier | ||
yarn run extract-translations | ||
npx lint-staged | ||
yarn run extract-translations |
324 changes: 162 additions & 162 deletions
324
.yarn/releases/yarn-4.1.0.cjs → .yarn/releases/yarn-4.1.1.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
"start-all": "openmrs develop --sources 'packages/esm-*-app/'", | ||
"ci:publish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-admin-tools npm publish --access public --tag latest", | ||
"ci:prepublish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-admin-tools npm publish --access public --tag next", | ||
"lint": "cross-env eslint src --ext tsx,ts --fix --max-warnings=0", | ||
"release": "yarn workspaces foreach --all --topological version", | ||
"verify": "turbo lint typescript test", | ||
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx}\" \"e2e/**/*.ts\" --list-different", | ||
"postinstall": "husky install", | ||
"test-e2e": "playwright test", | ||
"coverage": "yarn test --coverage", | ||
|
@@ -41,19 +41,17 @@ | |
"dayjs": "^1.11.10", | ||
"dotenv": "^16.4.5", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-config-ts-react-important-stuff": "^3.0.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"husky": "^9.0.11", | ||
"i18next": "^23.10.0", | ||
"i18next-parser": "^8.13.0", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.7.0", | ||
"jest-cli": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"lint-staged": "^15.2.2", | ||
"openmrs": "next", | ||
"prettier": "^3.2.5", | ||
"pretty-quick": "^4.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-i18next": "^14.0.5", | ||
|
@@ -66,5 +64,9 @@ | |
"webpack": "^5.90.3", | ||
"webpack-cli": "^5.1.4" | ||
}, | ||
"packageManager": "[email protected]" | ||
"lint-staged": { | ||
"*.{ts,tsx}": "eslint --cache --fix --max-warnings 0", | ||
"*.{css,scss,ts,tsx}": "prettier --write --list-different" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.