File tree 2 files changed +9
-12
lines changed
2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
3
- const katulongRootPath = path . resolve ( './node_modules/katulong/' ) ;
4
- const nodeModulesPath = path . resolve ( './node_modules/' ) ;
5
- const pkgPath = path . resolve ( '.' ) ;
6
- const pkg = require ( `${ pkgPath } /package.json` ) ;
7
- const binPath = path . resolve ( './node_modules/.bin' ) ;
3
+ const getKatulongRootPath = ( ) => path . resolve ( './node_modules/katulong/' ) ;
4
+ const getNodeModulesPath = ( ) => path . resolve ( './node_modules/' ) ;
5
+ const getPackagePath = ( ) => path . resolve ( '.' ) ;
6
+ const getBinPath = ( ) => path . resolve ( './node_modules/.bin' ) ;
8
7
9
8
module . exports = {
10
- binPath,
11
- katulongRootPath,
12
- nodeModulesPath,
13
- pkg,
14
- pkgPath
9
+ getBinPath,
10
+ getKatulongRootPath,
11
+ getNodeModulesPath,
12
+ getPackagePath
15
13
} ;
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
rules : {
3
- 'max-nested-callbacks' : 0 ,
4
- 'no-magic-numbers' : 0
3
+ 'max-nested-callbacks' : 0
5
4
}
6
5
} ;
You can’t perform that action at this time.
0 commit comments