From 7264d86db56cbbd0755e1cc38aeb320a5ffa979a Mon Sep 17 00:00:00 2001 From: Nate Hunzaker Date: Thu, 8 Nov 2018 20:00:19 -0800 Subject: [PATCH] Check-in a handeful of configuration files --- .prettierrc | 4 ++++ .tool-versions | 1 + app/javascript/packs/hello_react.jsx | 6 ++---- db/schema.rb | 18 ++++++++++++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .prettierrc create mode 100644 .tool-versions create mode 100644 db/schema.rb diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b2095be --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "semi": false, + "singleQuote": true +} diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..0d37153 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +ruby 2.5.1 diff --git a/app/javascript/packs/hello_react.jsx b/app/javascript/packs/hello_react.jsx index 772fc97..287a371 100644 --- a/app/javascript/packs/hello_react.jsx +++ b/app/javascript/packs/hello_react.jsx @@ -6,9 +6,7 @@ import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' -const Hello = props => ( -
Hello {props.name}!
-) +const Hello = props =>
Hello {props.name}!
Hello.defaultProps = { name: 'David' @@ -21,6 +19,6 @@ Hello.propTypes = { document.addEventListener('DOMContentLoaded', () => { ReactDOM.render( , - document.body.appendChild(document.createElement('div')), + document.body.appendChild(document.createElement('div')) ) }) diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..2611543 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,18 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 0) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + +end