Skip to content

Commit 53a07ce

Browse files
committed
chore: update formatter and linter configs
1 parent 66676d8 commit 53a07ce

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.prettierrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export default {
99
trailingComma: "all",
1010
bracketSpacing: true,
1111
bracketSameLine: false,
12+
objectWrap: "preserve",
1213
arrowParens: "always",
1314
endOfLine: "lf",
1415
experimentalTernaries: true,
16+
experimentalOperatorPosition: "start",
1517
};

eslint.config.js

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
import globals from "globals";
22
import { config } from "@susisu/eslint-config";
33

4-
export default config({ tsconfigRootDir: import.meta.dirname }, [
4+
export default config(
55
{
6-
files: ["src/**/*.ts"],
7-
languageOptions: {
8-
globals: {
9-
...globals.es2023,
6+
tsconfigRootDir: import.meta.dirname,
7+
},
8+
[
9+
{
10+
files: ["src/**/*.ts"],
11+
languageOptions: {
12+
globals: {
13+
...globals.es2024,
14+
},
1015
},
1116
},
12-
},
13-
{
14-
files: ["*.js"],
15-
languageOptions: {
16-
globals: {
17-
...globals.es2023,
18-
...globals.node,
17+
{
18+
files: ["*.js"],
19+
languageOptions: {
20+
globals: {
21+
...globals.es2024,
22+
...globals.node,
23+
},
1924
},
2025
},
21-
},
22-
]);
26+
],
27+
);

0 commit comments

Comments
 (0)