Browse Source

不显示nouse警告

master
blobt 4 years ago
parent
commit
538471441b
  1. 6
      .eslintrc.js
  2. 7
      .eslintrc.js.bak
  3. 0
      7
  4. 0
      8
  5. 2
      src/render/webgl/WebGLTexture.ts

6
.eslintrc.js

@ -0,0 +1,6 @@
module.exports = {
"extends": ["react-app"],
rules: {
'@typescript-eslint/no-unused-vars': "off"
}
}

7
.eslintrc.js.bak

@ -1,7 +0,0 @@
module.exports = {
rules: {
'no-debugger' : 'off',
'no-unused-vars': 'warn',
'vue/no-unused-vars': "off"
}
}

2
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;
}
/**

Loading…
Cancel
Save