unimported
parse-git-diff
unimported | parse-git-diff | |
---|---|---|
6 | 1 | |
1,966 | 26 | |
- | - | |
7.5 | 6.2 | |
2 months ago | 3 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unimported
-
How to Effortlessly Improve a Legacy Codebase Using Robots
Run static analysis e.g. lint with lockfile-lint, Stylelint, ESLint, check for unimported files using unimported, and identify potential security vulnerabilities
- Find and fix dangling files and unused dependencies in your JavaScript projects.
-
what is the easiest way of finding and removing unused dependencies/libraries in project?
I forgot to link the repo: https://github.com/smeijer/unimported
- Find and fix dangling files and unused dependencies in your JavaScript projects
- GitHub - smeijer/unimported: Find and fix dangling files and unused dependencies in your JavaScript projects.
- Unimported – Find unused source files in JavaScript projects
parse-git-diff
-
How to Effortlessly Improve a Legacy Codebase Using Robots
Uses a library called parse-git-diff to construct a dictionary of changed files (and changed lines within each file for each file entry)
What are some alternatives?
eslint-plugin-import - ESLint plugin with rules that help validate proper imports.
betterer - betterer makes it easier to make incremental improvements to your codebase
nx - Smart Monorepos · Fast CI
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
npkill - List any node_modules 📦 dir in your system and how heavy they are. You can then select which ones you want to erase to free up space 🧹
ESLint - Find and fix problems in your JavaScript code.
Ts.ED - :triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
lockfile-lint - Lint an npm or yarn lockfile to analyze and detect security issues
gluegun - A delightful toolkit for building TypeScript-powered command-line apps.
prettier - Prettier is an opinionated code formatter.