Skip to content

Commit 6791483

Browse files
authored
Modernize tooling (#132)
1 parent 561e147 commit 6791483

15 files changed

+1136
-996
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ deps.txt
55
emsdk
66
*.wasm
77
*.tgz
8-
/*.mjs
9-
!/eslint.config.mjs

eslint.config.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2-
import tsParser from "@typescript-eslint/parser";
31
import path from "node:path";
42
import { fileURLToPath } from "node:url";
5-
import js from "@eslint/js";
63
import { FlatCompat } from "@eslint/eslintrc";
4+
import js from "@eslint/js";
5+
import tsParser from "@typescript-eslint/parser";
6+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
77

8-
const __filename = fileURLToPath(import.meta.url);
9-
const __dirname = path.dirname(__filename);
108
const compat = new FlatCompat({
11-
baseDirectory: __dirname,
9+
baseDirectory: path.dirname(fileURLToPath(import.meta.url)),
1210
recommendedConfig: js.configs.recommended,
1311
allConfig: js.configs.all,
1412
});
File renamed without changes.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
const path = require("path");
1+
import process from 'node:process';
22

3-
const PAGE_DIR = path.join("tests", "browser");
43
const PORT = 8080;
54

6-
module.exports = {
5+
export default {
76
launch: {
87
headless: process.env.TEST_HEADLESS !== "false",
98
args: ['--no-sandbox', '--disable-setuid-sandbox'],
109
},
1110
server: {
12-
command: `anywhere -s -p ${PORT} -d ${PAGE_DIR}`,
11+
command: `anywhere -s -p ${PORT} -d tests/browser`,
1312
port: PORT,
1413
},
1514
};

0 commit comments

Comments
 (0)