Socket
Socket
Sign inDemoInstall

eslint-config-prettier

Package Overview
Dependencies
88
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.3.0 to 8.4.0

@typescript-eslint.js

17

bin/cli.js

@@ -33,6 +33,4 @@ #!/usr/bin/env node

.then((configs) => {
const rules = [].concat(
...configs.map(({ rules }, index) =>
Object.entries(rules).map((entry) => [...entry, args[index]])
)
const rules = configs.flatMap(({ rules }, index) =>
Object.entries(rules).map((entry) => [...entry, args[index]])
);

@@ -187,8 +185,7 @@ const result = processRules(rules);

function filterRules(rules, fn) {
return Object.entries(rules)
.filter(([ruleName, value]) => fn(ruleName, value))
.reduce((obj, [ruleName]) => {
obj[ruleName] = true;
return obj;
}, Object.create(null));
return Object.fromEntries(
Object.entries(rules)
.filter(([ruleName, value]) => fn(ruleName, value))
.map(([ruleName]) => [ruleName, true])
);
}

@@ -195,0 +192,0 @@

@@ -173,2 +173,3 @@ "use strict";

"vue/operator-linebreak": "off",
"vue/quote-props": "off",
"vue/script-indent": "off",

@@ -175,0 +176,0 @@ "vue/singleline-html-element-content-newline": "off",

{
"name": "eslint-config-prettier",
"version": "8.3.0",
"version": "8.4.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Simon Lydell",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc