diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ae55b51..e6c978d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -22,11 +22,14 @@ jobs: - name: Install Dependencies run: npm ci --ignore-scripts + - name: Check Docs + run: npm run check-docs + - name: Check Formatting run: npm run check-formatting - - name: Check Docs - run: npm run check-docs + - name: Check Typing + run: npm run check-typing # - name: Lint # run: npm run lint diff --git a/.lintstagedrc b/.lintstagedrc deleted file mode 100644 index e79d26d..0000000 --- a/.lintstagedrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "*": "prettier --check --ignore-unknown --write", - "*.md": "remark --frail" -} diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs new file mode 100644 index 0000000..3fc68e4 --- /dev/null +++ b/lint-staged.config.mjs @@ -0,0 +1,5 @@ +export default { + '*': 'prettier --check --ignore-unknown --write', + '*.md': 'remark --frail', + '*.{ts,tsx}': () => 'tsc --project tsconfig.json', +} diff --git a/package-lock.json b/package-lock.json index 56e1faa..e19fad5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,8 @@ "@tiagoporto/prettier-config": "^1.0.0-alpha.2", "@tiagoporto/remark-config": "^1.0.0-alpha.1", "husky": "^9.1.6", - "prettier": "^3.3.3" + "prettier": "^3.3.3", + "typescript": "^5.6.3" }, "engines": { "node": ">= 20", @@ -5511,6 +5512,19 @@ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", "dev": true }, + "node_modules/typescript": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/undici-types": { "version": "6.19.8", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", diff --git a/package.json b/package.json index 1c77807..ae32f9a 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,10 @@ "prepare": "husky", "start": "", "build": "", + "checks": "npm run check-docs && npm run check-formatting && npm run check-typing", "check-docs": "remark --frail .", "check-formatting": "prettier --check --ignore-unknown \"**/*\"", + "check-typing": "tsc --project tsconfig.json", "formatting:fix": "npm run check-formatting -- --write", "lint": "", "test": "", @@ -42,6 +44,7 @@ "@tiagoporto/prettier-config": "^1.0.0-alpha.2", "@tiagoporto/remark-config": "^1.0.0-alpha.1", "husky": "^9.1.6", - "prettier": "^3.3.3" + "prettier": "^3.3.3", + "typescript": "^5.6.3" } } diff --git a/src/index.html b/src/index.html deleted file mode 100644 index 54691a9..0000000 --- a/src/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - -
- - - - - -