Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
tcg committed Nov 14, 2017
0 parents commit d3c0b8b
Show file tree
Hide file tree
Showing 69 changed files with 161,559 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [
"transform-class-properties"
],
"presets": [
"env",
"react"
]
}
105 changes: 105 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
module.exports = {
"installedESLint": true,
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true,
"experimentalObjectRestSpread": true,
"experimentalClassProperties": true
},
"env": {
"browser": true,
"node": true,
"jasmine": true
},
"plugins": [
"react",
],
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
"semi": 0,
"max-len": 0,
"object-curly-spacing": [2, "always"],
"indent": [2, 2, { "SwitchCase": 1 }],
"no-unused-vars": 1,
"no-underscore-dangle": 0,
"one-var": 0,
"one-var-declaration-per-line": 0,
"no-multiple-empty-lines": 0,
"no-negated-condition": 0,
"arrow-parens": 0,
"arrow-body-style": [ 1, "always" ],
"comma-dangle": 0,
"camelcase": 0,
"padded-blocks": 0,
"eol-last": 0,
"array-bracket-spacing": 0,
"no-useless-escape": 0,
"no-tabs": 0,
"operator-linebreak": 0,
"no-control-regex": 0,
"no-else-return": 0,
"no-plusplus": 0,
// jsx rules
"jsx-quotes" : 0,
"react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }],
"react/display-name": 0,
"react/no-danger": 0,
"react/forbid-prop-types": 0,
"react/jsx-boolean-value": 0,
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": 0,
"react/jsx-handler-names": 1,
"react/jsx-indent-props": [1, 2],
"react/jsx-indent": [1, 2],
"react/jsx-key": 1,
"react/jsx-max-props-per-line": 0,
"react/jsx-no-bind": 0,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 1,
"react/jsx-pascal-case": 1,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 1,
"react/no-deprecated": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 0,
"react/no-direct-mutation-state": 1,
"react/no-is-mounted": 1,
"react/no-multi-comp": 0,
"react/no-set-state": 0,
"react/no-string-refs": 0,
"react/no-unknown-property": 1,
"react/prefer-es6-class": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 1
}
};
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Dependencies
node_modules
npm-debug.log
.DS_Store
dist
node_modules
*.log
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.babelrc
src
CONTRIBUTING.md
2 changes: 2 additions & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
21 changes: 21 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { configure } from '@storybook/react';
import { setDefaults } from '@storybook/addon-info';

// addon-info
setDefaults({
header: true, // Toggles display of header with component name and description
inline: true, // Displays info inline vs click button to view
source: true, // Displays the source of story Component
})

const req = require.context('../src', true, /\.stories\.js$/)

function loadStories() {
req.keys().forEach((filename) => req(filename))
}

function config() {
loadStories()
}

configure(config, module);
9 changes: 9 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const path = require('path');

module.exports = (storybookBaseConfig, configType) => {
if (configType === 'PRODUCTION') {
// Removing uglification until we figure out a fix for that.
storybookBaseConfig.plugins.pop();
}
return storybookBaseConfig;
};
50 changes: 50 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Contribution Guide

We are so excited and thankful that you are interested in contributing to this project!
Should you decide to contribute to the YouVersion React Component Library,
we came up with a few guidelines to help make your experience pleasant and painless.


## How can I contribute?


### Reporting Bugs

Before reporting a bug, please check the [Issues List](https://in.thewardro.be/web/youversion-react-components/issues) to see if it's already been reported.

If you believe you've found an issue that isn't covered in the issues list, please submit a new issue to this project's [Issues List](https://in.thewardro.be/web/youversion-react-components/issues). Here's some guidelines, inspired by the [Atom](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#reporting-bugs) project, that can make things easier:

* Use a clear and descriptive title for the issue to identify the problem.
* Describe the exact steps which reproduce the problem in as many details as possible.
* Provide specific examples to demonstrate the steps. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples.
* Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior.
* Include screenshots and animated GIFs. When words fail, images can fill in the gaps.


### Code Contributions and Pull/Merge Requests


#### Check our issues list.
We don't typically accept pull requests for anything that isn't in our list of issues. If you're looking for a place to get started, dive right on into those issues and find one that tickles your fancy. We have some special issue labels to help you get started:

* *[First-time Contributor](https://in.thewardro.be/web/youversion-react-components/issues?label_name%5B%5D=first-timers-only)*: These are low-hanging fruit that we believe would be a great place to get your feet wet. We ask that you limit yourself to only one or two of these. We want to leave plenty of easy grabbing on the lower limbs for all the newbies to share.

* *[Volunteer](https://in.thewardro.be/groups/web/issues?label_name%5B%5D=Volunteer)*: Issues marked as "Volunteer" are usually well-documented, and ready for a volunteer or contributor to handle without a lot of guidance.


#### Contributing Code

1. Fork or clone this repository

git clone [email protected]:web/youversion-react-components.git

2. Install / Setup *(More install details in the [README](/README))*

npm install


3. Make sure tests pass before and after your changes, via

npm run test

4. [Submit a merge request](https://docs.gitlab.com/ee/gitlab-basics/add-merge-request.html)
Loading

0 comments on commit d3c0b8b

Please sign in to comment.