@team-geospan/structuresio 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/geojson.js +1 -1
  2. package/package.json +8 -3
package/lib/geojson.js CHANGED
@@ -19,7 +19,7 @@
19
19
  * Convert a StructuresJSON Structure or StructureCollection to GeoJSON
20
20
  */
21
21
 
22
- import { isCollection } from "./helpers";
22
+ import { isCollection } from "./helpers.js";
23
23
 
24
24
  /**
25
25
  * simplifyRing converts a single surface ring and coverts it to a list
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-geospan/structuresio",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Collection of utilities for working with StructuresJSON",
5
5
  "type": "module",
6
6
  "exports": {
@@ -26,16 +26,21 @@
26
26
  },
27
27
  "extends": [
28
28
  "eslint:recommended",
29
- "plugin:prettier/recommended"
29
+ "plugin:prettier/recommended",
30
+ "plugin:import/recommended"
30
31
  ],
31
32
  "rules": {
32
- "prettier/prettier": "error"
33
+ "prettier/prettier": "error",
34
+ "import/extensions": ["error", "always", {
35
+ "js": "always"
36
+ }]
33
37
  }
34
38
  },
35
39
  "devDependencies": {
36
40
  "@vitest/coverage-v8": "^3.1.1",
37
41
  "eslint": "^8.57.0",
38
42
  "eslint-config-prettier": "^10.0.1",
43
+ "eslint-plugin-import": "^2.31.0",
39
44
  "eslint-plugin-prettier": "^5.2.3",
40
45
  "vitest": "^3.1.1"
41
46
  },