New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prettier-eslint

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-eslint - npm Package Compare versions

Comparing version

to
14.0.1

6

dist/index.js

@@ -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",