Skip to content

Commit 112395b

Browse files
author
Walker Leite
committed
fix(eslint): disable resolver
1 parent ed7ed68 commit 112395b

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

template/.resolver.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
var resolve = require('resolve')
2-
var path = require('path')
1+
// var resolve = require('resolve')
2+
// var path = require('path')
33

44
exports.resolve = function (source, file, config) {
5-
const root = path.resolve(__dirname) + '/'
6-
const clientDir = path.resolve(root, 'client') + '/'
7-
source = source.replace('~', root)
8-
source = source.replace('@', clientDir)
5+
// FIXME: ignoring any resolve errors
6+
return { found: true, path: null }
97

10-
if (resolve.isCore(source)) return { found: true, path: null }
11-
try {
12-
return { found: true, path: resolve.sync(source, opts(file, config)) }
13-
} catch (err) {
14-
return { found: false }
15-
}
8+
// const root = path.resolve(__dirname) + '/'
9+
// const clientDir = path.resolve(root, 'client') + '/'
10+
// source = source.replace('~', root)
11+
// source = source.replace('@', clientDir)
12+
13+
// if (resolve.isCore(source)) return { found: true, path: null }
14+
// try {
15+
// return { found: true, path: resolve.sync(source, opts(file, config)) }
16+
// } catch (err) {
17+
// return { found: false }
18+
// }
1619
}

0 commit comments

Comments
 (0)