diff --git a/.gitignore b/.gitignore index 3f7ea24..f302b17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules *.js *.tgz +*.tsbuildinfo diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs new file mode 100644 index 0000000..6433eb8 --- /dev/null +++ b/lint-staged.config.mjs @@ -0,0 +1,4 @@ +export default { + '*.(json|md|ts)': 'prettier --write', + '*.ts': ['eslint', () => 'tsc'], +} diff --git a/package.json b/package.json index 91b98f1..28bd809 100644 --- a/package.json +++ b/package.json @@ -85,9 +85,5 @@ "parserOptions": { "sourceType": "module" } - }, - "lint-staged": { - "*.(json|md|ts)": "prettier --write", - "*.ts": "eslint" } } diff --git a/tsconfig.json b/tsconfig.json index cad99b7..e6bca17 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,8 @@ { "extends": "@tsconfig/node14/tsconfig.json", "compilerOptions": { + "incremental": true, + "noEmit": true, "resolveJsonModule": true, "module": "esnext", "target": "es2022"