Cookpad・Shopify・GitHub・Airbnb・コミュニティ(bbatsov/rubocop)の各スタイルガイドを項目別にマージしたものです。
private/protectedの可視性を迂回しないよう、sendよりpublic_sendを優先する。
# ❌| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Puzzle</title> | |
| <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Space+Mono&display=swap" rel="stylesheet"> | |
| <style> | |
| :root { | |
| --bg: #07080f; |
| "perfectionist/sort-jsx-props": [ | |
| "error", | |
| { | |
| "type": "unsorted", | |
| "groups": [ | |
| "almost-props", | |
| "unknown", | |
| "standard", | |
| "callback", | |
| "shorthand-prop", |
| module RuboCop | |
| module Cop | |
| module Style | |
| class NoUnless < Base | |
| MSG = 'Do not use `unless`. Use `if !` instead.' | |
| def on_if(node) | |
| return unless node.unless? | |
| add_offense(node) |
| document.oncontextmenu = null; | |
| document.addEventListener("contextmenu", (e) => { | |
| document.oncontextmenu = null; | |
| e.stopPropagation(); | |
| return true; | |
| }, { capture: true }); |
| <html> | |
| <body> | |
| <button onclick="location.hash = '#test'">click</button> | |
| <p /> | |
| <div id="test">test</div> | |
| <style type="text/css"> | |
| @keyframes fadeOut { | |
| 0% { | |
| opacity: 100; | |
| } |
| <html> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="./style.css" /> | |
| </head> | |
| <body> | |
| <div id="container"> | |
| <div id="box1" class="box bg-1">box1</div> | |
| <div id="box2" class="box bg-2">box2</div> | |
| <div id="box3" class="box bg-3">box3</div> | |
| <div id="box4" class="box bg-4">box4</div> |
| #!/bin/bash | |
| SLOP=$(slop -q -f "%x %y %w %h") || exit 1 | |
| read -r X Y W H G ID < <(echo $SLOP) | |
| ffmpeg -threads 0 -y -f x11grab \ | |
| -s "$W"x"$H" \ | |
| -i :0.0+$X,$Y \ | |
| -f alsa \ | |
| -i default \ | |
| -c:v libx264 \ |
| let Liftoff = require("liftoff"); | |
| let { jsVariants } = require("interpret"); | |
| new Liftoff( | |
| { | |
| name: "echo", | |
| configName: "echo.config", | |
| extensions: jsVariants | |
| } | |
| ).launch({}, (env) => { |
| package sample; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.NoSuchElementException; | |
| import com.annimon.stream.Collectors; | |
| import com.annimon.stream.Optional; | |
| import com.annimon.stream.Stream; | |
| import com.annimon.stream.function.Consumer; | |
| import com.annimon.stream.function.Predicate; |