From 538471441b43e779714822791bdf5937e58eec8a Mon Sep 17 00:00:00 2001 From: blobt Date: Wed, 28 Apr 2021 17:31:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BAnouse=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 6 ++++++ .eslintrc.js.bak | 7 ------- 7 | 0 8 | 0 src/render/webgl/WebGLTexture.ts | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) create mode 100755 .eslintrc.js delete mode 100755 .eslintrc.js.bak create mode 100644 7 create mode 100644 8 diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100755 index 00000000..3c181504 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,6 @@ +module.exports = { + "extends": ["react-app"], + rules: { + '@typescript-eslint/no-unused-vars': "off" + } +} diff --git a/.eslintrc.js.bak b/.eslintrc.js.bak deleted file mode 100755 index 8921dd77..00000000 --- a/.eslintrc.js.bak +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - rules: { - 'no-debugger' : 'off', - 'no-unused-vars': 'warn', - 'vue/no-unused-vars': "off" - } -} diff --git a/7 b/7 new file mode 100644 index 00000000..e69de29b diff --git a/8 b/8 new file mode 100644 index 00000000..e69de29b diff --git a/src/render/webgl/WebGLTexture.ts b/src/render/webgl/WebGLTexture.ts index 365a78f1..10d5d2ff 100755 --- a/src/render/webgl/WebGLTexture.ts +++ b/src/render/webgl/WebGLTexture.ts @@ -37,7 +37,7 @@ export class GLTexture { * @returns */ public static isPowerOfTwo(x: number) { - return (x & (x - 1)) == 0; + return (x & (x - 1)) === 0; } /**