Skip to content

Commit b464b25

Browse files
authored
refactor: we need to ignore the h function import (#3055)
refactor: we need to ignore the h function import
1 parent f6ce0cf commit b464b25

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/db-ui-elements-stencil/.eslintrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@
1717
"react/react-in-jsx-scope": 0,
1818
"react/jsx-no-bind": 0,
1919
"react/no-unknown-property": "off",
20-
"@stencil-community/reserved-member-names": "warn"
20+
"@stencil-community/reserved-member-names": "warn",
21+
"@typescript-eslint/no-unused-vars": [
22+
"error",
23+
// ignore function "h" import: "Import { h } is required In order to render JSX in Stencil apps, the h() function must be imported from @stencil/core"
24+
{
25+
"varsIgnorePattern": "^h$"
26+
}
27+
]
2128
},
2229
"settings": {
2330
//fix: https://github.com/ionic-team/stencil-eslint/issues/16

0 commit comments

Comments
 (0)