Skip to content

Lit

Use Lit support from the lean v3 composer. Install the @santi020k/eslint-config-lit package.

bash
pnpm add -D @santi020k/eslint-config-basic @santi020k/eslint-config-lit eslint
import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({
frameworks: {
lit: true
},
typescript: true
})

With the required config packages installed, the one-line recommended entry auto-detects the framework; custom configs can use defineConfig() without a frameworks object.

  • Recommended rules from eslint-plugin-lit for Lit element templates and lifecycle usage.
  • Recommended rules from eslint-plugin-wc for plain Web Components and custom element best practices.
  • Composition through the same @santi020k/eslint-config-basic entry point as every other framework.
  • Compatibility with advanced overrides if you pass a custom config array or factory instead of true.
  • The config applies to both Lit elements and framework-free custom elements, so it also fits design-system packages.
  • This framework package is a public, optional dependency in v3; the basic composer loads it only when enabled.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.