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

[ADD] SFU server #1

Merged
merged 1 commit into from
Dec 5, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// Based on Odoo's .eslintrc.js
{
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:node/recommended"],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"node": true,
"browser": false,
Comment on lines +9 to +10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't node or browser differently true or false (or sometimes both at the same time) depending on the file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the overrides below are setting the env with the right values for the few files where it is not (just) node

"es2022": true
},
"overrides": [
{
"files": ["tests/utils/*.js", "tests/*.js"],
"plugins": ["jest", "import"],
"env": {
"jest": true,
"jest/globals": true
},
"extends": ["plugin:jest/recommended"]
},
{
"files": ["src/client.js"],
"env": {
"browser": true,
"node": false
}
},
{
"files": ["src/shared/*.js"],
"env": {
"browser": true,
"node": true
}
}
],
"ignorePatterns": "dist/*",
"rules": {
"prettier/prettier": ["error", {
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"printWidth": 100,
"endOfLine": "auto"
}],
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-import": "off",
"no-console": "error",
"no-undef": "error",
"no-restricted-globals": ["error", "event", "self"],
"no-const-assign": ["error"],
"no-debugger": ["error"],
"no-dupe-class-members": ["error"],
"no-dupe-keys": ["error"],
"no-dupe-args": ["error"],
"no-dupe-else-if": ["error"],
"no-unsafe-negation": ["error"],
"no-duplicate-imports": ["error"],
"valid-typeof": ["error"],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }],
"curly": ["error", "all"],
"no-restricted-syntax": ["error", "PrivateIdentifier"],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}]
}
}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules

# made with jest coverage
coverage
/bundle

# whitelist
!.eslintrc.json
!package.json
!jsconfig.json
Loading