Skip to content

Commit

Permalink
Port the source code to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jul 12, 2024
1 parent 1a8dc0b commit 93dda93
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 126 deletions.
6 changes: 5 additions & 1 deletion etc/eslint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {join} from "node:path";
import js from "@eslint/js";
import globals from "globals";
import ts from "typescript-eslint";

export default ts.config(
Expand All @@ -8,6 +9,9 @@ export default ts.config(
...ts.configs.stylisticTypeChecked,
{
languageOptions: {
globals: {
...globals.nodeBuiltin
},
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: join(import.meta.dirname, "..")
Expand Down Expand Up @@ -79,7 +83,7 @@ export default ts.config(
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-invalid-this": "error",
"no-invalid-this": "off",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
Expand Down
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import {cp, readFile, writeFile} from "node:fs/promises";
import {EOL} from "node:os";
import {env} from "node:process";
import {deleteAsync} from "del";
import {$} from "execa";
import {execa} from "execa";
import gulp from "gulp";
import pkg from "./package.json" with {type: "json"};

// Runs a command.
const $ = execa({preferLocal: true, stdio: "inherit"});

// Builds the project.
export async function build() {
await $`tsc --project src/tsconfig.json`;
Expand Down
120 changes: 0 additions & 120 deletions src/index.js

This file was deleted.

Loading

0 comments on commit 93dda93

Please sign in to comment.