Lit
Use Lit support from the main v2 package. Application projects no longer install a separate @santi020k/eslint-config-lit package.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-basicnpm install -D @santi020k/eslint-config-basicyarn add -D @santi020k/eslint-config-basicbun add -d @santi020k/eslint-config-basicUsing Lite
Section titled “Using Lite”The default install above remains recommended. If you use the manual-dependency lite package, install this framework config package too:
pnpm add -D @santi020k/eslint-config-lite @santi020k/eslint-config-lit eslintnpm install -D @santi020k/eslint-config-lite @santi020k/eslint-config-lit eslintyarn add -D @santi020k/eslint-config-lite @santi020k/eslint-config-lit eslintbun add -d @santi020k/eslint-config-lite @santi020k/eslint-config-lit eslintConfigure
Section titled “Configure”import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({ frameworks: { lit: true }, typescript: true})Most projects can also rely on auto-detection and use eslintConfig() with no framework object.
What It Adds
Section titled “What It Adds”- Recommended rules from
eslint-plugin-litfor Lit element templates and lifecycle usage. - Recommended rules from
eslint-plugin-wcfor plain Web Components and custom element best practices. - Composition through the same
@santi020k/eslint-config-basicentry 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.
- The internal package still exists in the monorepo for modular development and generated API docs.
Related Pages
Section titled “Related Pages”Did this page help?
One click helps us spot documentation that needs another pass. No personal data is sent.