Skip to content

Instantly share code, notes, and snippets.

View viT-1's full-sized avatar

Vitaly Pinchuk viT-1

View GitHub Profile
@viT-1
viT-1 / github-cli.md
Last active December 16, 2021 12:18
#gist-bookmark #github #cli

The past and the future of hub by Mislav Marohnić 30.01.2020

I have been maintaining hub, the command-line git extension, for 10 years. After 2,100 issues and pull requests closed, 18k+ stars on GitHub, and countless hours invested in it, I thought it might be fitting to reflect on its unlikely past, share a bit about my process working on it, and address the future of GitHub on the command line.

@viT-1
viT-1 / gist-profit.md
Created December 16, 2021 12:25
#gist-bookmark #github #gist

Little Known Ways To Utilize GitHub Gists by David Singer 27.02.2020

There are multiple ways to utilize gists. Here are a few examples we have found that are very useful in our daily activities.

  • As a task lists.
  • Organize notes.
  • As a writing platform.
  • To Save links.
  • To Write anonymous text.
  • Track text changes.
@viT-1
viT-1 / gist-search-api.md
Last active December 17, 2021 09:23
#gist-bookmark #gist #api #search
@viT-1
viT-1 / gist-data.md
Last active December 17, 2021 09:54
#gist-bookmark #gist #github
@viT-1
viT-1 / github-master-to-main-branch.md
Created December 17, 2021 12:50
#gist-bookmark #git #github #tolerance
@viT-1
viT-1 / eslint-global-rc.md
Last active December 20, 2021 10:25
#gist-bookmark #eslint #js

eslint since v7 warns about deprecation of root config Now, if you have eslint config in your project and global config, you should define it as root config (loss or copy/paste all recommended rules - preferred way with saving rules relate to project) or define extends key with file system dotted path! 🤦‍♂️

If you want to have shared rules for different projects and don't want hardcoding path to file with common rules, you should create your custom eslint plugin with your rules (may be based on other recommended rules).

@viT-1
viT-1 / makeev-opera.md
Created December 24, 2021 12:24
#gist-bookmark #opera
@viT-1
viT-1 / js-better-to-stop-using-classes.md
Last active January 13, 2022 09:35
#gist-bookmark #js #es6 #es5 #class #oop #prototype #styleguide #decorator #computed #getter-setter
@viT-1
viT-1 / no-default-export.md
Last active January 13, 2022 10:50
#gist-bookmark #eslint #js #esm #export #airbnb

Prefer (or require) named exports from all modules, regardless of how many exports they have! By Thomas Randolph 2019.09.05

Before airbnb-base we can use only one rule: "import/no-default-export": "error" but after airbnb (which want to use default exports) you must to add second rule: "import/prefer-default-export": "off"

Why I've stopped exporting defaults from my JavaScript modules by Nicholas C. Zakas 2019.01.15