mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
17.40.2026 53620d22a7491e9975c9177c77964d201a85252c
build(fix): proper typescript configuration

see #937

Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
2 files modified
41 ■■■■ changed files
package.json 5 ●●●●● patch | view | raw | blame | history
tsconfig.json 36 ●●●● patch | view | raw | blame | history
package.json
@@ -77,5 +77,6 @@
      "public",
      "node_modules"
    ]
  }
}
  },
  "type": "module"
}
tsconfig.json
@@ -1,38 +1,15 @@
{
  // Visit https://aka.ms/tsconfig to read more about this file
  "compilerOptions": {
    // File Layout
    // "rootDir": "./src",
    // "outDir": "./dist",
    // Environment Settings
    // See also https://aka.ms/tsconfig/module
    "module": "nodenext",
    "target": "esnext",
    "types": [],
    // For nodejs:
    // "lib": ["esnext"],
    // "types": ["node"],
    // and npm install -D @types/node
    // Other Outputs
    "types": [
      "node"
    ],
    "sourceMap": true,
    "declaration": true,
    "declarationMap": true,
    // Stricter Typechecking Options
    "noUncheckedIndexedAccess": true,
    "exactOptionalPropertyTypes": true,
    // Style Options
    // "noImplicitReturns": true,
    // "noImplicitOverride": true,
    // "noUnusedLocals": true,
    // "noUnusedParameters": true,
    // "noFallthroughCasesInSwitch": true,
    // "noPropertyAccessFromIndexSignature": true,
    // Recommended Options
    "strict": true,
    "jsx": "react-jsx",
    "verbatimModuleSyntax": true,
@@ -40,5 +17,8 @@
    "noUncheckedSideEffectImports": true,
    "moduleDetection": "force",
    "skipLibCheck": true,
  }
}
  },
  "include": [
    "scripts/**/*",
  ],
}