JS: Upgrades Rome formatter

pull/497/head
Tpt 2 years ago committed by Thomas Tanon
parent 8f3af5a7fc
commit 05fbb0e071
  1. 4
      js/package.json
  2. 21
      js/rome.json
  3. 2
      js/test/model.mjs
  4. 2
      js/test/store.mjs

@ -5,10 +5,10 @@
"devDependencies": { "devDependencies": {
"@rdfjs/data-model": "^2.0.1", "@rdfjs/data-model": "^2.0.1",
"mocha": "^10.0.0", "mocha": "^10.0.0",
"rome": "^11.0.0" "rome": "^12.0.0"
}, },
"scripts": { "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", "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", "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", "release": "npm run build && npm publish ./pkg",

@ -1,10 +1,13 @@
{ {
"formatter": { "formatter": {
"indentStyle": "space", "indentStyle": "space",
"indentSize": 4, "indentSize": 4,
"lineWidth": 100 "lineWidth": 100
}, },
"linter": { "linter": {
"ignore": ["pkg"] "ignore": ["pkg"]
} },
} "organizeImports": {
"enabled": true
}
}

@ -1,8 +1,8 @@
/* global describe, it */ /* global describe, it */
import runTests from "../node_modules/@rdfjs/data-model/test/index.js";
import oxigraph from "../pkg/oxigraph.js"; import oxigraph from "../pkg/oxigraph.js";
import assert from "assert"; import assert from "assert";
import runTests from "../node_modules/@rdfjs/data-model/test/index.js";
runTests({ factory: oxigraph }); runTests({ factory: oxigraph });

@ -1,8 +1,8 @@
/* global describe, it */ /* global describe, it */
import { Store } from "../pkg/oxigraph.js"; import { Store } from "../pkg/oxigraph.js";
import assert from "assert";
import dataModel from "@rdfjs/data-model"; import dataModel from "@rdfjs/data-model";
import assert from "assert";
const ex = dataModel.namedNode("http://example.com"); const ex = dataModel.namedNode("http://example.com");
const triple = dataModel.quad( const triple = dataModel.quad(

Loading…
Cancel
Save