Skip to content

Commit 5ffb25f

Browse files
committed
Apply prettier format
1 parent f0f30a2 commit 5ffb25f

File tree

9 files changed

+34
-43
lines changed

9 files changed

+34
-43
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"visualstudioexptteam.vscodeintellicode",
77
"wix.vscode-import-cost",
88
"pmneo.tsimporter",
9-
"orta.vscode-jest"
10-
]
9+
"orta.vscode-jest",
10+
],
1111
}

.vscode/launch.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"preLaunchTask": "tsc: build - tsconfig.json",
1414
"outFiles": ["${workspaceFolder}/build/**/*.js"],
1515
"env": { "DEBUG": "*", "NODE_ENV": "development" },
16-
"showAsyncStacks": true
16+
"showAsyncStacks": true,
1717
},
1818
{
1919
"type": "node",
@@ -27,8 +27,8 @@
2727
"disableOptimisticBPs": true,
2828
"showAsyncStacks": true,
2929
"windows": {
30-
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
31-
}
30+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
31+
},
3232
},
3333
{
3434
"type": "node",
@@ -42,8 +42,8 @@
4242
"disableOptimisticBPs": true,
4343
"showAsyncStacks": true,
4444
"windows": {
45-
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
46-
}
47-
}
48-
]
45+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
46+
},
47+
},
48+
],
4949
}

.vscode/settings.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
{
2-
"eslint.validate": [
3-
"typescript",
4-
"typescriptreact"
5-
],
2+
"eslint.validate": ["typescript", "typescriptreact"],
63
"editor.formatOnSave": true,
74
"editor.defaultFormatter": "esbenp.prettier-vscode",
85
"editor.codeActionsOnSave": {
9-
"source.organizeImports": "never"
6+
"source.organizeImports": "never",
107
},
11-
"[javascript,typescript]": {
8+
"editor.formatOnSaveMode": "modificationsIfAvailable",
9+
"[javascript,typescript,jsonc,json]": {
1210
"editor.defaultFormatter": "esbenp.prettier-vscode",
13-
"editor.codeActionsOnSave": {
14-
"source.organizeImports": "never"
15-
},
11+
"editor.formatOnSaveMode": "modificationsIfAvailable",
1612
},
1713
"eslint.experimental.useFlatConfig": true,
1814
"jest.jestCommandLine": "npm test -- ",
1915
"jest.runMode": {
20-
"type": "on-demand"
21-
}
16+
"type": "on-demand",
17+
},
2218
}

.vscode/tasks.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@
77
"type": "npm",
88
"script": "build",
99
"group": "build",
10-
"problemMatcher": []
10+
"problemMatcher": [],
1111
},
1212
{
1313
"type": "npm",
1414
"script": "lint",
15-
"problemMatcher": []
15+
"problemMatcher": [],
1616
},
1717
{
1818
"type": "npm",
1919
"script": "start",
20-
"problemMatcher": []
20+
"problemMatcher": [],
2121
},
2222
{
2323
"type": "typescript",
2424
"tsconfig": "tsconfig.json",
2525
"problemMatcher": ["$tsc"],
26-
"group": "build"
26+
"group": "build",
2727
},
2828
{
2929
"label": "tsc: watch",
3030
"type": "typescript",
3131
"tsconfig": "tsconfig.json",
3232
"option": "watch",
3333
"problemMatcher": ["$tsc-watch"],
34-
"group": "build"
35-
}
36-
]
34+
"group": "build",
35+
},
36+
],
3737
}

__tests__/replace.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe.each(EachSimpleType)(
2929
f,
3030
(t): t is any => !Array.isArray(t),
3131
)(arr);
32-
const realResult = arr.map(v => f(v));
32+
const realResult = arr.map((v) => f(v));
3333
expect(obtainedResult).toStrictEqual(realResult);
3434
}),
3535
);

jest.setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import fc from 'fast-check';
99
const JestTimeoutMs = 60000;
1010
const FcTimeoutMs = Math.floor(0.8 * JestTimeoutMs);
1111

12-
const verbose
13-
= process.env.DEBUG === undefined
12+
const verbose =
13+
process.env.DEBUG === undefined
1414
? fc.VerbosityLevel.None
1515
: process.env.DEBUG !== '*'
1616
? fc.VerbosityLevel.Verbose

tsconfig.eslint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
".*.js",
1111
"*.js",
1212
".*.ts",
13-
"*.ts"
14-
]
13+
"*.ts",
14+
],
1515
}

tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"ES2019",
1616
"ES2020",
1717
"ES2021",
18-
"ES2022"
18+
"ES2022",
1919
],
20-
"checkJs": true, /* Report errors in .js files. */
20+
"checkJs": true /* Report errors in .js files. */,
2121
"declaration": true,
2222
/* Generates corresponding '.d.ts' file. */
2323
"declarationMap": true,
@@ -79,9 +79,9 @@
7979
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
8080

8181
/* Advanced Options */
82-
"forceConsistentCasingInFileNames": true
82+
"forceConsistentCasingInFileNames": true,
8383
/* Disallow inconsistently-cased references to the same file. */
8484
},
8585
"include": ["src/**/*", "bin/**/*", "tests/**/*", "__tests__/**/*"],
86-
"exclude": ["node_modules"]
86+
"exclude": ["node_modules"],
8787
}

tsconfig.prod.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
"declarationMap": false,
88
"sourceMap": false,
99
"rootDir": ".",
10-
"types": [
11-
"node"
12-
]
10+
"types": ["node"],
1311
},
14-
"include": [
15-
"src/**/*",
16-
"bin/**/*"
17-
],
12+
"include": ["src/**/*", "bin/**/*"],
1813
}

0 commit comments

Comments
 (0)