Skip to content

Commit 401b6d7

Browse files
committed
fixed linting issue
1 parent 1bef5cd commit 401b6d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build:webpack": "webpack",
1616
"build": "npm run clean && npm run build:babel && npm run build:webpack && npm run build:webpack:lite && npm run build:main",
1717
"dev": "concurrently \"npm run serve\" \"webpack --watch\" ",
18-
"format": "prettier --write ./src/georaster-layer-for-leaflet.ts webpack.config.js",
18+
"format": "prettier --write ./src/georaster-layer-for-leaflet.ts webpack.config.js && npm run fix",
1919
"check-types": "tsc",
2020
"fix": "eslint ./src/georaster-layer-for-leaflet.ts --fix",
2121
"lint": "eslint ./src/georaster-layer-for-leaflet.ts",

src/georaster-layer-for-leaflet.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ const GeoRasterLayer: (new (options: GeoRasterLayerOptions) => any) & typeof L.C
369369
// pad xmax and ymin of container to tolerate ceil() and floor() in snap()
370370
container: inSimpleCRS
371371
? [
372-
extentOfLayer.xmin,
373-
extentOfLayer.ymin - 0.25 * pixelHeight,
374-
extentOfLayer.xmax + 0.25 * pixelWidth,
375-
extentOfLayer.ymax
376-
]
372+
extentOfLayer.xmin,
373+
extentOfLayer.ymin - 0.25 * pixelHeight,
374+
extentOfLayer.xmax + 0.25 * pixelWidth,
375+
extentOfLayer.ymax
376+
]
377377
: [xmin, ymin - 0.25 * pixelHeight, xmax + 0.25 * pixelWidth, ymax],
378378
debug: debugLevel >= 2,
379379
origin: inSimpleCRS ? [extentOfLayer.xmin, extentOfLayer.ymax] : [xmin, ymax],

0 commit comments

Comments
 (0)