Skip to content
#

style-guide

Here are 414 public repositories matching this topic...

Zamiell
Zamiell commented Apr 7, 2020
  1. The users of this style guide will probably expect that all of the rules that it prescribes will be enforced by eslint. However, this is not the case - there is a secret, non-documented segmentation where some rules are enforced and others are not, because they would be "too noisy on a legacy codebase". An example of a problematic rule like this is covered in issue #2020. I propose that all of
goldbergyoni
goldbergyoni commented Jan 26, 2020

Given the immense popularity of Docker and the need to harden it different per platform (see ideas below) - we'd like to start writing a Docker best practices section.

You're welcome to contribute ideas and write best practices - writing and brainstorming will people is an amazing way to deepen your Docker understanding.

At first, we want to collect ideas for best practices, solidify a list

McSinyx
McSinyx commented Feb 5, 2020

As discussed/hijacked in #344, I proposed to have an option to limit the length of docstring and comments:

  1. Multi-line docstring: max_doc_length, default to max_line_length (current behavior)
  2. Single-line docstring: max_single_doc_length, default to max_doc_length + 3 if max_doc_length is set, otherwise to max_line_length
  3. Comment block: max_comment_length, default to `max
MicahElliott
MicahElliott commented Feb 25, 2020

Parentheses are not required when using the threading macros for functions having no argument specified, so use them only when necessary.

;; good
(-> x fizz :foo first frob)

;; bad; parens add clutter and are not needed
(-> x (fizz) (:foo) (first) (frob))

;; good, parens are necessary with an arg
(-> x
    (fizz a b) 
    :foo
    first 
    (frob x y))
Wayne529
Wayne529 commented Jan 21, 2020

What version of this package are you using?
"eslint-config-standard": "^14.1.0"

What operating system, Node.js, and npm version?
node.js is 10.18.0 and npm version is 6.13.4

What happened?
when i use this npm with eslint, it get something wrong to notice me the errors in the javascript file of my project.like this error:
1:1 error Definition for rule 'no-async-promise-ex

catalog
Jordan-Morrison
Jordan-Morrison commented Mar 2, 2020

The Catalog docs say:

By default, Catalog integrates with Create React App and next.js. Run create-catalog in the same directory as you’ve set up your app.

Upon doing so it installs everything with no errors and says:

Run yarn run catalog-start to get started.

After running yarn run catalog-start I'm getting the following: ```Error: Cannot find module 'babel-plugin-react-requ

jhilden
jhilden commented Aug 20, 2015

For bigger styleguides it's very nice to have a fixed sidebar navigation to:
a) navigate to other parts of the styleguide
b) see where you are in the styleguide

This code inside my main .lsg file already works pretty decently:

@javascript-after transpiler: coffee-script
  $ ->
    $nav = $('<nav id="toc" class="lsg--toc"></nav>')

    $.each $('.lsg--anchor'), (index, anchor) ->
      $anc

Improve this page

Add a description, image, and links to the style-guide topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the style-guide topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.