-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update engine and examples package.json (#7172)
- Loading branch information
Showing
179 changed files
with
6,408 additions
and
14,041 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,55 @@ | ||
import playcanvasConfig from '@playcanvas/eslint-config'; | ||
import babelParser from '@babel/eslint-parser'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
...playcanvasConfig, | ||
{ | ||
files: ['**/*.js', '**/*.mjs'], | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
parser: babelParser, | ||
parserOptions: { | ||
requireConfigFile: false | ||
}, | ||
globals: { | ||
...globals.browser, | ||
...globals.mocha, | ||
...globals.node, | ||
'Ammo': 'readonly', | ||
'earcut': 'readonly', | ||
'opentype': 'readonly', | ||
'pc': 'readonly', | ||
'TWEEN': 'readonly', | ||
'twgsl': 'readonly', | ||
'webkitAudioContext': 'readonly' | ||
} | ||
}, | ||
rules: { | ||
'import/order': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['scripts/**/*.js'], | ||
rules: { | ||
'no-var': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['test/**/*.mjs'], | ||
rules: { | ||
'no-unused-expressions': 'off', | ||
'prefer-arrow-callback': 'off' // Mocha uses function callbacks | ||
} | ||
}, | ||
{ | ||
ignores: [ | ||
'tests/**/*', | ||
'examples/lib/*', | ||
'scripts/textmesh/*.min.js', | ||
'src/polyfill/*', | ||
'scripts/spine/*' | ||
] | ||
} | ||
]; |
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,30 @@ | ||
import playcanvasConfig from '@playcanvas/eslint-config'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
...playcanvasConfig, | ||
{ | ||
files: ['**/*.js', '**/*.mjs'], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
'ObjModelParser': 'readonly', | ||
'OutlineEffect': 'readonly' | ||
} | ||
}, | ||
rules: { | ||
'import/no-unresolved': 'off' | ||
} | ||
}, | ||
{ | ||
ignores: [ | ||
'assets/scripts/utils/area-light-lut-bin-gen.js', | ||
'cache', | ||
'dist', | ||
'src/lib', | ||
'src/app/monaco/languages', | ||
'src/app/monaco/tokenizer-rules.mjs' | ||
] | ||
} | ||
]; |
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
Oops, something went wrong.