File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
plugin-logical-expressions/lib/remove-duplicates
plugin-typescript/lib/remove-useless-types-from-constants Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33const { createTest} = require ( '@putout/test' ) ;
4- const LogicalExpression = require ( '.' ) ;
4+ const removeDuplicates = require ( '.' ) ;
55
66const test = createTest ( __dirname , {
77 plugins : [
8- [ '- logical-expression' , LogicalExpression ] ,
8+ [ 'logical-expression/remove-duplicates ' , removeDuplicates ] ,
99 ] ,
1010} ) ;
1111
Original file line number Diff line number Diff line change 99 isBooleanLiteral,
1010 isIdentifier,
1111 isBigIntLiteral,
12- TSAnyKeyword ,
12+ tsAnyKeyword ,
1313 isTSUnionType,
1414 tsNumberKeyword,
1515 tsNullKeyword,
@@ -53,7 +53,7 @@ function getType(node) {
5353 if ( compare ( node , 'Symbol()' ) )
5454 return tsSymbolKeyword ( ) ;
5555
56- return TSAnyKeyword ;
56+ return tsAnyKeyword ;
5757}
5858
5959const checkType = ( { __a, __b} ) => {
@@ -69,7 +69,7 @@ const checkType = ({__a, __b}) => {
6969const isPrimitiveType = ( node ) => {
7070 const type = getType ( node ) ;
7171
72- return type !== TSAnyKeyword ;
72+ return type !== tsAnyKeyword ;
7373} ;
7474
7575const removeType = ( { __a} , path ) => {
You can’t perform that action at this time.
0 commit comments