Skip to content

πŸš€ Vite Vanilla JS & Sass Supercharged Starter β€” Fast setup with ESLint, Stylelint, HTMLHint, modern-normalize, HTML minify, image optimization, and zero-framework simplicity. ⭐️ Star to support my work!

License

Notifications You must be signed in to change notification settings

marcop135/vite-vanilla-sass-lint

Repository files navigation

πŸš€ Vite Vanilla JS & Sass Supercharged Starter

A fast, modern starter template for vanilla JavaScript and Sass, powered by Vite.
Includes comprehensive linting, formatting, image optimization, HTML minification, and legacy browser support.
Perfect for performant, framework-free frontend apps with strict code quality.

✨ Features

  • ⚑️ Lightning-fast development with Vite
  • 🧱 Pure Vanilla JS & Sass (no frameworks)
  • 🧹 Integrated linting for HTML, CSS/SCSS, and JS
  • πŸ–ΌοΈ Automated image optimization
  • πŸ”§ Minified and templated HTML
  • πŸ•ΈοΈ Legacy browser compatibility
  • πŸŒ€ Autoprefixing for cross-browser CSS

πŸ“¦ Tech Stack

  • Build: Vite
  • Language: Vanilla JavaScript
  • Styles: Dart Sass, modern-normalize
  • Linting: ESLint, Stylelint, HTMLHint
  • Formatting: Prettier
  • Images: vite-plugin-imagemin
  • HTML: vite-plugin-html
  • PostCSS: Autoprefixer
  • Legacy: @vitejs/plugin-legacy

πŸ§ͺ Project Structure

  • src/ – Source files (HTML, JS, SCSS, assets)
  • dist/ – Production build output
  • index.html – Entry HTML file
  • vite.config.js – Vite config
  • postcss.config.js – PostCSS config
  • eslint.config.js, .stylelintrc, .htmlhintrc – Lint configs
  • prettier.config.mjs – Formatting config
  • package.json – Scripts & dependencies

🧩 Vite Plugins


βš™οΈ Requirements

πŸš€ Getting Started

npx degit marcop135/vite-vanilla-sass-lint my-app
cd my-app
npm install
npm run dev

πŸ§ͺ Scripts

npm run dev       # Start dev server
npm run build     # Build for production
npm run preview   # Preview production build

🧹 Linting & Formatting

Includes:

  • eslint – Lint JavaScript
  • stylelint – Lint CSS/SCSS
  • htmlhint – Lint HTML/JSX
  • prettier – Format code

πŸ“Œ Run manually:

npx eslint "src/assets/js/*.js"
npx stylelint "src/assets/scss/*.{scss,css}"
npx htmlhint "**/*.html"
npx prettier --check "src/**/*.{js,css,scss,html,md}"

πŸ“š Official Documentation


🀝 Contributing

Contributions welcome! Open issues or submit PRs.

πŸ‘€ Author

Marco Pontili

πŸ“ License

Licensed under the MIT License.

About

πŸš€ Vite Vanilla JS & Sass Supercharged Starter β€” Fast setup with ESLint, Stylelint, HTMLHint, modern-normalize, HTML minify, image optimization, and zero-framework simplicity. ⭐️ Star to support my work!

Topics

Resources

License

Stars

Watchers

Forks