mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
29 lines
597 B
JavaScript
29 lines
597 B
JavaScript
|
/**
|
||
|
* @fileoverview Expose out ESLint and CLI to require.
|
||
|
* @author Ian Christian Myers
|
||
|
*/
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
const Linter = require("./linter");
|
||
|
|
||
|
module.exports = {
|
||
|
Linter,
|
||
|
CLIEngine: require("./cli-engine"),
|
||
|
RuleTester: require("./testers/rule-tester"),
|
||
|
SourceCode: require("./util/source-code")
|
||
|
};
|
||
|
|
||
|
let deprecatedLinterInstance = null;
|
||
|
|
||
|
Object.defineProperty(module.exports, "linter", {
|
||
|
enumerable: false,
|
||
|
get() {
|
||
|
if (!deprecatedLinterInstance) {
|
||
|
deprecatedLinterInstance = new Linter();
|
||
|
}
|
||
|
|
||
|
return deprecatedLinterInstance;
|
||
|
}
|
||
|
});
|