question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposed rule: enforce typography

See original GitHub issue

Here’s a few checks that I would like to have:

  • quotes: use proper “” instead of "".
  • apostrophes: use proper apostrophes instead of '.
  • punctuation_space: enforce one space after a punctuation symbol, unless it’s followed by a new line.
  • double_spaces: no double spaces.

I think code should be excluded by default for all these checks.

For the first two, Atom has a really nice package that might be used as inspiration.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CircleCodecommented, Apr 7, 2017

Please also note that these rules can depend on text language. For example, in French

  • you would have to enforce a non breakable space before every double punctuation sign (; : !)
  • valid quotes are « and »
0reactions
kdeldyckecommented, Jul 2, 2020

Checks on properly balanced quotes and the way they terminates sentences is what I’n trying to achieve at: https://github.com/sindresorhus/awesome-lint/pull/101 . Only managed to create a set of use-cases at the moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proposed Rule - SEC.gov
ACTION: Proposed rule. SUMMARY: The OCC, Board, FDIC, OTS, NCUA, FTC, CFTC, and SEC (the Agencies) are proposing amendments to their rules that ......
Read more >
5 typography rules for non-designers - UX Collective
The first tip for non-designers dealing with typography is simple and will make your life much easier: Stop combining different fonts you ......
Read more >
Typography - Foundations - Human Interface Guidelines
You can download the San Francisco and New York fonts here. ... When necessary, use dynamic system font variants to match the text...
Read more >
Typography Critique Week 6 - Rules & Shapes - YouTube
How to improve your layout and design? How to get better at typography ? If you are interested in the typography course, check...
Read more >
Intellectual property protection of typefaces - Wikipedia
In the United States, the shapes of typefaces are not eligible for copyright, though the shapes may be protected by design patent (although...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found