GitHub Trends
10.1K subscribers
15.3K links
See what the GitHub community is most excited about today.

A bot automatically fetches new repositories from https://github.com/trending and sends them to the channel.

Author and maintainer: https://github.com/katursis
Download Telegram
#javascript #arrow_functions #es2015 #es2016 #es2017 #es2018 #es6 #eslint #javascript #linting #naming_conventions #style_guide #style_linter #styleguide #tc39

This guide provides rules for writing clean and consistent JavaScript code. It advises using const and let instead of var for variable declarations, preferring arrow functions over traditional function expressions, and using template strings for string manipulation. It also recommends using object destructuring, array spreads, and default parameters in functions. The guide emphasizes the importance of proper spacing, indentation, and the use of semicolons. Additionally, it covers best practices for classes, modules, and control statements, and encourages thorough testing and performance optimization. Following these guidelines helps ensure that your code is readable, maintainable, and efficient.

https://github.com/airbnb/javascript
#javascript #amd #build_tool #commonjs #compiler #es2015 #es6 #esm #javascript #javascript_compiler #javascript_modules #loaders #module_bundler #plugins #web #web_performance #webpack

Webpack is a tool that helps you manage and bundle your JavaScript files for use in a browser. Here’s what you need to know Webpack combines multiple JavaScript files into one or several bundles, making it easier to load them in your web application.
- **Module Formats** You can use loaders to preprocess files (e.g., converting TypeScript to JavaScript) and plugins to extend Webpack's functionality (e.g., extracting CSS into separate files).
- **Code Splitting** It offers various optimizations to reduce the output size of your JavaScript, such as minifying and deduplicating modules.

Using Webpack can make your web application faster and more efficient by optimizing how your code is loaded and executed. You can install it using npm or yarn with commands like `npm install --save-dev webpack` or `yarn add webpack --dev`.

https://github.com/webpack/webpack
#javascript #ecmascript_proposals #es2015 #es2019 #es6 #es7 #esnext #javascript #js #polyfill #ponyfill #promise #proposal #proposals #shim #symbol #weakmap

core-js is a modular JavaScript library that provides polyfills for modern ECMAScript features up to 2024, including promises, symbols, collections, iterators, typed arrays, and many web standards like URL and structuredClone. It lets you use new JavaScript features in older browsers by loading only the needed parts without polluting the global namespace. It integrates well with tools like Babel and swc for optimized polyfilling. This helps you write modern, compatible code that runs smoothly across different environments, improving development efficiency and user experience. You can customize polyfill usage and even build your own tailored version for your project.

https://github.com/zloirock/core-js