Sha256: ac9be38e77110942395871809725c90ad68378e1b18d95fdb035cc855ba6ca6b

Contents?: true

Size: 597 Bytes

Versions: 43

Compression:

Stored size: 597 Bytes

Contents

/**
 * @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;
    }
});

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
govuk_publishing_components-16.19.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.18.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.17.0 node_modules/standard/node_modules/eslint/lib/api.js