Skip to content

Commit f7afb79

Browse files
[UI] removes ember-cli-template-lint and updates customElement addon to fi… (#23006)
removes ember-cli-template-lint and updates customElement addon to fix template-compiler.registerPlugin deprecation
1 parent 87c8aca commit f7afb79

File tree

3 files changed

+82
-112
lines changed

3 files changed

+82
-112
lines changed

ui/packages/consul-ui/lib/custom-element/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ module.exports = {
1010
getTransform: function () {
1111
return {
1212
name: 'custom-element',
13-
plugin: class {
14-
transform(ast) {
15-
this.syntax.traverse(ast, {
16-
ElementNode: (node) => {
13+
plugin: function (env) {
14+
return {
15+
name: 'custom-element',
16+
visitor: {
17+
ElementNode: function (node) {
1718
if (node.tag === 'CustomElement') {
1819
node.attributes = node.attributes
1920
// completely remove these ones, they are not used runtime
@@ -45,9 +46,8 @@ module.exports = {
4546
});
4647
}
4748
},
48-
});
49-
return ast;
50-
}
49+
},
50+
};
5151
},
5252
baseDir: function () {
5353
return __dirname;

ui/packages/consul-ui/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
"ember-cli-sass": "^11.0.1",
119119
"ember-cli-sri": "^2.1.1",
120120
"ember-cli-string-helpers": "^6.1.0",
121-
"ember-cli-template-lint": "^2.0.1",
122121
"ember-cli-terser": "^4.0.2",
123122
"ember-cli-yadda": "^0.7.0",
124123
"ember-collection": "^3.0.0",

0 commit comments

Comments
 (0)