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-18.0.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.21.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.20.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.19.1 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.19.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.18.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.17.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.16.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.15.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.14.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.13.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.12.2 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.12.1 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.12.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.11.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.10.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.9.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.8.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.7.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.6.1 node_modules/standard/node_modules/eslint/lib/api.js