Skip to content

Commit

Permalink
Lint (#5954)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 9, 2022
1 parent 653552a commit 9f03cff
Show file tree
Hide file tree
Showing 28 changed files with 493 additions and 270 deletions.
2 changes: 1 addition & 1 deletion .xo-config.json
Expand Up @@ -24,7 +24,7 @@
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
Expand Down
6 changes: 4 additions & 2 deletions build/readme.loader.cts
@@ -1,8 +1,10 @@
// Can't use modules because this is a bizarropackscript world
module.exports = async function ReadmeLoader () {
const {getImportedFeatures, getFeaturesMeta} = await import("./readme-parser.js");
async function ReadmeLoader() {
const {getImportedFeatures, getFeaturesMeta} = await import('./readme-parser.js');
return `
export const importedFeatures = ${JSON.stringify(getImportedFeatures())};
export const featuresMeta = ${JSON.stringify(getFeaturesMeta())};
`;
}

module.exports = ReadmeLoader;

0 comments on commit 9f03cff

Please sign in to comment.