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": {
"@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",

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

@ -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 });

@ -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(

Loading…
Cancel
Save