From 8faca181a6551a6286a0f6e469bd22d92a5ddb49 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Fri, 25 Aug 2023 10:01:35 -0400 Subject: [PATCH] More formatting --- src/index.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/index.js b/src/index.js index 5d700f1..9b37b08 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) { { base: [ "[type='text']", - "input:where(:not([type]))", + 'input:where(:not([type]))', "[type='email']", "[type='url']", "[type='password']", @@ -308,21 +308,19 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) { base: [`[type='file']:focus`], class: null, styles: { - outline: [ - `1px solid ButtonText`, - `1px auto -webkit-focus-ring-color` - ], + outline: [`1px solid ButtonText`, `1px auto -webkit-focus-ring-color`], }, }, ] - const getStrategyRules = (strategy) => rules - .map((rule) => { - if (rule[strategy] === null) return null + const getStrategyRules = (strategy) => + rules + .map((rule) => { + if (rule[strategy] === null) return null - return { [rule[strategy]]: rule.styles } - }) - .filter(Boolean) + return { [rule[strategy]]: rule.styles } + }) + .filter(Boolean) if (strategy.includes('base')) { addBase(getStrategyRules('base'))