Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to typescript #253

Merged
merged 10 commits into from Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 17 additions & 18 deletions .eslintrc
@@ -1,39 +1,38 @@
{
"extends": ["airbnb-base", "plugin:jasmine/recommended", "prettier"],
"plugins": ["jasmine", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:jasmine/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["jasmine", "@typescript-eslint", "prettier"],
"ignorePatterns": [
"dist/**/*"
],
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"semi": true,
"parser": "babel"
"parser": "typescript"
}
],
"jasmine/no-spec-dupes": ["warn", "branch"],
"jasmine/no-suite-dupes": ["warn", "branch"],

"valid-jsdoc": [
"warn",
{
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false,
"prefer": {
"returns": "return",
"params": "param"
}
}
],
"complexity": ["warn", 7],
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"object-shorthand": ["error", "always", { "avoidQuotes": true }],
"comma-dangle": ["warn", "never"],
"consistent-return": "off",
"no-restricted-properties":"off"

"no-restricted-properties":"off",
"no-unused-vars": "off",
}
}
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,6 +1,6 @@
node_modules
npm-debug.log
docs
lib
dist
.eslintcache
.npmrc
.npmrc
7 changes: 7 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,7 @@
{
"[typescript]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
}
mindhells marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -81,5 +81,5 @@ npm test
2. Create your feature branch: `git checkout -b feature/my-new-feature`
3. Commit your changes: `git commit -am 'Added some feature'`
4. Check the build: `npm run build`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
5. Push to the branch: `git push origin my-new-feature`
6. Submit a pull request :D
12 changes: 0 additions & 12 deletions babel.config.cjs.json

This file was deleted.

13 changes: 0 additions & 13 deletions babel.config.json

This file was deleted.

270 changes: 0 additions & 270 deletions es/index.mjs

This file was deleted.