UNPKG

738 BJavaScriptView Raw
1'use strict';
2/*eslint-env node */
3
4const path = require('path');
5const projectLocalizationFramework = require('../../lib/utils/project-localization-framework');
6
7module.exports = {
8 description: 'Generate default configuration for ember-cli-template-lint.',
9
10 normalizeEntityName() {
11 // this prevents an error when the entityName is
12 // not specified (since that doesn't actually matter
13 // to us
14 },
15
16 supportsAddon() {
17 return true;
18 },
19
20 filesPath() {
21 let type;
22
23 if (projectLocalizationFramework(this.project) || process.env.FORCE_LOCALIZED_FOR_TESTING) {
24 type = 'recommended-with-bare-strings';
25 } else {
26 type = 'recommended';
27 }
28
29 return path.join(this.path, type + '-files');
30 }
31};