Skip to content

Commit

Permalink
Merge pull request #621 from derbyjs/ts-conversion-1
Browse files Browse the repository at this point in the history
 Typescript conversion
  • Loading branch information
craigbeck authored Nov 28, 2023
2 parents 7f08caf + 1d3e42a commit 603f5e6
Show file tree
Hide file tree
Showing 68 changed files with 6,641 additions and 5,548 deletions.
39 changes: 38 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"window": false,
"document": false
},
"root": true,
"rules": {
"comma-style": [
2,
Expand All @@ -33,7 +34,9 @@
"no-cond-assign": [
2,
"except-parens"
]
],
"no-unused-vars": ["off", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
},
"overrides": [
{
Expand All @@ -47,6 +50,40 @@
{
"files": ["test/**/*.js"],
"env": {"mocha": true, "node": true}
},
{
"files": ["src/**/*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"rules": {
"@typescript-eslint/no-explicit-any": ["warn", { "ignoreRestArgs": false }],
"import/no-unresolved": "error",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
["sibling", "parent"],
"index",
"unknown"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
strategy:
matrix:
node:
- 14
- 16
- 18
- 20
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.swp
node_modules
.vscode
dist/
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

Loading

0 comments on commit 603f5e6

Please sign in to comment.