Skip to content

Commit

Permalink
Add yarn format:all and yarn format:python in the package.json (chair…
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-duhaime authored Dec 17, 2024
1 parent 976713a commit e462230
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion example/demo_generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"compile:example": "tsc && yarn copy-files",
"compile:dev": "yarn copy-files && tsc -w",
"reset": "rimraf src/ locales/ tests/ node_modules/ lib/",
"format": "prettier-eslint ./**/*.{ts,tsx} --write"
"format": "prettier-eslint ./**/*.{ts,tsx} --write",
"format:all": "yarn format"
},
"dependencies": {
"chaire-lib-backend": "0.2.2",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
"test:ui:install-dependencies": "yarn workspace demo_survey run playwright install-deps && yarn workspace demo_survey run playwright install",
"lint": "yarn workspace evolution-common run lint && yarn workspace evolution-backend run lint && yarn workspace evolution-frontend run lint && yarn workspace evolution-interviewer run lint",
"format": "yarn workspace evolution-common run format && yarn workspace evolution-backend run format && yarn workspace evolution-frontend run format && yarn workspace evolution-generator run format && yarn workspace evolution-interviewer run format",
"format:python": "yarn workspace evolution-generator run format:python",
"format:all": "yarn format && yarn format:python",
"list-tasks": "yarn workspace evolution-legacy run list-tasks",
"generate-migration": "knex migrate:make",
"reset-submodules": "rimraf transition/ && git submodule init && git submodule update",
Expand Down
3 changes: 2 additions & 1 deletion packages/evolution-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"test:sequential": "cross-env NODE_ENV=test jest --config=jest.sequential.config.js --runInBand",
"test:ui": "echo 'no tests to run for this workspace'",
"lint": "eslint .",
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write"
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write",
"format:all": "yarn format"
},
"dependencies": {
"@casl/ability": "^5.4.4",
Expand Down
3 changes: 2 additions & 1 deletion packages/evolution-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"test:sequential": "echo 'no tests to run for this workspace'",
"test:ui": "echo 'no tests to run for this workspace'",
"lint": "eslint .",
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write"
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write",
"format:all": "yarn format"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.7.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/evolution-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"test:sequential": "echo 'cross-env NODE_ENV=test jest --config=jest.sequential.config.js --runInBand'",
"test:ui": "echo 'cross-env NODE_ENV=test jest --config=jest.ui.config.js'",
"lint": "eslint .",
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write"
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write",
"format:all": "yarn format"
},
"dependencies": {
"@deck.gl/core": "9.0.29",
Expand Down
3 changes: 2 additions & 1 deletion packages/evolution-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"test:sequential": "echo 'no tests to run for this workspace'",
"test:ui": "echo 'no tests to run for this workspace'",
"lint": "eslint .",
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write && poetry run black .",
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write",
"format:python": "poetry run black .",
"format:all": "yarn format && yarn format:python",
"generateSurvey": "poetry run generateSurvey"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/evolution-interviewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"test:sequential": "cross-env NODE_ENV=test jest --config=jest.sequential.config.js --runInBand",
"test:ui": "echo 'no tests to run for this workspace'",
"lint": "eslint .",
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write"
"format": "prettier-eslint ./src/**/*.{ts,tsx} --write",
"format:all": "yarn format"
},
"dependencies": {
"@casl/ability": "^5.4.4",
Expand Down
1 change: 1 addition & 0 deletions packages/evolution-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"list-tasks": "yarn babel-node src/tasks/listTasks.task.js",
"lint": "cross-env NODE_OPTIONS=--max_old_space_size=4096 eslint .",
"format": "echo 'no formatting on this workspace'",
"format:all": "yarn format",
"clean": "rimraf lib/",
"cleanModules": "rimraf node_modules/",
"copy-files": "copyfiles -u 1 ./src/assets/images/**/* src/styles/survey/*.scss ./lib/",
Expand Down

0 comments on commit e462230

Please sign in to comment.