瀏覽代碼

Eslint: Add `no-irregular-whitespace` rule (#29608)

* Eslint: Add `no-irregular-whitespace` rule

* clean up
林炳权 1 年之前
父節點
當前提交
767acce1d3
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 0
      .eslintrc.json
  2. 1 1
      src/math/ColorManagement.js

+ 3 - 0
.eslintrc.json

@@ -57,6 +57,9 @@
         "destructuring": "any",
         "ignoreReadBeforeAssign": false
       }
+    ],
+    "no-irregular-whitespace": [
+      "error"
     ]
   }
 }

+ 1 - 1
src/math/ColorManagement.js

@@ -11,7 +11,7 @@ export const ColorManagement = {
 	 * Implementations of supported color spaces.
 	 *
 	 * Required:
-	 *	- primaries: chromaticity coordinates[ rx ry gx gy bx by ]
+	 *	- primaries: chromaticity coordinates [ rx ry gx gy bx by ]
 	 *	- whitePoint: reference white [ x y ]
 	 *	- transfer: transfer function (pre-defined)
 	 *	- toXYZ: Matrix3 RGB to XYZ transform

粤ICP备19079148号