diff --git a/js/package.json b/js/package.json index e549c162..e8744994 100644 --- a/js/package.json +++ b/js/package.json @@ -5,10 +5,10 @@ "devDependencies": { "@rdfjs/data-model": "^2.0.1", "mocha": "^10.0.0", - "rome": "^11.0.0" + "rome": "^12.0.0" }, "scripts": { - "fmt": "rome format . --write && rome check . --apply-suggested", + "fmt": "rome format . --write && rome check . --apply-unsafe", "test": "rome ci . && wasm-pack build --debug --target nodejs && mocha", "build": "rm -rf pkg && wasm-pack build --release --target web --out-name web && mv pkg pkg-web && wasm-pack build --release --target nodejs --out-name node && mv pkg pkg-node && node build_package.js && rm -r pkg-web && rm -r pkg-node", "release": "npm run build && npm publish ./pkg", diff --git a/js/rome.json b/js/rome.json index d92e4ab6..272422a5 100644 --- a/js/rome.json +++ b/js/rome.json @@ -1,10 +1,13 @@ { - "formatter": { - "indentStyle": "space", - "indentSize": 4, - "lineWidth": 100 - }, - "linter": { - "ignore": ["pkg"] - } -} \ No newline at end of file + "formatter": { + "indentStyle": "space", + "indentSize": 4, + "lineWidth": 100 + }, + "linter": { + "ignore": ["pkg"] + }, + "organizeImports": { + "enabled": true + } +} diff --git a/js/test/model.mjs b/js/test/model.mjs index e001843b..37f83199 100644 --- a/js/test/model.mjs +++ b/js/test/model.mjs @@ -1,8 +1,8 @@ /* global describe, it */ +import runTests from "../node_modules/@rdfjs/data-model/test/index.js"; import oxigraph from "../pkg/oxigraph.js"; import assert from "assert"; -import runTests from "../node_modules/@rdfjs/data-model/test/index.js"; runTests({ factory: oxigraph }); diff --git a/js/test/store.mjs b/js/test/store.mjs index 55a53a66..2317c022 100644 --- a/js/test/store.mjs +++ b/js/test/store.mjs @@ -1,8 +1,8 @@ /* global describe, it */ import { Store } from "../pkg/oxigraph.js"; -import assert from "assert"; import dataModel from "@rdfjs/data-model"; +import assert from "assert"; const ex = dataModel.namedNode("http://example.com"); const triple = dataModel.quad(