-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bad01b
commit 66cd7bf
Showing
7 changed files
with
47 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import fs from 'node:fs/promises'; | ||
import fs from "node:fs/promises"; | ||
|
||
import postcssPlugin from '@jgarber/eleventy-plugin-postcss'; | ||
import postcssPlugin from "@jgarber/eleventy-plugin-postcss"; | ||
|
||
export default async function(eleventyConfig) { | ||
Check warning on line 5 in eleventy.config.js
|
||
// Global Data | ||
eleventyConfig.addGlobalData('app', JSON.parse(await fs.readFile('./src/manifest.webmanifest.json'))); | ||
eleventyConfig.addGlobalData("app", JSON.parse(await fs.readFile("./src/manifest.webmanifest.json"))); | ||
|
||
// Passthrough File Copy | ||
eleventyConfig | ||
.addPassthroughCopy('./src/_headers') | ||
.addPassthroughCopy('./src/*.{ico,txt}') | ||
.addPassthroughCopy('./src/assets/images') | ||
.addPassthroughCopy("./src/_headers") | ||
.addPassthroughCopy("./src/*.{ico,txt}") | ||
.addPassthroughCopy("./src/assets/images") | ||
.addPassthroughCopy({ | ||
'./src/manifest.webmanifest.json': 'manifest.webmanifest' | ||
"./src/manifest.webmanifest.json": "manifest.webmanifest", | ||
}); | ||
|
||
// Plugins | ||
eleventyConfig.addPlugin(postcssPlugin); | ||
|
||
return { | ||
dir: { | ||
input: './src' | ||
} | ||
input: "./src", | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import config from '@jgarber/eslint-config'; | ||
import config from "@jgarber/eslint-config"; | ||
|
||
export default [ | ||
...config, | ||
{ | ||
files: ['functions/**/*.js'], | ||
files: ["functions/**/*.js"], | ||
rules: { | ||
'jsdoc/no-undefined-types': ['error', { definedTypes: ['EventContext'] }] | ||
} | ||
"jsdoc/no-undefined-types": ["error", { definedTypes: ["EventContext"] }], | ||
}, | ||
}, | ||
{ | ||
files: ['google/**/*.js'], | ||
files: ["google/**/*.js"], | ||
languageOptions: { | ||
globals: { | ||
require: 'readonly' | ||
require: "readonly", | ||
}, | ||
sourceType: 'commonjs' | ||
} | ||
} | ||
sourceType: "commonjs", | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import cssnano from 'cssnano'; | ||
import postcssNesting from 'postcss-nesting'; | ||
import cssnano from "cssnano"; | ||
import postcssNesting from "postcss-nesting"; | ||
|
||
export default { | ||
plugins: [postcssNesting, cssnano] | ||
plugins: [postcssNesting, cssnano], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default { | ||
extends: '@jgarber/stylelint-config' | ||
extends: "@jgarber/stylelint-config", | ||
}; |