Skip to content

Commit

Permalink
fix TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
binarykitchen committed Oct 17, 2024
1 parent 66a1daa commit ba0f5a0
Show file tree
Hide file tree
Showing 67 changed files with 6,959 additions and 6,959 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ jobs:
# - name: 🔎 Run linter
# run: npm run lint

# TODO Enable once implemented
# - name: 🔎 Check types
# run: npm run types-check
- name: 🔎 Check types
run: npm run types:check

- name: 🔨 Build
run: npm run build:prod
Expand Down
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"eslint.useFlatConfig": true,
"eslint.options": {
"overrideConfigFile": "./.eslintrc.js"
"overrideConfigFile": "./eslint.config.mjs"
},
"prettier.configPath": "./prettier.config.cjs",
"stylelint.validate": ["stylus"],
Expand All @@ -23,16 +24,20 @@
"filesize",
"getusermedia",
"hyperscript",
"ICPU",
"initialise",
"keymirror",
"KHTML",
"Mbit",
"mofo",
"MSIE",
"Ooops",
"packagejson",
"Pivac",
"playsinline",
"plusplus",
"preend",
"prefinish",
"rsbuild",
"rubberband",
"Sadler",
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ Looking at the examples in the `/src/stories` folder should give you some ideas
- <a href="#replay">`videomailClient.replay()`</a>
- <a href="#startOver">`videomailClient.startOver()`</a>
- <a href="#get">`videomailClient.get()`</a>
- <a href="#canRecord">`videomailClient.canRecord()`</a>
- <a href="#unload">`videomailClient.unload()`</a>
- <a href="#hide">`videomailClient.hide()`</a>
- <a href="#isDirty">`videomailClient.isDirty()`</a>
Expand Down Expand Up @@ -155,12 +154,6 @@ Queries a videomail (JSON) by a given alias for further queries or processing. T
1. The form submission to your own server has it under `videomail_alias` in the form body.
2. Get the alias from the `submitted` event and use it further within your code.

<a name="canRecord"></a>

### videomailClient.canRecord()

An utility function which returns true if the current browser is capable of webcam recording. It returns false for <a href="#compatibility">incompatible</a> browsers.

<a name="unload"></a>

### videomailClient.unload()
Expand Down
7 changes: 3 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import tseslint from "typescript-eslint";
// Good reference: https://github.com/dustinspecker/awesome-eslint#readme

export default tseslint.config(
// TODO change to .all later
eslint.configs.recommended,
eslint.configs.all,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
// ...storybook.configs["flat/recommended"],
Expand All @@ -26,7 +25,7 @@ export default tseslint.config(
pluginPromise.configs["flat/recommended"],
depend.configs["flat/recommended"],
{
ignores: [".github", ".vscode", "**/node_modules/", ".git", "test"],
ignores: [".github", ".vscode", "**/node_modules/", ".git", "test", "dist"],
name: "Ignore files",
},
{
Expand Down Expand Up @@ -109,6 +108,7 @@ export default tseslint.config(
"max-lines-per-function": "off",
"max-params": "off",
"max-statements": "off",
"new-cap": "off",
"no-alert": "off",
"no-console": "off",
"no-debugger": "warn",
Expand All @@ -124,7 +124,6 @@ export default tseslint.config(
"no-shadow": "off",
"no-ternary": "off",
"no-undefined": "off",

"no-use-before-define": "off",
"no-void": "off",
"no-warning-comments": "off",
Expand Down
3 changes: 2 additions & 1 deletion etc/rsbuild/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default defineConfig({
pluginStylus(),
pluginNodePolyfill(),
// Inspired by https://github.com/web-infra-dev/rslib/blob/main/packages/core/src/config.ts#L742
// It's still in early stages
// It's still in early stages.
// Once fixed, get inspired by https://github.com/sindresorhus/yocto-spinner/blob/main/package.json#L14
// pluginDts({}),
],
tools: {
Expand Down
Loading

0 comments on commit ba0f5a0

Please sign in to comment.