/
githubmirror
/
meteor
Обзор
Документация
Войти
/
githubmirror
/
meteor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
tools/isobuild/linter-plugin.js
39 строк
685 B
Ben Newman
Implement LintingFile#getFileOptions.
14 мар 2016, 06:39
14 мар 2016, 06:39
711d367
Код
Авторство
О чём код?
import { InputFile } from "./build-plugin.js"; export class LinterPlugin { constructor(pluginDefinition, userPlugin) { this.pluginDefinition = pluginDefinition; this.userPlugin = userPlugin; } } export class LintingFile extends InputFile { constructor(source) { super(); this._source = source; } getContentsAsBuffer() { return this._source.contents; } getPathInPackage() { return this._source.relPath; } getPackageName() { return this._source["package"]; } getSourceHash() { return this._source.hash; } getArch() { return this._source.arch; } getFileOptions() { return this._source.fileOptions || {}; } }