diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-11-19 05:59:12 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-11-23 12:15:18 +0100 |
commit | c38984d286419f2d46b80c6d978fea31a0296d46 (patch) | |
tree | 6afccfe7ae9d8bcc8512e544a00ada9a30c2a63b /platform/javascript/.eslintrc.engine.js | |
parent | a82f70ea9f98ed0a602a20f7fe8954f6e4200b25 (diff) |
[HTML5] Enforce JavaScript style with eslint.
Applies to javascript files inside the platform library folder, the
exposed Engine code, and any javascript files in modules.
Files ending with ".externs.js" will be ignored, you can create a
".eslintignore" file to specify extra files to be ignored.
Diffstat (limited to 'platform/javascript/.eslintrc.engine.js')
-rw-r--r-- | platform/javascript/.eslintrc.engine.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/javascript/.eslintrc.engine.js b/platform/javascript/.eslintrc.engine.js new file mode 100644 index 0000000000..00f0f147a9 --- /dev/null +++ b/platform/javascript/.eslintrc.engine.js @@ -0,0 +1,10 @@ +module.exports = { + "extends": [ + "./.eslintrc.js", + ], + "globals": { + "Godot": true, + "Preloader": true, + "Utils": true, + }, +}; |