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