Skip to content

Commit 4a2dca2

Browse files
committedSep 21, 2024·
Fix lint & readd ember-template-lint (dropped while merge)
1 parent 84f0053 commit 4a2dca2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

‎addon/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"babel-plugin-ember-template-compilation": "^2.2.5",
113113
"concurrently": "^9.0.1",
114114
"ember-modifier": "^4.2.0",
115+
"ember-template-lint": "^6.0.0",
115116
"eslint": "^8.57.0",
116117
"eslint-config-prettier": "^9.1.0",
117118
"eslint-plugin-ember": "^12.2.0",

‎pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test-app/tests/acceptance/smoke-modifier-test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,11 @@ module('Acceptance | smoke modifier', function (hooks) {
12181218
for (const index in elements) {
12191219
const element = elements[index];
12201220
if (element.textContent) {
1221-
result += element.textContent.replace(//g, '').replace(/\s+/g, ' ').replace(/^\s+/, '').replace(/\s+$/, '');
1221+
result += element.textContent
1222+
.replace(//g, '')
1223+
.replace(/\s+/g, ' ')
1224+
.replace(/^\s+/, '')
1225+
.replace(/\s+$/, '');
12221226
result += ' ';
12231227
}
12241228
}

0 commit comments

Comments
 (0)
Please sign in to comment.