mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta+LibJS: Upgrade to prettier version 3.3.3
Prettier v3 was released over a year ago, and most users will have it by default by now.
This commit is contained in:
parent
deb5947fc0
commit
80c6268431
Notes:
github-actions[bot]
2024-11-06 20:11:18 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/80c62684311 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2201
6 changed files with 12 additions and 10 deletions
2
.github/workflows/lint-code.yml
vendored
2
.github/workflows/lint-code.yml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install JS Dependencies
|
- name: Install JS Dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: npm install -g prettier@2.7.1
|
run: npm install -g prettier@3.3.3
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: ${{ github.workspace }}/Meta/lint-ci.sh
|
run: ${{ github.workspace }}/Meta/lint-ci.sh
|
||||||
|
|
|
@ -30,8 +30,8 @@ if (( ${#files[@]} )); then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! prettier --version | grep -q '\b2\.' ; then
|
if ! prettier --version | grep -q '\b3\.' ; then
|
||||||
echo "You are using '$(prettier --version)', which appears to not be prettier 2."
|
echo "You are using '$(prettier --version)', which appears to not be prettier 3."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as self from "./import-with-assertions.mjs" assert { "key": "value", key2: "value2", default: "shouldwork" };
|
import * as self from "./import-with-assertions.mjs" assert { key: "value", key2: "value2", default: "shouldwork" };
|
||||||
import "./import-with-assertions.mjs" assert { "key": "value", key2: "value2", default: "shouldwork" };
|
import "./import-with-assertions.mjs" assert { key: "value", key2: "value2", default: "shouldwork" };
|
||||||
|
|
||||||
export { passed } from "./module-with-default.mjs" assert { "key": "value", key2: "value2", default: "shouldwork" };
|
export { passed } from "./module-with-default.mjs" assert { key: "value", key2: "value2", default: "shouldwork" };
|
||||||
|
|
|
@ -63,8 +63,10 @@ test("toHaveLength", () => {
|
||||||
expect([1]).toHaveLength(1);
|
expect([1]).toHaveLength(1);
|
||||||
expect({ length: 1 }).toHaveLength(1);
|
expect({ length: 1 }).toHaveLength(1);
|
||||||
|
|
||||||
expect("a\
|
expect(
|
||||||
b").toHaveLength(2);
|
"a\
|
||||||
|
b"
|
||||||
|
).toHaveLength(2);
|
||||||
|
|
||||||
expect(() => {
|
expect(() => {
|
||||||
expect(1).toHaveLength();
|
expect(1).toHaveLength();
|
||||||
|
|
|
@ -179,7 +179,7 @@ describe("functions on created objects", () => {
|
||||||
|
|
||||||
expect(obj2.func()).toBe(obj2);
|
expect(obj2.func()).toBe(obj2);
|
||||||
expect(obj2.arrow()).toBe(customThisValue);
|
expect(obj2.arrow()).toBe(customThisValue);
|
||||||
}.bind(customThisValue)());
|
}).bind(customThisValue)();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,7 @@ describe("functions on created objects", () => {
|
||||||
|
|
||||||
expect(obj2.func()).toBe(obj2);
|
expect(obj2.func()).toBe(obj2);
|
||||||
expect(obj2.arrow()).toBe(customThisValue);
|
expect(obj2.arrow()).toBe(customThisValue);
|
||||||
}.bind(customThisValue)());
|
}).bind(customThisValue)();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue