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 6
6
const childProcess = require ( 'child_process' )
7
7
const flow = require ( 'flow-bin' )
8
8
const fs = require ( 'fs' )
9
- const path = require ( 'path' )
9
+ const { join } = require ( 'path' )
10
10
11
11
const execFile = ( file , args ) =>
12
12
new Promise ( ( resolve , reject ) => {
@@ -86,7 +86,7 @@ async function grepFlowFiles() {
86
86
; ( async function ( ) {
87
87
let threshold = 0
88
88
89
- const packageJsonPath = path . join ( process . cwd ( ) , 'package.json' )
89
+ const packageJsonPath = join ( process . cwd ( ) , 'package.json' )
90
90
if ( fs . existsSync ( packageJsonPath ) ) {
91
91
const packageJson = require ( packageJsonPath )
92
92
threshold = ( packageJson . flow && packageJson . flow . coverageThreshold ) || 0
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ module.exports = {
55
55
'no-regex-spaces' : 'error' ,
56
56
'no-return-assign' : 'error' ,
57
57
'no-self-assign' : 'error' ,
58
+ 'no-shadow' : 'error' ,
58
59
'no-sparse-arrays' : 'error' ,
59
60
'no-this-before-super' : 'error' ,
60
61
'no-throw-literal' : 'error' ,
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ module.exports = {
19
19
20
20
checkEntriesWhitelist ( filename )
21
21
22
- function recordImport ( filename , symbol ) {
23
- let symbols = imports . get ( filename )
22
+ function recordImport ( importPath , symbol ) {
23
+ let symbols = imports . get ( importPath )
24
24
if ( ! symbols ) {
25
25
symbols = new Set ( )
26
- imports . set ( filename , symbols )
26
+ imports . set ( importPath , symbols )
27
27
}
28
28
29
29
if ( symbol ) {
You can’t perform that action at this time.
0 commit comments