unimport
prospector
Our great sponsors
unimport | prospector | |
---|---|---|
2 | 3 | |
459 | 1,905 | |
7.0% | 0.5% | |
8.5 | 5.8 | |
3 days ago | 2 days ago | |
TypeScript | Python | |
MIT License | GNU General Public License v3.0 only |
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.
unimport
-
using types without import them
You looked through https://github.com/antfu/unplugin-auto-import/issues/61, https://github.com/unjs/unimport/pull/218 and https://github.com/antfu/unplugin-auto-import/issues/61?
-
Better DX in JS apps with unplugin-auto-import
AutoImport({ // targets to transform include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx /\.vue$/, /\.vue\?vue/, // .vue /\.md$/, // .md ], // global imports to register imports: [ // presets 'vue', 'vue-router', // custom { '@vueuse/core': [ // named imports 'useMouse', // import { useMouse } from '@vueuse/core', // alias ['useFetch', 'useMyFetch'], // import { useFetch as useMyFetch } from '@vueuse/core', ], 'axios': [ // default imports ['default', 'axios'], // import { default as axios } from 'axios', ], '[package-name]': [ '[import-names]', // alias ['[from]', '[alias]'], ], }, ], // Enable auto import by filename for default module exports under directories defaultExportByFilename: false, // Auto import for module exports under directories // by default it only scan one level of modules under the directory dirs: [ // './hooks', // './composables' // only root modules // './composables/**', // all nested modules // ... ], // Filepath to generate corresponding .d.ts file. // Defaults to './auto-imports.d.ts' when `typescript` is installed locally. // Set `false` to disable. dts: './auto-imports.d.ts', // Auto import inside Vue template // see https://github.com/unjs/unimport/pull/15 and https://github.com/unjs/unimport/pull/72 vueTemplate: false, // Custom resolvers, compatible with `unplugin-vue-components` // see https://github.com/antfu/unplugin-auto-import/pull/23/ resolvers: [ /* ... */ ], // Generate corresponding .eslintrc-auto-import.json file. // eslint globals Docs - https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals eslintrc: { enabled: false, // Default `false` filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable') }, })
prospector
-
The Ruff python linter is insanely good
Just before discovering ruff, I was already migrating to PyCQA/prospector to simplify my configs...
-
Prospector vs running pylint/pycodestyle/mypy/etc individually?
Looking into it, I'm surprised as well. They're also both PyCQA projects, albeit with different maintainers. It's also kind of odd that prospector's pre-commit config runs both prospector and flake8 -- that seems redundant.
What are some alternatives?
unplugin-icons - 🤹 Access thousands of icons as components on-demand universally.
Flake8 - flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
pytype - A static type analyzer for Python code
Pylint - It's not just a linter that annoys you!
MonkeyType - A Python library that generates static type annotations by collecting runtime types
pylama - Code audit tool for python.
monkeytype - The most customizable typing website with a minimalistic design and a ton of features. Test yourself in various modes, track your progress and improve your speed.
PythonBuddy - 1st Online Python Editor With Live Syntax Checking and Execution
unplugin-auto-import - Auto import APIs on-demand for Vite, Webpack and Rollup
mypy - Optional static typing for Python
dotenv-linter - ⚡️Lightning-fast linter for .env files. Written in Rust 🦀