cadfa70e60
* #708 apply strictier linting rules and fix simple eslint bugs * #708 fix eslint errors relate to promise * #708 fix eslint import/no-extraneous-dependencies * #708 fix eslint errors of react-hook * #708 enable eslint check for typescript --------- Co-authored-by: lethemanh <lethemanh@lethemanhs-MacBook-Pro.local>
10 lines
196 B
TypeScript
10 lines
196 B
TypeScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
process(sourceText, sourcePath, options) {
|
|
return {
|
|
code: `module.exports = ${JSON.stringify(path.basename(sourcePath))};`
|
|
}
|
|
}
|
|
}
|