Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 014671d

Browse files
committed
Fixed lint issues
1 parent e218f6d commit 014671d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/colour.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import { number } from "prop-types";
18-
1917
export function textToHtmlRainbow(str: string): string {
2018
const frequency = (2 * Math.PI) / str.length;
2119

@@ -48,7 +46,7 @@ function generateAB(hue: number, chroma: number): [number, number] {
4846

4947
function labToRGB(l: number, a: number, b: number): [number, number, number] {
5048
// Convert CIELAB to CIEXYZ (D65)
51-
var y = (l + 16) / 116;
49+
let y = (l + 16) / 116;
5250
const x = adjustXYZ(y + a / 500) * 0.9505;
5351
const z = adjustXYZ(y - b / 200) * 1.089;
5452

0 commit comments

Comments
 (0)