Skip to content

Commit edff80d

Browse files
committed
add ember-template-imports support
1 parent bc421ae commit edff80d

File tree

4 files changed

+84
-9
lines changed

4 files changed

+84
-9
lines changed

.ember-cli

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,17 @@
55

66
Setting `disableAnalytics` to true will prevent any data from being sent.
77
*/
8-
"disableAnalytics": false
8+
"disableAnalytics": false,
9+
10+
/**
11+
Setting `componentAuthoringFormat` to "strict" will force the blueprint generators to generate GJS
12+
or GTS files for the component and the component rendering test. "loose" is the default.
13+
*/
14+
"componentAuthoringFormat": "strict",
15+
16+
/**
17+
Setting `routeAuthoringFormat` to "strict" will force the blueprint generators to generate GJS
18+
or GTS templates for routes. "loose" is the default
19+
*/
20+
"routeAuthoringFormat": "strict"
921
}

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import babelParser from '@babel/eslint-parser';
21
import { FlatCompat } from '@eslint/eslintrc';
32
import js from '@eslint/js';
3+
import emberEslintParser from 'ember-eslint-parser';
44
import ember from 'eslint-plugin-ember';
55
import emberConcurrency from 'eslint-plugin-ember-concurrency';
66
import importHelpers from 'eslint-plugin-import-helpers';
@@ -66,7 +66,7 @@ export default [
6666
...globals.browser,
6767
},
6868

69-
parser: babelParser,
69+
parser: emberEslintParser,
7070
ecmaVersion: 2018,
7171
sourceType: 'module',
7272

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"e2e": "playwright test"
3535
},
3636
"prettier": {
37+
"plugins": [
38+
"prettier-plugin-ember-template-tag"
39+
],
3740
"arrowParens": "avoid",
3841
"printWidth": 120,
3942
"singleQuote": true,
@@ -98,6 +101,7 @@
98101
"ember-data": "5.6.0",
99102
"ember-disable-prototype-extensions": "1.1.3",
100103
"ember-error-route": "0.2.0",
104+
"ember-eslint-parser": "^0.5.11",
101105
"ember-event-helpers": "0.1.1",
102106
"ember-exam": "9.1.0",
103107
"ember-inflector": "6.0.0",
@@ -112,6 +116,7 @@
112116
"ember-scoped-css-compat": "10.2.3",
113117
"ember-source": "6.6.0",
114118
"ember-svg-jar": "2.6.3",
119+
"ember-template-imports": "^4.3.0",
115120
"ember-template-lint": "7.9.2",
116121
"ember-test-selectors": "7.1.0",
117122
"ember-truth-helpers": "4.0.3",
@@ -138,6 +143,7 @@
138143
"postcss-loader": "8.1.1",
139144
"postcss-preset-env": "10.2.4",
140145
"prettier": "3.6.2",
146+
"prettier-plugin-ember-template-tag": "^2.1.0",
141147
"qunit": "2.24.1",
142148
"qunit-console-grouper": "0.3.0",
143149
"qunit-dom": "3.4.0",
@@ -191,5 +197,9 @@
191197
},
192198
"volta": {
193199
"node": "22.18.0"
200+
},
201+
"exports": {
202+
"./tests/*": "./tests/*",
203+
"./*": "./app/*"
194204
}
195205
}

pnpm-lock.yaml

Lines changed: 59 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)