Skip to content

Commit

Permalink
Generalize prettifier targets
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 7, 2024
1 parent 2a42930 commit b96e0fe
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 22 deletions.
8 changes: 4 additions & 4 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// docs/.vitepress/theme/index.js or index.ts
import DefaultTheme from 'vitepress/theme'
import './tailwind.css' // Ensure this file exists and includes your Tailwind imports
import DefaultTheme from "vitepress/theme";
import "./tailwind.css"; // Ensure this file exists and includes your Tailwind imports

export default {
...DefaultTheme,
}
...DefaultTheme,
};
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
@tailwind utilities;

.VPNavBarTitle a span {
color: #E30A17;
color: #e30a17;
}

body {
@apply font-sans; /* Apply the default sans font globally */
}
}
13 changes: 6 additions & 7 deletions docs/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ["./content/*.md"],
theme: {
extend: {},
},
plugins: [],
}

content: ["./content/*.md"],
theme: {
extend: {},
},
plugins: [],
};
4 changes: 2 additions & 2 deletions lib/galaxy-charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ export { useColumnsStore } from "@/store/columnsStore";

export { GalaxyApi } from "@/api/client";

import GalaxyCharts from '@/components/GalaxyCharts.vue';
import GalaxyCharts from "@/components/GalaxyCharts.vue";

export { GalaxyCharts };
export { GalaxyCharts };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist",
"postbuild": "npm run build:types",
"preview": "vite preview",
"prettier": "prettier --write 'package.json' '*.js' 'src/**/*.js' 'src/**/*.ts' 'src/**/*.vue'",
"prettier": "prettier --config ./prettier.config.js --write 'package.json' '**/*.{js,ts,css,vue}'",
"test": "vitest"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions packages/xml-parser/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleFileExtensions: ['ts', 'js', 'json', 'node'], // Ensure TypeScript files are recognized
preset: "ts-jest",
testEnvironment: "node",
moduleFileExtensions: ["ts", "js", "json", "node"], // Ensure TypeScript files are recognized
transform: {
'^.+\\.ts$': 'ts-jest', // Use ts-jest for TypeScript files
"^.+\\.ts$": "ts-jest", // Use ts-jest for TypeScript files
},
moduleNameMapper: {
'^(.*)\\.ts$': '$1', // Resolve TypeScript imports without .ts extensions
"^(.*)\\.ts$": "$1", // Resolve TypeScript imports without .ts extensions
},
};
};

0 comments on commit b96e0fe

Please sign in to comment.