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CACL,KAAM,qCACN,OAJoC,QAAQ,mDAIpC,GACR,QAAO,IACE","file":"/npm/ember-cli-template-lint@2.0.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ember-cli-template-lint@2.0.2/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\n/* eslint-env node */\n\nconst VersionChecker = require('ember-cli-version-checker');\nconst TemplateLinter = require('./broccoli-template-linter');\nconst PrintFailing = require('./lib/commands/print-failing');\n\nmodule.exports = {\n  name: require('./package').name,\n\n  included: function (app) {\n    this._super.included.apply(this, arguments);\n    this._options = app.options['ember-cli-template-lint'] || {};\n\n    if (!('testGenerator' in this._options)) {\n      let VersionChecker = require('ember-cli-version-checker');\n      let checker = new VersionChecker(this.project);\n\n      if (checker.for('ember-cli-qunit', 'npm').exists() || checker.for('ember-qunit', 'npm').exists()) {\n        this._options.testGenerator = 'qunit';\n      } else if (checker.for('ember-cli-mocha', 'npm').exists() || checker.for('ember-mocha', 'npm').exists()) {\n        this._options.testGenerator = 'mocha';\n      } else {\n        this.ui.writeWarnLine(\n          '[ember-cli-template-lint] Test framework detection was unsuccessful. ' +\n          'Please provide a \"testGenerator\" option explicitly to enable the test generators.'\n        );\n      }\n    }\n  },\n\n  includedCommands() {\n    return {\n      'template-lint:print-failing': PrintFailing\n    };\n  },\n\n  lintTree(type, tree) {\n    let checker = new VersionChecker(this);\n    checker.for('ember-cli', 'npm').assertAbove('2.4.1');\n\n    if (type === 'templates') {\n      let ui = this.ui;\n      let mockConsole = {\n        log(data) {\n          ui.writeLine(data);\n        },\n\n        error(data) {\n          ui.writeLine(data, 'ERROR');\n        }\n      };\n\n      return TemplateLinter.create(tree, {\n        annotation: 'TemplateLinter',\n        templatercPath: this.project.root + '/.template-lintrc',\n        testGenerator: this._options.testGenerator,\n        groupName: (this._options.group !== false) ? type : undefined,\n        console: mockConsole,\n        project: this.project\n      });\n    }\n  },\n\n  setupPreprocessorRegistry(type, registry) {\n    const plugin = this._buildPlugin();\n\n    plugin.parallelBabel = {\n      requireFile: __filename,\n      buildUsing: '_buildPlugin',\n      params: {}\n    };\n\n    registry.add('htmlbars-ast-plugin', plugin);\n  },\n\n  _buildPlugin() {\n    let RemoveConfigurationHtmlComments = require('./lib/plugins/remove-configuration-html-comments');\n\n    return {\n      name: 'remove-configuration-html-comments',\n      plugin: RemoveConfigurationHtmlComments(),\n      baseDir() {\n        return __dirname;\n      }\n    };\n  }\n};\n"]}