Skip to content

Commit

Permalink
fix: fix wrong customElement import + update eslint rule (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariohamann authored Feb 14, 2024
1 parent 947a156 commit 9bc3790
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ module.exports = {
name: 'lit/decorators.js',
importNames: ['customElement'],
message: "Use import 'customElement' from '../../../src/internal/register-custom-element' instead."
},
{
name: 'lit/decorators/custom-element.js',
importNames: ['customElement'],
message: "Use import 'customElement' from '../../../src/internal/register-custom-element' instead."
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from 'lit';
import { customElement } from 'lit/decorators/custom-element.js';
import { customElement } from '../../internal/register-custom-element';
import { HasSlotController } from '../../internal/slot';
import { html, literal } from 'lit/static-html.js';
import { ifDefined } from 'lit/directives/if-defined.js';
Expand Down

0 comments on commit 9bc3790

Please sign in to comment.