mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Modernize and fix website build tooling deps and utilize JS type checking (#3348)
* Modernize and fix website build tooling deps and utilize JS type checking * Upgrade to the latest Node.js
This commit is contained in:
45
website/tsconfig.json
Normal file
45
website/tsconfig.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"noEmit": true,
|
||||
"importHelpers": true,
|
||||
"experimentalDecorators": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"sourceMap": true,
|
||||
"types": ["node"],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"/*": ["./*"]
|
||||
},
|
||||
"lib": ["ESNext", "DOM", "DOM.Iterable", "ScriptHost"]
|
||||
},
|
||||
"include": [
|
||||
// TypeScript and JSDoc-typed JavaScript files
|
||||
"**/*.ts",
|
||||
"**/*.js",
|
||||
// Also include build scripts, which aren't included above because of the dot-prefixed directory
|
||||
".build-scripts/**/*.ts",
|
||||
".build-scripts/**/*.js"
|
||||
],
|
||||
"exclude": [
|
||||
// Ignore generated directories
|
||||
"node_modules",
|
||||
"public",
|
||||
// Ignore vendored code
|
||||
"static/*.js"
|
||||
],
|
||||
"ts-node": {
|
||||
"compilerOptions": {
|
||||
"useDefineForClassFields": false,
|
||||
"noImplicitOverride": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user