prettier-eslint
Advanced tools
Comparing version
@@ -70,3 +70,3 @@ "use strict"; | ||
} = options; | ||
const eslintConfig = (0, _lodash.default)({}, options.eslintConfig, getESLintConfig(filePath, eslintPath)); | ||
const eslintConfig = (0, _lodash.default)({}, options.eslintConfig, await getESLintConfig(filePath, eslintPath)); | ||
const prettierOptions = (0, _lodash.default)({}, filePath && { | ||
@@ -216,3 +216,3 @@ filepath: filePath | ||
function getESLintConfig(filePath, eslintPath) { | ||
async function getESLintConfig(filePath, eslintPath) { | ||
const eslintOptions = {}; | ||
@@ -232,3 +232,3 @@ | ||
logger.debug(`getting eslint config for file at "${filePath}"`); | ||
const config = eslint.calculateConfigForFile(filePath); | ||
const config = await eslint.calculateConfigForFile(filePath); | ||
logger.trace(`eslint config for "${filePath}" received`, (0, _prettyFormat.default)(config)); | ||
@@ -235,0 +235,0 @@ return { ...eslintOptions, |
{ | ||
"name": "prettier-eslint", | ||
"version": "14.0.0", | ||
"version": "14.0.1", | ||
"description": "Formats your JavaScript using prettier followed by eslint --fix", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
47894
0.04%