From bd3801fd3b9b02834bde046f48fb331fcd2f39e2 Mon Sep 17 00:00:00 2001 From: Leslie Leigh Date: Tue, 8 Jan 2019 20:06:59 +0800 Subject: [PATCH] fix export errors (#3719) * fix export errors * Update tslint.json --- cocos/3d/assets/index.js | 1 - cocos/3d/assets/physics/material.ts | 1 + tslint.json | 6 ++++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cocos/3d/assets/index.js b/cocos/3d/assets/index.js index 539ad15695..6393ed3b4f 100644 --- a/cocos/3d/assets/index.js +++ b/cocos/3d/assets/index.js @@ -37,4 +37,3 @@ export { default as WebAudioClip } from "./web-audio-clip"; export { default as WxGameAudioClip } from "./wx-game-audio-clip"; export { PhysicsMaterial } from './physics/material'; -cc.PhysicsMaterial = PhysicsMaterial; \ No newline at end of file diff --git a/cocos/3d/assets/physics/material.ts b/cocos/3d/assets/physics/material.ts index b44256eab7..accaa91ba0 100644 --- a/cocos/3d/assets/physics/material.ts +++ b/cocos/3d/assets/physics/material.ts @@ -52,3 +52,4 @@ export class PhysicsMaterial extends Asset { return this._cannonMaterial; } } +cc.PhysicsMaterial = PhysicsMaterial; diff --git a/tslint.json b/tslint.json index 1ba95e26a4..f1676c13ea 100644 --- a/tslint.json +++ b/tslint.json @@ -8,7 +8,9 @@ "quotemark": [ true, "single" ], "no-console": false, "space-before-function-paren": true, - "max-classes-per-file": false + "max-classes-per-file": false, + "variable-name": false, + "object-literal-sort-keys": false }, "rulesDirectory": [] -} \ No newline at end of file +}