https://github.com/4catalyzer/javascript
4Catalyzer JavaScript Tooling
https://github.com/4catalyzer/javascript
Last synced: about 2 months ago
JSON representation
4Catalyzer JavaScript Tooling
- Host: GitHub
- URL: https://github.com/4catalyzer/javascript
- Owner: 4Catalyzer
- License: mit
- Created: 2016-04-29T20:59:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T22:22:18.000Z (7 months ago)
- Last Synced: 2024-10-23T08:13:51.218Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.92 MB
- Stars: 18
- Watchers: 6
- Forks: 7
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 4Catalyzer JavaScript Style Guide
_An utterly unreasonable JavaScript style guide, mostly for trolling [@jquense](https://github.com/jquense)._
Use the [Airbnb JavaScript style guide](https://github.com/airbnb/javascript), 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.
```js
function renderApp() {
/* eslint-disable global-require */
const ClientApplication = require('./ClientApplication');
/* eslint-enable global-require */ReactDOM.render(
,
document.getElementById('app'),
);
}
```## Directory layout
Follow the [React Router huge-apps example](https://github.com/reactjs/react-router/tree/master/examples/huge-apps). Use `shared/` at the deepest possible level for shared modules.
## Line width
79 characters, because [@taion](https://github.com/taion) doesn't want to have to resize the width of his buffers when switching between JavaScript and PEP 8-compliant Python.