You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable prettier integration (to isolate the problem to eslint):
Remove eslint-config-prettier package
Remove eslint-plugin-prettier package
Remove extendsplugin:prettier/recommended
yarn
Add app/components/foo.gjs with the following content
Run yarn lint:js (which is eslint . --cache)
0 characters
export default <template></template>;
/private/tmp/zomg/app/components/foo.gjs
0:0 error Preprocessing error: Cannot split a chunk that has already been edited (1:13 – "</template>")
✖ 1 problem (1 error, 0 warnings)
1 character
export default <template>h</template>;
/private/tmp/zomg/app/components/foo.gjs
0:0 error Preprocessing error: Cannot overwrite across a split point
✖ 1 problem (1 error, 0 warnings)
2 characters
export default <template>hi</template>;
/private/tmp/zomg/app/components/foo.gjs
0:0 error Preprocessing error: Cannot overwrite a zero-length range – use appendLeft or prependRight instead
✖ 1 problem (1 error, 0 warnings)
3 characters
export default <template>hi!</template>;
✨ Done in 0.59s.
(The result is the same if you put the template tag inside a class body)
The text was updated successfully, but these errors were encountered:
ember new --yarn zomg
, as of now that gives you:ember-cli@5.0.0
eslint@8.43.0
eslint-plugin-ember@11.8.0
eslint-config-prettier
packageeslint-plugin-prettier
packageextends
plugin:prettier/recommended
yarn
app/components/foo.gjs
with the following contentyarn lint:js
(which iseslint . --cache
)0 characters
1 character
2 characters
3 characters
(The result is the same if you put the template tag inside a class body)
The text was updated successfully, but these errors were encountered: