Skip to content

Commit

Permalink
feat: converting to typescript
Browse files Browse the repository at this point in the history
Also, adding eslint for linting.
  • Loading branch information
tzuge committed Feb 3, 2025
1 parent 8e50bce commit 48a171e
Show file tree
Hide file tree
Showing 25 changed files with 9,155 additions and 988 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: |
yarn lint
yarn build
- name: Semantic release
shell: bash
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.idea/
/node_modules/
/dist/
22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
{
rules: {
// note you must disable the base rule
// as it can report incorrect errors
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn", // or "error"
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
}
);
6 changes: 0 additions & 6 deletions index.js

This file was deleted.

145 changes: 0 additions & 145 deletions lib/git.js

This file was deleted.

83 changes: 0 additions & 83 deletions lib/maven.js

This file was deleted.

17 changes: 0 additions & 17 deletions lib/prepare.js

This file was deleted.

50 changes: 0 additions & 50 deletions lib/publish.js

This file was deleted.

Loading

0 comments on commit 48a171e

Please sign in to comment.