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-17.6.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.5.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.4.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.3.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.2.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.1.1 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.1.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-17.0.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.29.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.28.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.27.1 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.27.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.26.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.25.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.24.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.23.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.22.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.21.0 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.20.1 node_modules/standard/node_modules/eslint/lib/api.js
govuk_publishing_components-16.20.0 node_modules/standard/node_modules/eslint/lib/api.js