vite-plugin-ls-lint
v1.0.5-md
Published
Vite plugin to use ls-lint in vite projects
Downloads
4
Maintainers
Readme
Project structure
├── src
├── node_modules
└── .gitignore
└── ...
├── .ls-lint.yml
├── ...
├── package.json
├── package-lock.json
└── vite.config.js/ts
🚀 Quickstart
- Install with your favorite package manager:
- pnpm :
pnpm i vite-plugin-ls-lint --save-dev
- npm :
npm i vite-plugin-ls-lint --save-dev
- pnpm :
npm i @ls-lint/ls-lint --save-dev
npm i @ls-lint/ls-lint vite-plugin-ls-lint --save-dev
- Add the plugin into vite.config.js/ts:
import { defineConfig } from 'vite'
// other imports
import lsLintPlugin from 'vite-plugin-ls-lint'
export default defineConfig({
plugins: [
// ... other plugins
lsLintPlugin()
],
})
- Add your ls-lint.yml configuration file, example:
ls:
.js: snake_case
.ts: snake_case | camelCase
.d.ts: PascalCase
.html: regex:[a-z0-9]+
ignore:
- node_modules
📝 License
Copyright © 2023 Alonso Galicia.
This project is under MIT license.