File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 66const childProcess = require ( 'child_process' )
77const flow = require ( 'flow-bin' )
88const fs = require ( 'fs' )
9- const path = require ( 'path' )
9+ const { join } = require ( 'path' )
1010
1111const execFile = ( file , args ) =>
1212 new Promise ( ( resolve , reject ) => {
@@ -86,7 +86,7 @@ async function grepFlowFiles() {
8686; ( async function ( ) {
8787 let threshold = 0
8888
89- const packageJsonPath = path . join ( process . cwd ( ) , 'package.json' )
89+ const packageJsonPath = join ( process . cwd ( ) , 'package.json' )
9090 if ( fs . existsSync ( packageJsonPath ) ) {
9191 const packageJson = require ( packageJsonPath )
9292 threshold = ( packageJson . flow && packageJson . flow . coverageThreshold ) || 0
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ module.exports = {
5555 'no-regex-spaces' : 'error' ,
5656 'no-return-assign' : 'error' ,
5757 'no-self-assign' : 'error' ,
58+ 'no-shadow' : 'error' ,
5859 'no-sparse-arrays' : 'error' ,
5960 'no-this-before-super' : 'error' ,
6061 'no-throw-literal' : 'error' ,
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ module.exports = {
1919
2020 checkEntriesWhitelist ( filename )
2121
22- function recordImport ( filename , symbol ) {
23- let symbols = imports . get ( filename )
22+ function recordImport ( importPath , symbol ) {
23+ let symbols = imports . get ( importPath )
2424 if ( ! symbols ) {
2525 symbols = new Set ( )
26- imports . set ( filename , symbols )
26+ imports . set ( importPath , symbols )
2727 }
2828
2929 if ( symbol ) {
You can’t perform that action at this time.
0 commit comments