Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Jan 25, 2025
1 parent 0f4199d commit a429b7b
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 29 deletions.
8 changes: 7 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
},
"files": {
"ignoreUnknown": false,
"ignore": [".nx", "**/.test/**", "**/dist/**", "CfiHandler.ts"]
"ignore": [
".nx",
"**/.test/**",
"**/dist/**",
"CfiHandler.ts",
"**/playwright-report/**"
]
},
"formatter": {
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
}
},
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
}
4 changes: 1 addition & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
},
"types": "./dist/index.d.ts",
"license": "MIT",
"files": [
"/dist"
],
"files": ["/dist"],
"scripts": {
"start": "vite build --watch --mode development",
"build": "tsc && vite build",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Take the relative position of the event in the iframe and translate
* it to the page coordinates.
*
*
* For example the page 2 of an iframe could be at x=600 but
* the cursor on the page would be at x=100. That is for a
* the cursor on the page would be at x=100. That is for a
* webpage of 500px of width and not using spread.
*/
export const translateFramePositionIntoPage = ({
Expand Down
4 changes: 1 addition & 3 deletions packages/enhancer-annotations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"/dist"
],
"files": ["/dist"],
"exports": {
".": {
"import": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/enhancer-annotations/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Command =
data: Pick<HighlightParams, "color" | "contents">
}
| { type: "select"; id: string | undefined }
| { type: "reset"; }
| { type: "reset" }

export class Commands extends DestroyableClass {
private commandSubject = new Subject<Command>()
Expand Down Expand Up @@ -64,7 +64,7 @@ export class Commands extends DestroyableClass {
}

reset = () => {
this.commandSubject.next({ type: "reset"})
this.commandSubject.next({ type: "reset" })
}

destroy() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ export class SpineItemHighlights extends DestroyableClass {

layout() {
const firstLayerElement =
this.spineItem.renderer.documentContainer ??
document.createElement("div")
this.spineItem.renderer.documentContainer ?? document.createElement("div")

layoutAnnotationLayer(firstLayerElement, this.layer)

Expand Down
4 changes: 1 addition & 3 deletions packages/enhancer-bookmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"require": "./dist/index.umd.cjs"
}
},
"files": [
"/dist"
],
"files": ["/dist"],
"scripts": {
"start": "vite build --watch --mode development",
"build": "tsc && vite build",
Expand Down
4 changes: 1 addition & 3 deletions packages/enhancer-gestures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"require": "./dist/index.umd.cjs"
}
},
"files": [
"/dist"
],
"files": ["/dist"],
"scripts": {
"start": "vite build --watch --mode development",
"build": "tsc && vite build",
Expand Down
4 changes: 1 addition & 3 deletions packages/enhancer-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"/dist"
],
"files": ["/dist"],
"exports": {
".": {
"import": "./dist/index.js",
Expand Down
4 changes: 1 addition & 3 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
},
"types": "./dist/index.d.ts",
"license": "MIT",
"files": [
"/dist"
],
"files": ["/dist"],
"scripts": {
"start": "vite build --watch --mode development",
"build": "tsc && vite build",
Expand Down
4 changes: 1 addition & 3 deletions packages/streamer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
},
"types": "./dist/index.d.ts",
"license": "MIT",
"files": [
"/dist"
],
"files": ["/dist"],
"scripts": {
"start": "vite build --watch --mode development",
"build": "tsc && vite build",
Expand Down

0 comments on commit a429b7b

Please sign in to comment.