File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -84,16 +84,16 @@ var Project = function () {
84
84
var localSearchPath = sysPath . join ( _this . cwd , 'node_modules/' , moduleName ) ;
85
85
var localSearchPathQnpm = sysPath . join ( _this . cwd , 'node_modules/' , '@qnpm/' + moduleName ) ;
86
86
87
- if ( requireg . resolve ( moduleName ) ) {
88
- modulePath = requireg . resolve ( moduleName ) ;
89
- } else if ( requireg . resolve ( localSearchPath ) ) {
87
+ if ( requireg . resolve ( localSearchPath ) ) {
90
88
modulePath = localSearchPath ;
91
- } else if ( requireg . resolve ( '@qnpm/' + moduleName ) ) {
92
- modulePath = requireg . resolve ( '@qnpm/' + moduleName ) ;
93
- moduleName = '@qnpm/' + moduleName ;
89
+ } else if ( requireg . resolve ( moduleName ) ) {
90
+ modulePath = requireg . resolve ( moduleName ) ;
94
91
} else if ( requireg . resolve ( localSearchPathQnpm ) ) {
95
92
modulePath = localSearchPathQnpm ;
96
93
moduleName = '@qnpm/' + moduleName ;
94
+ } else if ( requireg . resolve ( '@qnpm/' + moduleName ) ) {
95
+ modulePath = requireg . resolve ( '@qnpm/' + moduleName ) ;
96
+ moduleName = '@qnpm/' + moduleName ;
97
97
}
98
98
99
99
extend ( true , userConfig . eslintConfig , Manager . loadEslintConfig ( modulePath ) ) ;
Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ class Project {
66
66
const localSearchPath = sysPath . join ( this . cwd , 'node_modules/' , moduleName )
67
67
const localSearchPathQnpm = sysPath . join ( this . cwd , 'node_modules/' , '@qnpm/' + moduleName )
68
68
69
- if ( requireg . resolve ( moduleName ) ) {
70
- modulePath = requireg . resolve ( moduleName )
71
- } else if ( requireg . resolve ( localSearchPath ) ) {
69
+ if ( requireg . resolve ( localSearchPath ) ) {
72
70
modulePath = localSearchPath
73
- } else if ( requireg . resolve ( '@qnpm/' + moduleName ) ) {
74
- modulePath = requireg . resolve ( '@qnpm/' + moduleName )
75
- moduleName = '@qnpm/' + moduleName
71
+ } else if ( requireg . resolve ( moduleName ) ) {
72
+ modulePath = requireg . resolve ( moduleName )
76
73
} else if ( requireg . resolve ( localSearchPathQnpm ) ) {
77
74
modulePath = localSearchPathQnpm
78
75
moduleName = '@qnpm/' + moduleName
76
+ } else if ( requireg . resolve ( '@qnpm/' + moduleName ) ) {
77
+ modulePath = requireg . resolve ( '@qnpm/' + moduleName )
78
+ moduleName = '@qnpm/' + moduleName
79
79
}
80
80
81
81
extend ( true , userConfig . eslintConfig , Manager . loadEslintConfig ( modulePath ) ) ;
You can’t perform that action at this time.
0 commit comments