Editor Setup
Syntax Highlighting
- For VS Code, you can use the
lit-plugin
extension. - For Vim, we recommend the
vim-jsx-pretty
plugin. - For Neovim, we recommend
nvim-treesitter
with theJavaScript
,TypeScript
andtsx
parsers installed. - For syntax highlighting in other code editors, lit.dev recommends the
ts-lit-plugin
TypeScript compiler plugin.
LSP features (eg. Intellisense)
- For VS Code, you can use the
lit-plugin
extension. - For LSP features in other code editors, lit.dev recommends the
ts-lit-plugin
TypeScript compiler plugin.
Formatting
- Prettier is recommended for code formatting.
Linting
- For linting, lit.dev recommends
eslint-plugin-lit
for ESLint.
Type-Checking
- We recommend TypeScript and
lit-analyzer
for type-checking.