Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Aug 13, 2024
1 parent b85fe3f commit 6136721
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 25 deletions.
1 change: 1 addition & 0 deletions packages/melonjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"typedoc": "^0.26.3",
"typedoc-plugin-missing-exports": "^3.0.0",
"typescript": "^5.5.3",
"vite": "5.4",
"vite-plugin-glsl": "workspace:vite-plugin-glsl"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/melonjs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 28 additions & 24 deletions packages/melonjs/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />
import { defineConfig } from "vitest/config";
import glsl from "vite-plugin-glsl";
import { default as glsl } from "vite-plugin-glsl";
import { PackageJson } from "type-fest";

const packageJson = (
Expand All @@ -13,28 +15,30 @@ if (!version) {
throw new Error("Version missing from package.json");
}

export default defineConfig({
test: {
include: ["**/*.{test,spec}.[jt]s?(x)"],
browser: {
enabled: true,
name: "chromium",
provider: "playwright",
headless: true,
screenshotFailures: false,
},
},
publicDir: "./tests/public",
plugins: [
glsl(),
{
name: "transform-file",
transform(src) {
return {
code: src.replace(/=\s__VERSION__/g, `= "${version}"`),
map: null,
};
export default defineConfig(() =>
defineConfig({
test: {
include: ["**/*.{test,spec}.[jt]s?(x)"],
browser: {
enabled: true,
name: "chromium",
provider: "playwright",
headless: true,
screenshotFailures: false,
},
},
],
});
publicDir: "./tests/public",
plugins: [
glsl() as Plugin,
{
name: "transform-file",
transform(src) {
return {
code: src.replace(/=\s__VERSION__/g, `= "${version}"`),
map: null,
};
},
},
],
}),
);
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6136721

Please sign in to comment.