1 | 'use strict';
|
2 |
|
3 |
|
4 | const path = require('path');
|
5 | const projectLocalizationFramework = require('../../lib/utils/project-localization-framework');
|
6 |
|
7 | module.exports = {
|
8 | description: 'Generate default configuration for ember-cli-template-lint.',
|
9 |
|
10 | normalizeEntityName() {
|
11 |
|
12 |
|
13 |
|
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 | };
|