Skip to content

first pass at typescript conversion with a few tests #54

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

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# http://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
max_line_length = 80
trim_trailing_whitespace = true

[*.md]
max_line_length = 120
trim_trailing_whitespace = false

[COMMIT_EDITMSG]
max_line_length = 80
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The build artifacts of the lib-jiti-meet project.
lib/

# ESLint will by default ignore its own configuration file. However, there does
# not seem to be a reason why we will want to risk being inconsistent with our
# remaining JavaScript source code.
!.eslintrc.js
5 changes: 0 additions & 5 deletions .eslintrc.cjs

This file was deleted.

30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"requireConfigFile": false
},
"extends": [
"@jitsi/eslint-config",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"space-in-parens": "off",
"camelcase": "off",
"computed-property-spacing": "off",
"padding-line-between-statements": "off",
"template-curly-spacing": "off",
"operator-linebreak": "off",
"import/order": "off",
"no-extra-parens": "off",
"no-shadow": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"no-extra-bind": "off",
"no-param-reassign": "off",
"max-len": "off",
"indent": "off"
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
text eol=lf
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
node_modules/
npm-debug.log
yarn-error.log
lib
.vscode
27 changes: 0 additions & 27 deletions avatar/index.js

This file was deleted.

123 changes: 0 additions & 123 deletions browser-capabilities/BrowserCapabilities.js

This file was deleted.

3 changes: 0 additions & 3 deletions browser-detection/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions index.js

This file was deleted.

20 changes: 20 additions & 0 deletions jasmine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"spec_dir": "src",
"spec_files": [
"**/*.spec.ts"
],
"reporters": [
{
"name": "jasmine-spec-reporter#SpecReporter",
"options": {
"displayStacktrace": "all"
}
}
],
"env": {
"failSpecWithNoExpectations": false,
"stopSpecOnExpectationFailure": false,
"stopOnSpecFailure": false,
"random": false
}
}
4 changes: 4 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"preset": "ts-jest",
"testEnvironment": "jsdom"
}
Loading