File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ const cwd = dirname(fileURLToPath(import.meta.url));
1212const ezDir = join ( cwd , "express-zod-api" ) ;
1313const migrationDir = join ( cwd , "migration" ) ;
1414
15- const importConcerns = [
15+ interface RestrictedSyntax {
16+ selector : string ;
17+ message : string ;
18+ }
19+
20+ const importConcerns : RestrictedSyntax [ ] = [
1621 {
1722 selector :
1823 "ImportDeclaration[source.value='ramda'] > ImportSpecifier, " +
@@ -29,7 +34,7 @@ const importConcerns = [
2934 } ) ) ,
3035] ;
3136
32- const performanceConcerns = [
37+ const performanceConcerns : RestrictedSyntax [ ] = [
3338 {
3439 selector : "ImportDeclaration[source.value=/assert/]" , // #2169
3540 message : "assert is slow, use throw" ,
@@ -58,7 +63,7 @@ const performanceConcerns = [
5863 } ,
5964] ;
6065
61- const tsFactoryConcerns = [
66+ const tsFactoryConcerns : RestrictedSyntax [ ] = [
6267 {
6368 selector : "Identifier[name='createConditionalExpression']" ,
6469 message : "use makeTernary() helper" ,
You can’t perform that action at this time.
0 commit comments