Skip to content

Commit

Permalink
Fix the TypeScript settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Apr 27, 2024
1 parent 57b5524 commit 1e5857d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion etc/typedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export default {
name: "Akismet for JS",
out: "../docs/api",
readme: "none",
tsconfig: "../src/jsconfig.json"
tsconfig: "../src/tsconfig.json"
};
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import pkg from "./package.json" with {type: "json"};

// Builds the project.
export function build() {
return $`tsc --project src/jsconfig.json`;
return $`tsc --project src/tsconfig.json`;
}

// Deletes all generated files.
Expand All @@ -23,7 +23,7 @@ export async function doc() {

// Performs the static analysis of source code.
export async function lint() {
await $`tsc --project jsconfig.json`;
await $`tsc --project tsconfig.json`;
return $`eslint --config=etc/eslint.config.js gulpfile.js etc example src test`;
}

Expand Down
4 changes: 2 additions & 2 deletions src/jsconfig.json → src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../jsconfig.json",
"include": ["index.js"],
"extends": "../tsconfig.json",
"include": ["**/*.js"],
"compilerOptions": {
"declaration": true,
"declarationMap": true,
Expand Down
2 changes: 2 additions & 0 deletions jsconfig.json → tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"exclude": ["etc/eslint.config.js"],
"include": ["*.js", "etc/*.js", "example/*.js", "src/**/*.js", "test/**/*.js"],
"compilerOptions": {
"allowJs": true,
"baseUrl": ".",
"checkJs": true,
"esModuleInterop": true,
"isolatedModules": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noEmit": true,
"noImplicitOverride": true,
"resolveJsonModule": true,
"strict": true,
Expand Down

0 comments on commit 1e5857d

Please sign in to comment.