Skip to content

Commit 8faca18

Browse files
committed
More formatting
1 parent 350b931 commit 8faca18

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

Diff for: src/index.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
1717
{
1818
base: [
1919
"[type='text']",
20-
"input:where(:not([type]))",
20+
'input:where(:not([type]))',
2121
"[type='email']",
2222
"[type='url']",
2323
"[type='password']",
@@ -308,21 +308,19 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
308308
base: [`[type='file']:focus`],
309309
class: null,
310310
styles: {
311-
outline: [
312-
`1px solid ButtonText`,
313-
`1px auto -webkit-focus-ring-color`
314-
],
311+
outline: [`1px solid ButtonText`, `1px auto -webkit-focus-ring-color`],
315312
},
316313
},
317314
]
318315

319-
const getStrategyRules = (strategy) => rules
320-
.map((rule) => {
321-
if (rule[strategy] === null) return null
316+
const getStrategyRules = (strategy) =>
317+
rules
318+
.map((rule) => {
319+
if (rule[strategy] === null) return null
322320

323-
return { [rule[strategy]]: rule.styles }
324-
})
325-
.filter(Boolean)
321+
return { [rule[strategy]]: rule.styles }
322+
})
323+
.filter(Boolean)
326324

327325
if (strategy.includes('base')) {
328326
addBase(getStrategyRules('base'))

0 commit comments

Comments
 (0)