-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into basic-scene
- Loading branch information
Showing
339 changed files
with
26,215 additions
and
26,732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"extends": ["semistandard", "standard-jsx"], | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"rules": { | ||
/* These rules are incompatible with ES5. */ | ||
"no-var": "off", | ||
"object-shorthand": "off", | ||
"prefer-const": "off", | ||
"prefer-regex-literals": "off", | ||
|
||
/* These rules are compatible with ES5 | ||
However they involve non-trivial code changes | ||
Therefore need more careful review before adopting. */ | ||
"array-callback-return": "off", | ||
"no-mixed-operators": "off", | ||
"no-unreachable-loop": "off", | ||
"no-useless-return": "off", | ||
"prefer-promise-reject-errors": "off", | ||
|
||
/* These rules are compatible with ES5 | ||
However they involve large-scale changes to the codebase, so | ||
careful co-ordination is needed in adopting the rule to avoid | ||
creating merge issues for other PRs. */ | ||
"dot-notation": "off", | ||
"indent": "off", | ||
"no-multi-spaces": "off", | ||
"no-unused-vars": "off", | ||
"object-curly-spacing": "off", | ||
"quote-props": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
/* Code within /src is restricted to using ES5 JavaScript | ||
The exception is that ES6 classes are used sparingly - see exceptions below. */ | ||
"files": ["./src/**/*.js"], | ||
"parserOptions": { | ||
"sourceType": "script", | ||
"ecmaVersion": 5 | ||
} | ||
}, | ||
{ | ||
/* These modules use ES6 classes, and so are parsed as ES6 to avoid errors. */ | ||
"files": ["./src/core/**/a-*.js"], | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
} | ||
}, | ||
{ | ||
/* This module use ES6 classes, and so is parsed as ES6 to avoid errors. */ | ||
"files": ["./src/extras/primitives/primitives.js"], | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
} | ||
}, | ||
{ | ||
/* This module uses ES6 */ | ||
"files": ["./src/components/scene/real-world-meshing.js"], | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
} | ||
}, | ||
{ | ||
/* This module uses ES8 async / await due to WebXR Anchor Module integration */ | ||
"files": ["./src/components/anchored.js"], | ||
"parserOptions": { | ||
"ecmaVersion": 8 | ||
} | ||
}, | ||
{ | ||
/* This module uses ES6 for…of loops, and so is parsed as ES6 to avoid errors. */ | ||
"files": ["./src/components/hand-tracking-controls.js"], | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
} | ||
}, | ||
{ | ||
/* This code is external, and the ES5 restrictions do not apply to it. */ | ||
"files": ["./src/lib/**/*.js"], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 12 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
schedule: | ||
- cron: '41 13 * * 6' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze (${{ matrix.language }}) | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 360 | ||
permissions: | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- language: javascript-typescript | ||
build-mode: none | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
queries: +github/codeql/javascript/ql/src/experimental/Security/CWE-094/UntrustedCheckout.ql@main | ||
config-file: ./codeql-config.yml | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.