Skip to content

Commit c9dee9b

Browse files
authored
Fix new eslint issues (#255)
1 parent 79ab091 commit c9dee9b

File tree

8 files changed

+17
-11
lines changed

8 files changed

+17
-11
lines changed

lib/src/sync-process/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class SyncProcess {
141141
/** Closes down the worker thread and the stdin stream. */
142142
private close(): void {
143143
this.port.close();
144-
this.worker.terminate();
144+
void this.worker.terminate();
145145
this.stdin.destroy();
146146
}
147147
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"check:gts": "gts check",
3030
"check:tsc": "tsc --noEmit",
3131
"clean": "gts clean",
32-
"compile": "tsc && cp lib/index.mjs dist/lib/index.mjs && cp -r lib/src/vendor/sass/ dist/lib/src/vendor/sass && cp dist/lib/src/vendor/sass/index.d.ts dist/lib/src/vendor/sass/index.m.d.ts",
32+
"compile": "tsc -p tsconfig.build.json && cp lib/index.mjs dist/lib/index.mjs && cp -r lib/src/vendor/sass/ dist/lib/src/vendor/sass && cp dist/lib/src/vendor/sass/index.d.ts dist/lib/src/vendor/sass/index.m.d.ts",
3333
"fix": "gts fix",
3434
"prepublishOnly": "npm run clean && ts-node ./tool/prepare-release.ts",
3535
"test": "jest"

tool/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const argv = yargs(process.argv.slice(2))
3636
})
3737
.parseSync();
3838

39-
(async () => {
39+
void (async () => {
4040
try {
4141
const outPath = 'lib/src/vendor';
4242

tool/prepare-optional-release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function downloadRelease(options: {
104104
await fs.unlink(zippedAssetPath);
105105
}
106106

107-
(async () => {
107+
void (async () => {
108108
try {
109109
const version = pkg['compiler-version'] as string;
110110
if (version.endsWith('-dev')) {

tool/prepare-release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as shell from 'shelljs';
88
import * as pkg from '../package.json';
99
import {getLanguageRepo} from './get-language-repo';
1010

11-
(async () => {
11+
void (async () => {
1212
try {
1313
await sanityCheckBeforeRelease();
1414

tool/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function fetchRepo(options: {
1818
ref: string;
1919
}): void {
2020
const path = p.join(options.outPath, options.repo);
21-
if (lstatSync(path).isSymbolicLink() && existsSync(p.join(path, '.git'))) {
21+
if (existsSync(p.join(path, '.git')) && lstatSync(path).isSymbolicLink()) {
2222
throw (
2323
`${path} is a symlink to a git repo, not overwriting.\n` +
2424
`Run "rm ${path}" and try again.`

tsconfig.build.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": [
4+
"lib/src/vendor/dart-sass/**",
5+
"**/*.test.ts"
6+
]
7+
}

tsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
"lib": ["DOM"]
1212
},
1313
"include": [
14+
"*.ts",
1415
"lib/**/*.ts",
15-
"tool/*.ts"
16+
"tool/**/*.ts",
17+
"test/**/*.ts"
1618
],
17-
"exclude": [
18-
"**/*.test.ts",
19-
"lib/src/vendor/dart-sass/**"
20-
]
19+
"exclude": ["lib/src/vendor/dart-sass/**"]
2120
}

0 commit comments

Comments
 (0)