The Wayback Machine - https://web.archive.org/web/20200529212622/https://github.com/4Catalyzer/javascript
Skip to content
4Catalyzer JavaScript Tooling
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages Publish May 27, 2020
tools feat: loosen sort rules (#32) Jan 17, 2019
.eslintrc chore(deps): update all non-major dependencies (#592) Mar 16, 2020
.gitignore Add ESLint configs Oct 18, 2016
.travis.yml fix: Incorporate more upstream changes (#624) May 27, 2020
LICENSE Initial commit Apr 29, 2016
README.md drop import sort (#539) Feb 12, 2020
lerna.json feat: bump deps Oct 26, 2018
package.json chore(deps): update all non-major dependencies May 25, 2020
renovate.json Configure Renovate (#531) Nov 25, 2019
yarn.lock fix: Incorporate more upstream changes (#624) May 27, 2020

README.md

4Catalyzer JavaScript Style Guide

An utterly unreasonable JavaScript style guide, mostly for trolling @jquense.

Use the Airbnb JavaScript style guide, except where it conflicts with how prettier would handle it. Also use prettier.

Exceptions

This guide is intended to present general guidelines. Most modules should follow this style guide and pass the associated lint checks. However, specific modules should freely disregard specific guidelines and use corresponding ESLint pragmas whenever necessary. Disable the relevant rule or rules with eslint-disable, and enable them again with eslint-enable when you're done.

function renderApp() {
  /* eslint-disable global-require */
  const ClientApplication = require('./ClientApplication');
  /* eslint-enable global-require */

  ReactDOM.render(
    <AppContainer>
      <ClientApplication />
    </AppContainer>,
    document.getElementById('app'),
  );
}

Directory layout

Follow the React Router huge-apps example. Use shared/ at the deepest possible level for shared modules.

Line width

79 characters, because @taion doesn't want to have to resize the width of his buffers when switching between JavaScript and PEP 8-compliant Python.

You can’t perform that action at this time.