{"repo":"43081j/eslint-plugin-lit","free":true,"listed":false,"github":"https://github.com/43081j/eslint-plugin-lit","clone":"git clone https://github.com/43081j/eslint-plugin-lit.git","description":"lit-html support for ESLint","language":"TypeScript","stars":137,"topics":["lit","polymer","web-components","eslint","eslintplugin","hacktoberfest"],"license":"MIT","category":"ui-components","readme_excerpt":"eslint-plugin-lit ESLint plugin for Lit. Install Assuming you already have ESLint installed, run: Usage Then extend the recommended eslint config: Or if you're using (flat) config files, add to your eslint.config.js : You can also specify settings that will be shared across all the plugin rules. Custom Configuration If you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file: List of supported rules - lit/attribute-names - lit/attribute-value-entities - lit/ban-attributes - lit/binding-positions - lit/lifecycle-super - lit/no-classfield-shadowing - lit/no-duplicate-template-bindings - lit/no-invalid-escape-sequences - lit/no-invalid-html - lit/no-legacy-imports - lit/no-legacy-template-syntax - lit/no-native-attributes - lit/no-private-properties - lit/no-property-change-update - lit/no-template-arrow - lit/no-template-bind - lit/no-template-map - lit/no-this-assign-in-render - lit/no-useless-template-literals - lit/no-value-attribute - lit/prefer-nothing - lit/prefer-query-decorators - lit/prefer-static-styles - lit/quoted-expressions - lit/value-after-constraints Shareable configurations Recommended This plugin exports a recommended configuration that enforces Lit good practices. To enable this configuration use the extends property in your .eslintrc config file: Usage with eslint-plugin-wc We highly recommend you also depend on eslint-plugin-wc as it will provide additional rules for web components in general: Then","default_branch":null,"files":null,"tree":[],"storefront":"/r/43081j","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/43081j/eslint-plugin-lit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}