You-Dont-Need-Lodash-Underscore
eslint-plugin-svelte3
You-Dont-Need-Lodash-Underscore | eslint-plugin-svelte3 | |
---|---|---|
25 | 1 | |
18,437 | 377 | |
0.4% | 0.0% | |
6.2 | 3.3 | |
21 days ago | about 1 year ago | |
JavaScript | JavaScript | |
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.
You-Dont-Need-Lodash-Underscore
- What are some of the best libraries you cannot work without?
-
[AskJS] I love new javascript frameworks and libraries. What are some cool ones?
These are all really outdated tips. Moment is deprecated and it is recommended to use dayJs or date-fns. Lodash is discouraged because it has a huge bundle size and nowadays you will find native functions which do most of the things people have used lodash before. https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore
-
No Lodash
https://github.com/you-dont-need/You-Dont-Need-Lodash-Unders... seems to be a more readable alternative to this website.
- An NPM package that you love and a package that you hate
-
Migrate jQuery to VanillaJS - UpgradeJS.com
Adjacently useful is https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore
-
What are your favorite, must-have packages when you're creating a project?
I never used lodash but I found this. Might interest you.
- How to Use Lodash in Svelte?
- Help! I removed unused node modules packages and I optimized the imports but the bundle size does not changed
-
I once tried not to use date-fns
In one of my team's Pull Requests I noticed date-fns being added as dependency for our components library for one usage: transform a timestamp to "MM/yy" string, as it represented a debit card's expiration date. Inspired by You don't (may not) need lodash/underscore, I thought to myself - can't we just implement a 2-digit month and 2-digit year formatting? It looks simple, right?
-
Lodash
Yes and no. We did but are converting to in-house code since most Lodash functions are already available as native JS and/or @babel/preset-env + core-js@latest (see: You don't need Lodash).
eslint-plugin-svelte3
-
I cannot build my sveltekit project with any adapter! failed to resolve import "@sveltekitjs/kit/ssr"
❯ cd test/ Code/sveltekit-beta-app/test ❯ npm init svelte@next npx: installed 1 in 6.413s create-svelte version 2.0.0-next.46 Welcome to the SvelteKit setup wizard! SvelteKit is in public beta now. There are definitely bugs and some feature might not work yet. If you encounter an issue, have a look at https://github.com/sveltejs/kit/issues and open a new one, if it is not already tracked. ✔ Copied project files ✔ Use TypeScript in components? … no You can add TypeScript support later. We'll let you know soon how to do it. ✔ What do you want to use for writing Styles in Svelte components? › SCSS ✔ Added SCSS support. To use it inside Svelte components, add lang="scss" to the attributes of a style tag. ✔ Add ESLint for code linting? … yes ✔ Added ESLint. Readme for ESLint and Svelte: https://github.com/sveltejs/eslint-plugin-svelte3 ✔ Add Prettier for code formatting? … no Want to add other parts to your code base? Visit https://github.com/svelte-add/svelte-adders, a community project of commands to add particular functionality to Svelte projects Next steps: 1: npm install (or pnpm install, or yarn) 2: npm run dev -- --open To close the dev server, hit Ctrl-C Stuck? Visit us at https://svelte.dev/chat Code/sveltekit-beta-app/test is 📦 v0.0.1 via ⬢ v14.16.0 took 19s ❯ npm i WARN @sveltejs/kit > @sveltejs/vite-plugin-svelte: @rollup/[email protected] requires a peer of rollup@^1.20.0||^2.0.0 but none was installed. Packages: +166 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Packages are cloned from the content-addressable store to the virtual store. Content-addressable store is at: /home/user/.pnpm-store/v3 Virtual store is at: node_modules/.pnpm Progress: resolved 167, reused 166, downloaded 1, added 166, done WARN Failed to find "/fsevents/2.3.2" in lockfile during hoisting. Next aliases will not be hoisted: fsevents node_modules/.pnpm/[email protected]/node_modules/esbuild: Running postinstall script... node_modules/.pnpm/[email protected]/node_modules/esbuild: Running postinstall script, done in 101msess: Running postinstall script, done in 9ms devDependencies: + @sveltejs/adapter-node 1.0.0-next.12 + @sveltejs/kit 1.0.0-next.71 + eslint 7.23.0 + eslint-plugin-svelte3 3.1.2 + sass 1.32.8 + svelte 3.37.0 + svelte-preprocess 4.7.0 + vite 2.1.5 Code/sveltekit-beta-app/test is 📦 v0.0.1 via ⬢ v14.16.0 took 2s ❯ npm run build > [email protected] build /home/user/Code/sveltekit-beta-app/test > svelte-kit build vite v2.1.5 building for production... ✓ 18 modules transformed. .svelte/output/client/_app/manifest.json 0.67kb .svelte/output/client/_app/assets/start-fa9b0979.css 0.31kb / brotli: 0.19kb .svelte/output/client/_app/assets/pages/index.svelte-50fcb4c1.css 0.67kb / brotli: 0.26kb .svelte/output/client/_app/pages/index.svelte-f0a6bba9.js 1.58kb / brotli: 0.68kb .svelte/output/client/_app/chunks/vendor-b2527fc7.js 5.14kb / brotli: 2.00kb .svelte/output/client/_app/start-8012d080.js 15.52kb / brotli: 5.29kb vite v2.1.5 building SSR bundle for production... ✓ 1 modules transformed. [vite]: Rollup failed to resolve import "@sveltejs/kit/ssr" from ".svelte/build/app.js". This is most likely unintended because it can break your application at runtime. If you do want to externalize this module explicitly add it to `build.rollupOptions.external` > [vite]: Rollup failed to resolve import "@sveltejs/kit/ssr" from ".svelte/build/app.js". This is most likely unintended because it can break your application at runtime. If you do want to externalize this module explicitly add it to `build.rollupOptions.external` Error: [vite]: Rollup failed to resolve import "@sveltejs/kit/ssr" from ".svelte/build/app.js". This is most likely unintended because it can break your application at runtime. If you do want to externalize this module explicitly add it to `build.rollupOptions.external` at onRollupWarning (/home/user/Code/sveltekit-beta-app/test/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-66eb515d.js:44389:19) at Object.onwarn (/home/user/Code/sveltekit-beta-app/test/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-66eb515d.js:44239:17) at Object.onwarn (/home/user/Code/sveltekit-beta-app/test/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:19784:20) at ModuleLoader.handleResolveId (/home/user/Code/sveltekit-beta-app/test/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18526:26) at /home/user/Code/sveltekit-beta-app/test/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18480:22 at async Promise.all (index 0) at async ModuleLoader.fetchStaticDependencies (/home/user/Code/sveltekit-beta-app/test/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18478:34) at async Promise.all (index 0) at async ModuleLoader.fetchModule (/home/user/Code/sveltekit-beta-app/test/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18454:9) at async Promise.all (index 0) ERROR Command failed with exit code 1. Code/sveltekit-beta-app/test is 📦 v0.0.1 via ⬢ v14.16.0 took 2s ❯
What are some alternatives?
just - A library of dependency-free JavaScript utilities that do just one thing.
eslint-plugin-import - ESLint plugin with rules that help validate proper imports.
eslint-plugin-import - ESLint plugin with rules that help validate proper imports. [Moved to: https://github.com/import-js/eslint-plugin-import]
svelte-adders - Easily add integrations and other functionality to Svelte apps
ramda - :ram: Practical functional Javascript
XO - ❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
babel-plugin-lodash - Modular Lodash builds without the hassle.
SvelteKit - web development, streamlined
stdlib - ✨ Standard library for JavaScript and Node.js. ✨
eslint-plugin-no-unsanitized - Custom ESLint rule to disallows unsafe innerHTML, outerHTML, insertAdjacentHTML and alike
xo - ❤️ JavaScript linter with great defaults [Moved to: https://github.com/xojs/xo]