Skip to content

Commit 0478bed

Browse files
committed
chore: lint issues
1 parent bf1fa06 commit 0478bed

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

src/configuration/from_file.ts

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import stringArgv from "string-argv";
2-
import fs from "fs";
3-
import path from "path";
4-
import YAML from "yaml";
5-
import { promisify } from "util";
6-
import { pathToFileURL } from "url";
7-
import { IConfiguration } from "./types";
8-
import { mergeConfigurations } from "./merge_configurations";
9-
import ArgvParser from "./argv_parser";
10-
import { checkSchema } from "./check_schema";
11-
import { ILogger } from "../logger";
1+
import stringArgv from 'string-argv'
2+
import fs from 'fs'
3+
import path from 'path'
4+
import YAML from 'yaml'
5+
import { promisify } from 'util'
6+
import { pathToFileURL } from 'url'
7+
import { IConfiguration } from './types'
8+
import { mergeConfigurations } from './merge_configurations'
9+
import ArgvParser from './argv_parser'
10+
import { checkSchema } from './check_schema'
11+
import { ILogger } from '../logger'
1212

1313
// eslint-disable-next-line @typescript-eslint/no-var-requires
1414
const { importer } = require('../importer')
@@ -51,11 +51,15 @@ async function loadFile(
5151
let definitions
5252
switch (extension) {
5353
case '.json':
54-
definitions = JSON.parse(await promisify(fs.readFile)(filePath, { encoding: 'utf-8' }))
54+
definitions = JSON.parse(
55+
await promisify(fs.readFile)(filePath, { encoding: 'utf-8' })
56+
)
5557
break
5658
case '.yaml':
5759
case '.yml':
58-
definitions = YAML.parse(await promisify(fs.readFile)(filePath, { encoding: 'utf-8' }))
60+
definitions = YAML.parse(
61+
await promisify(fs.readFile)(filePath, { encoding: 'utf-8' })
62+
)
5963
break
6064
default:
6165
try {

0 commit comments

Comments
 (0)