Skip to content

Commit

Permalink
chore: enable objectWrap in prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Feb 10, 2025
1 parent d5e965b commit 4325f95
Show file tree
Hide file tree
Showing 21 changed files with 110 additions and 443 deletions.
23 changes: 5 additions & 18 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"configMigration": true,
"dependencyDashboard": false,
"docker-compose": {
"enabled": true
},
"docker-compose": { "enabled": true },
"extends": ["config:recommended"],
"lockFileMaintenance": {
"enabled": true,
"schedule": ["at any time"]
},
"lockFileMaintenance": { "enabled": true, "schedule": ["at any time"] },
"packageRules": [
{
"matchUpdateTypes": ["minor"],
Expand All @@ -25,20 +20,12 @@
],
"automerge": true
},
{
"matchDepTypes": ["devDependencies"],
"automerge": true
},
{
"matchManagers": ["pre-commit"],
"automerge": true
}
{ "matchDepTypes": ["devDependencies"], "automerge": true },
{ "matchManagers": ["pre-commit"], "automerge": true }
],
"prConcurrentLimit": 0,
"prHourlyLimit": 0,
"pre-commit": {
"enabled": true
},
"pre-commit": { "enabled": true },
"rollbackPrs": true,
"semanticCommits": "enabled",
"schedule": ["at any time"]
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ repos:
hooks:
- id: prettier
args:
- --objectWrap=collapse
- --no-config
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.9.5
Expand Down
41 changes: 8 additions & 33 deletions docs/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,12 @@ async function imageShortcode(
let metadata = await Image(src, {
widths: [24, 300, 400, 500, 600, 800, 1200],
formats: ["webp", "png"],
sharpWebpOptions: {
options: {
quality: 70,
},
},
sharpWebpOptions: { options: { quality: 70 } },
outputDir: "./_site/static/img/",
urlPath: "/static/img/",
});

let imageAttributes = {
alt,
sizes,
loading: loading,
decoding: decoding,
};
let imageAttributes = { alt, sizes, loading: loading, decoding: decoding };

if (type == "boxed") {
return (
Expand Down Expand Up @@ -105,10 +96,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(schema);
eleventyConfig.addPlugin(rollupper, {
rollup: {
output: {
format: "umd",
dir: "_site/static/js",
},
output: { format: "umd", dir: "_site/static/js" },
plugins: [nodeResolve()],
},
});
Expand All @@ -121,12 +109,7 @@ module.exports = function (eleventyConfig) {
github_edit_text: (page) => {
i18n_options = Object.assign(
{},
{
translations,
fallbackLocales: {
"*": "en-US",
},
},
{ translations, fallbackLocales: { "*": "en-US" } },
);

return `<span class="icon-text"><span class="icon mr-1"><i class="fas fa-pencil"></i></span><span>${i18n_func(
Expand Down Expand Up @@ -195,24 +178,18 @@ module.exports = function (eleventyConfig) {
});

// copy images
eleventyConfig.addPassthroughCopy({
"src/static/img": "static/img",
});
eleventyConfig.addPassthroughCopy({ "src/static/img": "static/img" });

// copy robots
eleventyConfig.addPassthroughCopy({
"src/robots.txt": "robots.txt",
});
eleventyConfig.addPassthroughCopy({ "src/robots.txt": "robots.txt" });

// copy favicon
eleventyConfig.addPassthroughCopy({
"src/static/img/favicon.ico": "favicon.ico",
});

// copy wheels
eleventyConfig.addPassthroughCopy({
"src/static/py": "static/py",
});
eleventyConfig.addPassthroughCopy({ "src/static/py": "static/py" });

// copy python
eleventyConfig.addPassthroughCopy({
Expand Down Expand Up @@ -339,9 +316,7 @@ module.exports = function (eleventyConfig) {

eleventyConfig.addPlugin(i18n, {
translations,
fallbackLocales: {
"*": "en-US",
},
fallbackLocales: { "*": "en-US" },
});

eleventyConfig.addFilter("baseUrl", (text) => {
Expand Down
Loading

0 comments on commit 4325f95

Please sign in to comment.