Skip to content

Instantly share code, notes, and snippets.

@MRWS
MRWS / repl.js
Last active December 5, 2018 15:25 — forked from blackwright/repl.js
Sequelize REPL
// Require the REPL module
// and models
const repl = require('repl').start({})
const models = require('./models')
// Make the `models` object
// a global variable in the
// REPL
repl.context.models = models
git push origin local-name:remote-name
@MRWS
MRWS / .eslintrc
Last active August 24, 2018 15:15
ESLint config
{
"extends": ["react-app", "eslint:recommended"],
"rules": {
"array-bracket-spacing": [1, "never"],
"arrow-spacing": 1,
"brace-style": 1,
"camelcase": 1,
"comma-dangle": 1,
"comma-spacing": 1,
"comma-style": 1,
@MRWS
MRWS / .rubocop.yml
Last active August 23, 2018 22:15
Rubocop config
inherit_gem:
rubocop-rails_config:
- config/rails.yml
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes