Skip to content

Commit

Permalink
Add 'yarn lint:fix' Script
Browse files Browse the repository at this point in the history
Adds a package.json script to automatically fix linting errors in the 3 packages.

Signed-off-by: Will Yang <william.yang@ericsson.com>
  • Loading branch information
williamsyang-work authored and marco-miller committed Jul 20, 2023
1 parent a90d1f2 commit 9bd4972
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"start-all:browser": "yarn start:server & yarn start:browser",
"start-all:electron": "yarn start:server & yarn start:electron",
"lint": "lerna run lint",
"lint:fix": "lerna run lint:fix",
"test": "lerna run test --",
"publish:latest": "lerna publish --registry=https://registry.npmjs.org/ --exact --no-git-tag-version --no-push",
"publish:next": "lerna publish --registry=https://registry.npmjs.org/ --exact --canary minor --preid=next.$(date -u '+%Y%m%d%H%M%S').$(git rev-parse --short HEAD) --dist-tag=next --no-git-tag-version --no-push --yes",
Expand Down
1 change: 1 addition & 0 deletions packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"build": "tsc -b",
"clean": "rimraf lib *.tsbuildinfo",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "echo 'test'",
"watch": "tsc -w",
"format:write": "prettier --write ./src",
Expand Down
1 change: 1 addition & 0 deletions packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"build": "tsc -b",
"clean": "rimraf lib *.tsbuildinfo",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "jest --config jest.config.json",
"watch": "tsc -b -w",
"format:write": "prettier --write ./src",
Expand Down
1 change: 1 addition & 0 deletions theia-extensions/viewer-prototype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"build": "tsc -b",
"clean": "rimraf lib *.tsbuildinfo",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "echo 'test'",
"watch": "tsc -w",
"format:write": "prettier --write ./src",
Expand Down

0 comments on commit 9bd4972

Please sign in to comment.