- 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
styleguide
Here are 723 public repositories matching this topic...
Describe the bug
In the config.js addParameters function, if I set isFullscreen: true and open the webpage, it is fullscreen on startup. But if I set isFullscreen: false and open the webpage again, it is still full-screen on startup.
To Reproduce
- Set
isFullscreen: true, open the webpage, - Close the webpage or stop the server
- Set
isFullscreen: false, open the webpa
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
"If/else bodies with multiple statements require braces [readability/braces] " error is given for code like
if constexpr (foo) {
...
} else if constexpr (bar) {
...
} else {
...
}
while
if (foo) {
...
} else if (bar) {
...
} else {
...
}
is fine.
Your example of a well structured URL:
in URL Structure includes PII in the URL which is prohibited in PII parameters
When upgrading to the beta I got this error:
./docs_helpers/DocsWrapper.js
Module not found: Can't resolve 'react-styleguidist/lib/rsg-components/StyleGuide/StyleGuideRenderer'
When I change the path to react-styleguidist/lib/client/rgs-components... it compiled.
Since these module locations have been treated as public API (for overrides), their change in location should be d
I noticed there's no mention of #html_safe in views and helpers. I've found this to be a commonly misused/misunderstood part of Rails, but I'm not sure if it should be considered as 'style'. Any thoughts?
As discussed/hijacked in #344, I proposed to have an option to limit the length of docstring and comments:
- Multi-line docstring:
max_doc_length, default tomax_line_length(current behavior) - Single-line docstring:
max_single_doc_length, default tomax_doc_length + 3ifmax_doc_lengthis set, otherwise tomax_line_length - Comment block:
max_comment_length, default to `max
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))-
Updated
Jun 6, 2020 - Elixir
See the Intermezzo here:
https://docs.python.org/3/tutorial/controlflow.html#intermezzo-coding-style
Which does a good job of summarizing PEP8 and benefits from existing in the official Python tutorial.
https://github.com/pablohpsilva/vuejs-component-style-guide#why-6
Again, grouping makes the component easier to read (name; extends; props, data and computed; components; watch and methods; lifecycle methods, etc.);
export default {
// Do not forget this little guy
name: 'RangeSlider',
// share common functionality with component mixins
mixins: [],
// compos-
Updated
May 31, 2019
-
Updated
Jun 17, 2020 - HTML
The problem
We need a more modern way to edit examples.
- TypeScript
- pug
- SCSS
It would be incredible if we could get contextual autocompletion
Proposed solution
- Use Monaco as the editor
- Update the inbrowser-compiler with
- possible babel-typescript
- pug co
-
Updated
May 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
In /templates/tachyons, I'm not sure I understand what this means:
Be sure to include a link to Tachyons in your document:
<link rel='stylesheet' href='https://unpkg.com/tachyons@4.9.1/css/tachyons.min.css'>
What document?
The kit.config.js file
One of the consumers of our system uses curly braces for content replacement in strings.
Due to the way that SD currently uses curly braces in the build process there is no way I can have a string that includes the braces for consumption.
I have tried a number of ways to escape the braces with no luck
Other languages and templating systems seem to use the concept of using double curly b
WPS421 has pprint in the blacklist, however does not catch a call to pprint.pprint().
This is collect references/links of projects using OpenMoji! Looking forward to see examples of OpenMoji in the wild! :) Please post here. Thanks!
Rule Names should be written with their most general part first and their most specific part last is not usual because ex. infoLabel, cancelButton are very common names in iOS which is also encouraged in the next rule Include a hint about type in a name if it would otherwise be ambiguous examples.
https://github.com/airbnb/swift#general-part-first
https://github.com/airbnb/swift#hi
-
Updated
May 12, 2020
-
Updated
Oct 7, 2018 - Ruby
-
Updated
Jun 8, 2020 - Python
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
Hi,
I'm creating this issue as a follow-up to a question on twitter.
The idea is to be able to follow this issue to be notified, when there are plugins/linters available.
Ideas for implementation:
- Eslint plugin like gajus/eslint-plugin-sql
- php-cs-fixer plugin
- standalone linter l
-
Updated
Apr 21, 2020 - PHP
Improve this page
Add a description, image, and links to the styleguide topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the styleguide topic, visit your repo's landing page and select "manage topics."