-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Former-commit-id: c703024bdfa9cecb65ec81133f87fad91f5ac5bf
- Loading branch information
Showing
35 changed files
with
61,543 additions
and
17,237 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,93 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2020, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
// Limit TypeScript linting to TS/TSX | ||
// https://github.com/typescript-eslint/typescript-eslint/issues/1928 | ||
"overrides": [ | ||
{ | ||
"files": ["src/**/*.{ts,tsx}"], | ||
"extends": [ | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking" | ||
// "plugin:eslint-plugin-tsdoc/recommended" | ||
], | ||
"rules": { | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], | ||
// All the @typescript-eslint/* rules here... | ||
"@typescript-eslint/no-unnecessary-type-arguments": "error", | ||
"@typescript-eslint/prefer-nullish-coalescing": "error", | ||
"@typescript-eslint/prefer-optional-chain": "error", | ||
"tsdoc/syntax": "error" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"tsconfigRootDir": "./", | ||
"project": "./tsconfig.json" | ||
} | ||
} | ||
], | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"plugins": [ | ||
// "react" | ||
// "prettier", // add this if we want to use prettier error reporting | ||
"jest", | ||
// "@typescript-eslint" | ||
"eslint-plugin-tsdoc", | ||
"jsdoc" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript", | ||
"plugin:jest/recommended", | ||
// "plugin:jsdoc/recommended", | ||
"prettier" | ||
], | ||
"settings": { | ||
"react": { | ||
"pragma": "h", | ||
"createClass": "" | ||
} | ||
}, | ||
"rules": { | ||
"block-spacing": "error", | ||
// "capitalized-comments": ["error", "always"], | ||
// ... All other rules (not @typescript-eslint/*) | ||
// "react/no-adjacent-inline-elements": "error", | ||
// "react/react-in-jsx-scope": "error", | ||
// "react/self-closing-comp": "error", | ||
"import/no-unresolved": "off", | ||
// should be error, no? | ||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], | ||
"no-unused-vars": "off", | ||
"no-empty": ["error", { "allowEmptyCatch": true }], | ||
"space-infix-ops": "error", | ||
"template-curly-spacing": "error", | ||
"template-tag-spacing": "error", | ||
"jest/no-standalone-expect": ["error", { "additionalTestBlockFunctions": ["afterEach"] }], | ||
"jest/valid-expect": "off", | ||
"tsdoc/syntax": "warn", | ||
"jsdoc/check-param-names": "error", | ||
"jsdoc/check-property-names": "error", | ||
"jsdoc/require-param": "error", | ||
"jsdoc/require-param-name": "error", | ||
"jsdoc/require-returns": "error" | ||
// "prettier/prettier": "error" // add this if we want to use prettier error reporting. | ||
} | ||
} |
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 |
---|---|---|
@@ -1,216 +1,20 @@ | ||
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) | ||
[Bb]in/ | ||
|
||
# mstest test results | ||
TestResults | ||
|
||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
*.map | ||
!dist/**/*.map | ||
|
||
# javascript files | ||
src/**/*.js | ||
!src/webpack.config.js | ||
src/**/*.d.ts | ||
!src/LibDeclarations/*.d.ts | ||
loaders/src/**/*.js | ||
materialsLibrary/src/**/*.js | ||
proceduralTexturesLibrary/src/**/*.js | ||
postProcessLibrary/src/**/*.js | ||
inspector/src/**/*.js | ||
serializers/src/**/*.js | ||
gui/src/**/*.js | ||
viewer/src/**/*.js | ||
tests/unit/**/*.js | ||
!tests/unit/karma.conf.js | ||
|
||
# Build results | ||
[Rr]elease/ | ||
x64/ | ||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.log | ||
*.vspscc | ||
*.vssscc | ||
.builds | ||
|
||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opensdf | ||
*.sdf | ||
*.VC.db | ||
*.VC.opendb | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
*.vspx | ||
|
||
# Guidance Automation Toolkit | ||
*.gpState | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper* | ||
|
||
# NCrunch | ||
*.ncrunch* | ||
.*crunch*.local.xml | ||
|
||
# Installshield output folder | ||
[Ee]xpress | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish | ||
|
||
# Publish Web Output | ||
*.Publish.xml | ||
|
||
# NuGet Packages Directory | ||
packages | ||
|
||
# Windows Azure Build Output | ||
csx | ||
*.build.csdef | ||
|
||
# Windows Store app package directory | ||
AppPackages/ | ||
|
||
# Others | ||
[Bb]in | ||
sql | ||
TestResults | ||
[Tt]est[Rr]esult* | ||
*.Cache | ||
ClientBin | ||
[Ss]tyle[Cc]op.* | ||
~$* | ||
*.dbmdl | ||
Generated_Code #added for RIA/Silverlight projects | ||
|
||
# OS or Editor folders | ||
*.DS_Store | ||
._* | ||
Thumbs.db | ||
.cache | ||
.tmproj | ||
nbproject | ||
*.sublime-project | ||
*.sublime-workspace | ||
.directory | ||
build | ||
.history | ||
|
||
# Backup & report files from converting an old project file to a newer | ||
# Visual Studio version. Backup files are not needed, because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
|
||
# items for Eclipse- project / typescript & python plugins | ||
.project | ||
.settings/ | ||
.pydevproject | ||
|
||
/Exporters/3ds Max/Max2Babylon.sln.ide | ||
/Exporters/3ds Max/Max2Babylon.sln.ide | ||
/Exporters/ExportToBabylon.sln.ide | ||
|
||
# Do not ignore loaders/obj | ||
!loaders/* | ||
**/node_modules | ||
node_modules | ||
|
||
# for JetBrains IDE | ||
.idea | ||
|
||
# for VSCode | ||
.vs | ||
.tempChromeProfileForDebug | ||
.tempChromeCanaryProfileForDebug | ||
dist | ||
.temp | ||
*.js.map | ||
*.js.fx | ||
*.d.ts | ||
!dist/**/*.d.ts | ||
!dist/**/*.js.map | ||
!lib.d.ts | ||
!src/LibDeclarations/*.d.ts | ||
!Playground/libs/*.d.ts | ||
*.fragment.ts | ||
*.vertex.ts | ||
node_modules | ||
.tsbuildinfo | ||
.snapshot | ||
generated | ||
src/[Ss]haders/**/*.ts | ||
*.tsbuildinfo | ||
.rollup.cache | ||
# second-level package-json should not be commited | ||
**/package-lock.json | ||
**/*.vertex.ts | ||
**/*.fragment.ts | ||
*.compute.ts | ||
**/ShadersInclude/**/*.ts | ||
|
||
# Split declaration file | ||
!ISplit.d.ts | ||
|
||
# local dev | ||
localDev/src/* | ||
/dist/preview release/babylon.custom.js | ||
/dist/preview release/babylon.custom.max.js | ||
/localDev/src/index.js | ||
package-lock.json | ||
dist/preview release/package/ | ||
|
||
# local dev WebGPU | ||
localDevWebGPU/src/* | ||
|
||
# viewer dist files | ||
/Viewer/dist/viewer.js | ||
/Viewer/dist/viewer.min.js | ||
dist/preview release/viewer/babylon.d.ts | ||
dist/preview release/viewer/babylonjs.loaders.d.ts | ||
dist/preview release/viewer/babylon.glTF2Interface.d.ts | ||
Viewer/dist/viewer.max.js | ||
!Viewer/src/**/*.d.ts | ||
Viewer/tests/unit/src/**/*.js | ||
Viewer/tests/Lib/**/*.js | ||
Viewer/tests/commons/**/*.js | ||
.sass-cache/ | ||
gui/dist/ | ||
/Viewer/tests/tsc | ||
/Viewer/tests/tsc.cmd | ||
/Viewer/tests/tsserver | ||
/Viewer/tests/tsserver.cmd | ||
# Local Netlify folder | ||
.netlify | ||
Playground/dist/ | ||
Playground/temp/ | ||
sandbox/public/dist/ | ||
ktx2Decoder/dist/ | ||
|
||
# Symlinks created during build | ||
inspector/src/sharedUiComponents | ||
nodeEditor/src/sharedUiComponents | ||
guiEditor/src/sharedUiComponents | ||
shaders/**/*.ts | ||
jest-screenshot-report/ | ||
junit.xml | ||
.env | ||
*.pem |
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,15 @@ | ||
{ | ||
"connector": "local", | ||
"extends": [ | ||
"accessibility", | ||
"progressive-web-apps" | ||
], | ||
"formatters": [ | ||
"html", | ||
"summary" | ||
], | ||
"hints": { | ||
"typescript-config/strict": "off" | ||
}, | ||
"hintsTimeout": 10000 | ||
} |
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,2 @@ | ||
Shaders | ||
ShadersWGSL |
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,9 @@ | ||
{ | ||
"recommendations": [ | ||
"amodio.tsl-problem-matcher", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"webhint.vscode-webhint", | ||
"IronGeek.vscode-env" | ||
] | ||
} |
Oops, something went wrong.