Skip to content

Commit

Permalink
chore: add rule to prevent import custom-element import from lit
Browse files Browse the repository at this point in the history
  • Loading branch information
mariohamann committed Sep 25, 2023
1 parent 6a2787f commit 8bd854f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,19 @@ module.exports = {
'@typescript-eslint/method-signature-style': 'warn',
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-parameter-properties': 'error',
'@typescript-eslint/strict-boolean-expressions': 'off'
'@typescript-eslint/strict-boolean-expressions': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'lit/decorators.js',
importNames: ['customElement'],
message: "Use import 'customElement' from '../../../src/internal/register-custom-element' instead."
}
]
}
]
}
},
{
Expand Down

0 comments on commit 8bd854f

Please sign in to comment.