Skip to content

Commit

Permalink
formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
hxhxhx88 committed Jan 15, 2024
1 parent 6db0d55 commit d40f6c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ tasks:
fmt:
cmds:
- task: frontend:fmt
- task: e2e:fmt
# - task: e2e:fmt # TODO(xu): uncomment it
- go fmt ./...

lint:
cmds:
- task: frontend:lint
- task: e2e:lint
# - task: e2e:lint # TODO(xu): uncomment it

test:
cmds:
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"build-dev": "REACT_APP_DEV=true craco build",
"test": "craco test",
"lint": "npx eslint \"**/*.{ts,tsx}\"",
"fmt": "gts fix && prettier --write src"
"fmt": "prettier --write src"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/src/common/adapter/rectangle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {deepClone} from 'common/util';
import type {ViewportTransform} from 'state/annotate/render/viewport';
import type {RectangleComponent, Coordinates, ComponentDetail} from 'type/annotation';
import {interpolateRectangle} from 'common/algorithm/interpolate/rectangle';
import type { Proximity, ScalabelExport} from './base';
import type {Proximity, ScalabelExport} from './base';
import {ComponentAdapter} from './base';
import {polychainElement, pointElement} from './svg';

Expand Down
2 changes: 1 addition & 1 deletion app/frontend/src/common/context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createContext} from 'react';
import type {Config} from 'openapi/nutsh';
import { NutshClient} from 'openapi/nutsh';
import {NutshClient} from 'openapi/nutsh';

export const NutshClientContext = createContext(new NutshClient({}));
export const ConfigContext = createContext<Config>({
Expand Down

0 comments on commit d40f6c4

Please sign in to comment.