File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,16 @@ import { z } from 'zod';
22
33export type Options = z . infer < typeof ruleOptionsSchema > ;
44
5- export const ruleOptionsSchema = z . object ( {
6- allow : z
7- . object ( {
8- features : z . array ( z . string ( ) ) . default ( ( ) => [ ] ) ,
9- flagged : z . boolean ( ) . default ( false ) ,
10- partialImplementation : z . boolean ( ) . default ( false ) ,
11- prefix : z . boolean ( ) . default ( true ) ,
12- } )
13- . prefault ( { } ) ,
14- browserslist : z . union ( [ z . string ( ) , z . array ( z . string ( ) ) ] ) . optional ( ) ,
15- } ) ;
5+ export const ruleOptionsSchema = z
6+ . object ( {
7+ allow : z
8+ . object ( {
9+ features : z . array ( z . string ( ) ) . default ( ( ) => [ ] ) ,
10+ flagged : z . boolean ( ) . default ( false ) ,
11+ partialImplementation : z . boolean ( ) . default ( false ) ,
12+ prefix : z . boolean ( ) . default ( true ) ,
13+ } )
14+ . prefault ( { } ) ,
15+ browserslist : z . union ( [ z . string ( ) , z . array ( z . string ( ) ) ] ) . optional ( ) ,
16+ } )
17+ . prefault ( { } ) ;
You can’t perform that action at this time.
0 commit comments