Skip to content

Commit

Permalink
convert to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 5, 2023
1 parent 66e51f9 commit 53ec931
Show file tree
Hide file tree
Showing 43 changed files with 18,128 additions and 19,008 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
'node-option': ['loader=esmock'],
'extension': ['js', 'ts'],
};
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prettier configuration

printWidth: 80
printWidth: 120
singleQuote: true
tabWidth: 2
useTabs: false
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"mochaExplorer.logpanel": true,
"mochaExplorer.files": ["test/*.{js,cjs,mjs,ts,cts,mts}"],
"mochaExplorer.ui": "tdd",
"mochaExplorer.configFile": ".mocharc.cjs",
"mochaExplorer.nodeArgv": ["--loader=@node-loaders/auto"]
}
13 changes: 11 additions & 2 deletions .xo-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,29 @@
"envs": ["es2020", "node", "mocha"],
"prettier": true,
"ignores": ["test/fixtures"],
"printWidth": 120,
"parserOptions": {
"project": "./tsconfig.spec.json"
},
"rules": {
"no-await-in-loop": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"unicorn/prefer-spread": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/no-this-assignment": "off"
"unicorn/no-this-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off"
},
"overrides": [
{
"files": "test/*",
"rules": {
"max-nested-callbacks": "off"
"max-nested-callbacks": "off",
"@typescript-eslint/naming-convention": "off"
}
}
]
Expand Down
Loading

0 comments on commit 53ec931

Please sign in to comment.