eslint-config-prettier
Advanced tools
Comparing version 8.3.0 to 8.4.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18145
440