Add JS Linting

This commit is contained in:
Nick Gerleman
2022-12-24 01:46:20 -08:00
parent 014986e9da
commit 4d17e309d2
47 changed files with 1447 additions and 561 deletions

View File

@@ -9,9 +9,10 @@
test("align_self_center", function () {
const config = Yoga.Config.create();
let root;
try {
const root = Yoga.Node.create(config);
root = Yoga.Node.create(config);
root.setWidth(100);
root.setHeight(100);
@@ -53,9 +54,10 @@ test("align_self_center", function () {
});
test("align_self_flex_end", function () {
const config = Yoga.Config.create();
let root;
try {
const root = Yoga.Node.create(config);
root = Yoga.Node.create(config);
root.setWidth(100);
root.setHeight(100);
@@ -97,9 +99,10 @@ test("align_self_flex_end", function () {
});
test("align_self_flex_start", function () {
const config = Yoga.Config.create();
let root;
try {
const root = Yoga.Node.create(config);
root = Yoga.Node.create(config);
root.setWidth(100);
root.setHeight(100);
@@ -141,9 +144,10 @@ test("align_self_flex_start", function () {
});
test("align_self_flex_end_override_flex_start", function () {
const config = Yoga.Config.create();
let root;
try {
const root = Yoga.Node.create(config);
root = Yoga.Node.create(config);
root.setAlignItems(Yoga.ALIGN_FLEX_START);
root.setWidth(100);
root.setHeight(100);
@@ -186,9 +190,10 @@ test("align_self_flex_end_override_flex_start", function () {
});
test("align_self_baseline", function () {
const config = Yoga.Config.create();
let root;
try {
const root = Yoga.Node.create(config);
root = Yoga.Node.create(config);
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
root.setWidth(100);
root.setHeight(100);