Skip to content

Commit 0080c59

Browse files
committed
🚨 fix lint
1 parent 217ac65 commit 0080c59

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

‎packages/create-configs/.eslintrc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ extends:
1515
- '@code-style/eslint-config-esmodule'
1616
parserOptions:
1717
ecmaVersion: 2022
18+
ignorePatterns:
19+
- '/bin/'

‎packages/create-configs/src/steps/scripts.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('scripts', () => {
130130
});
131131
});
132132

133-
export function test_no_shell_globs(scripts: string[]) {
133+
function test_no_shell_globs(scripts: string[]) {
134134
// eslint-disable-next-line jest/require-top-level-describe
135135
it(`shouldn't allow the shell to expand globs`, () => {
136136
expect.hasAssertions();
@@ -143,7 +143,7 @@ export function test_no_shell_globs(scripts: string[]) {
143143
});
144144
}
145145

146-
export function test_matched_braces(scripts: string[]) {
146+
function test_matched_braces(scripts: string[]) {
147147
// eslint-disable-next-line jest/require-top-level-describe
148148
it(`should match opening & closing braces`, () => {
149149
expect.hasAssertions();

‎packages/create-configs/src/steps/scripts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export function _generate_test_script({
270270
[
271271
`node $NODE_OPTS --import=${deps.d.depend('tsx')}`,
272272
`--test $(${deps.d.depend('glob')}`,
273-
[
273+
`${[
274274
...['**/node_modules/**', `**/${output_dir}/**`].map(
275275
(ig) => `--ignore '${ig}'`,
276276
),
@@ -281,7 +281,7 @@ export function _generate_test_script({
281281
`'**/test?(-*).?(c|m)[jt]s'`,
282282
`'**/test/**/*.?(c|m)[jt]s'`,
283283
],
284-
].join(' ') + ')',
284+
].join(' ')})`,
285285
].join(' '),
286286
].join('; '),
287287
'test:debug': `NODE_OPTS='--inspect-brk' npm run test`,

‎packages/create-configs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"outDir": "dist/"
1010
},
1111
"include": ["./"],
12-
"exclude": ["dist/", "coverage/"]
12+
"exclude": ["dist/", "coverage/", "bin/"]
1313
}

‎utils/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": ["../tsconfig.json"],
33
"include": ["./"],
4-
"exclude": []
4+
"exclude": ["coverage/"]
55
}

0 commit comments

Comments
 (0)