Skip to content

Instantly share code, notes, and snippets.

View heppokofrontend's full-sized avatar
🥒

Ecma Kawarabe heppokofrontend

🥒
View GitHub Profile

JSDocで型安全にJavaScriptを扱う

TypeScript や Flow ではなく JSDoc を用いた JavaScript のプロジェクトは多くありますが、特別なことをしない限り、 悲しいことに JSDoc を書いても、何も言ってくれません。

/** @type {Array} foo */
let foo = [];

foo = "foo"; // 何も言ってくれない...
@buchiya4th
buchiya4th / stylelint.config.js
Last active February 15, 2024 21:29
stylelintの設定ファイル
module.exports = {
plugins: ['stylelint-order', 'stylelint-scss'],
rules: {
indentation: 2,
'color-hex-case': 'lower', // hex値は小文字指定(大文字を禁止)
'color-hex-length': 'short', // hex値は短い表記(冗長な表記は禁止)
'color-named': 'never', // 名前付きカラー指定を禁止
'color-no-invalid-hex': true, // 無効な16進数の色指定を禁止
'function-comma-space-after': 'always-single-line', // 単一行のカンマ後には空白が必要
'function-comma-space-before': 'never', // カンマ前の空白を禁止
@parmentf
parmentf / GitCommitEmoji.md
Last active May 6, 2024 18:30
Git Commit message Emoji
@zenorocha
zenorocha / README.md
Last active April 6, 2024 16:59
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage