Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Dec 2, 2017
1 parent 86cd550 commit 0c0abe5
Show file tree
Hide file tree
Showing 15 changed files with 7,546 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .babelrc
@@ -0,0 +1,34 @@
{
"presets": [
["env", {
"useBuiltIns": true,
"modules": false,
"targets": {
"browsers": ["last 2 versions", "safari >= 7"]
}
}],
"react",
"stage-1"
],
"plugins": [],
"compact": "false",
"env": {
"production": {
"plugins": [
"transform-flow-strip-types",
"array-includes"
]
},
"commonjs": {
"plugins": [
["transform-es2015-modules-commonjs", { "loose": true }]
]
},
"test": {
"plugins": [
"transform-es2015-modules-commonjs"
],
"sourceMaps": "both"
}
}
}
162 changes: 162 additions & 0 deletions .eslintrc
@@ -0,0 +1,162 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true
},
"globals": {
"cy": false
},
"plugins": [
"babel",
"flowtype"
],
"rules": {
"arrow-body-style": [
1,
"as-needed"
],
"arrow-parens": 0,
"block-spacing": 1,
"brace-style": [1, "stroustrup", { "allowSingleLine": true }],
"camelcase": 0,
"class-methods-use-this": 0,
"comma-dangle": 0,
"dot-notation": 1,
"generator-star-spacing": 0,
"global-require": 0,
"indent": [1, 2, { "SwitchCase": 1 }],
"max-len": 0,
"newline-per-chained-call": [1, { "ignoreChainWithDepth": 5 }],
"no-case-declarations": 1,
"no-confusing-arrow": [1, { "allowParens": true }],
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"no-multi-spaces": [
1, {
"exceptions": {
"VariableDeclarator": true,
"Property": false
}
}
],
"no-nested-ternary": 1,
"no-param-reassign": [1, { "props": false }],
"no-plusplus": 0,
"no-restricted-syntax": [
2,
"DebuggerStatement",
"LabeledStatement",
"WithStatement"
],
"no-return-assign": [2, "except-parens"],
"no-template-curly-in-string": 1,
"no-trailing-spaces": 1,
"no-underscore-dangle": 0,
"no-unused-vars": 1,
"object-curly-newline": 0,
"object-shorthand": [1, "always"],
"one-var": 1,
"padded-blocks": 1,
"prefer-const": 1,
"prefer-template": 1,
"quotes": [1, "single", "avoid-escape"],
"require-jsdoc": [
0, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false
}
}
],
"space-before-function-paren": [1, "never"],
"space-in-parens": 1,
"spaced-comment": [
1,
"always", {
"exceptions": [
"-+"
],
"markers": [
"eslint-disable",
"eslint-disable-line"
]
}
],
"valid-jsdoc": [
1, {
"prefer": {
"return": "returns"
},
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false
}
],
"flowtype/require-parameter-type": [0, { "excludeArrowFunctions": true }],
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"import/no-named-as-default": 0,
"import/no-unresolved": 1,
"import/no-webpack-loader-syntax": 0,
"import/prefer-default-export": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/no-static-element-interactions": 0,
// React
"jsx-quotes": 1,
"react/default-props-match-prop-types": 0,
"react/forbid-prop-types": 0,
"react/jsx-closing-bracket-location": [1, "after-props"],
"react/jsx-filename-extension": 0,
"react/jsx-first-prop-new-line": [1, "multiline"],
"react/jsx-indent": [1, 2],
"react/jsx-indent-props": [1, 2],
"react/jsx-key": 1,
"react/jsx-max-props-per-line": [1, { "maximum": 4 }],
"react/jsx-no-target-blank": 0,
"react/no-danger": 0,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-unused-state": 0,
"react/jsx-boolean-value": 0,
"react/jsx-no-duplicate-props": 1,
"react/jsx-pascal-case": 1,
"react/no-direct-mutation-state": 1,
"react/no-unused-prop-types": 1,
"react/no-unescaped-entities": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": 2,
"react/require-default-props": 0,
"react/sort-prop-types": 1,
"react/sort-comp": [
1,
{
"order": [
"constructor",
"lifecycle",
"everything-else",
"render"
],
"groups": {
"lifecycle": [
"statics",
"contextTypes",
"childContextTypes",
"getChildContext",
"propTypes",
"defaultProps",
"shouldComponentUpdate",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
]
}
}
]
}
}
21 changes: 21 additions & 0 deletions .flowconfig
@@ -0,0 +1,21 @@
[ignore]
.*/node_modules/config-chain/test/broken.json
.*/node_modules/npmconf/test/.*
.*/node_modules/react-side-effect/.*

[include]

[libs]
./defs

[options]
module.name_mapper='^scripts\/?\(.*\)?$' -> '<PROJECT_ROOT>/src/scripts/\1'
module.name_mapper='^styles\/\(.*\)$' -> '<PROJECT_ROOT>/src/styles/\1'

munge_underscores=true

strip_root=true

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
.tmp
coverage
dist
es
lib
node_modules
reports
29 changes: 29 additions & 0 deletions .travis.yml
@@ -0,0 +1,29 @@
language: node_js
node_js:
- '8'
cache:
directories:
- "node_modules"
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- npm test
- npm run test:ui
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
deploy:
provider: npm
email: gilbarbara@gmail.com
api_key:
secure: udTSoiJXNkpRBrbwNtzflguIc/QvRbW/xdajwJqYUxitA409jBO+VhsxwlDJBl0HHHKW7yOwTUXvKAxr92y/6FByVM9yLuduQLOvG9J++l12Lc7fehKXbuNBZZDwjUF3MwftF9mCj4gJTUPrajZjXxUx78hI7dTCjJuJkpXHfZSr00Xu8In59rzr9OhDGBITlMSynE0yEIVBEfboxf9q5uSuJtp6qaK5ohbZqQnz2KIVoI2TUZ9KXpU8765mAd5xxvF4kgpmLYFN9TSd49oipZYPZs4UjlfVrPmKq2nmzepew9HuaXEvg0DLpcI9YjzBkR4AGlRIal2t4gNmy9m2XbaeyTS5q5Aoa+UchR9GS+LLsBIfl+1bI9yqijURZp68xMdQRC2iUrPcJeTKY9WpXEYFjxPmJXqfQl2BAiOlaxCzvNnD2i8th6PpeI+2aU79pWRSwUSQqV4PLjDN+M86cEpVRxZePLte6RIVqtRBes9HY8sQph0MAdzLUTbmMehnB1XzSRbuR77687NrbW8epRsxqRSK2Uqman8ZWSJan9apwP4niVciDJbfVL9M1J7pUZX8HKvfC3l5NJWO69xzQFouSVhtkZZWU4bxGtgS5gM+H/AHKv9/qktoA/K8hGPEFR1S7OoWSP310wetGHMHuXniKQh7glDh/IkpFp8QF14=
on:
tags: true
repo: gilbarbara/react-joyride
addons:
code_climate: true
sauce_connect:
username: react-joyride
jwt:
secure: iSxsgqQnUtWhQ8vfYYXqGvvLA3OIOM+Ny9/R3VW5LMEQaxgsczcIkCQfSAmiBsg7CEZg20+cx+w73mz6cVc/buHe+hoSOZHyu2FrDBQXkikAEH9pce6fVNHZO7GRcCufj7whvZCSwsgc5EzWgfTklYRG6s26s+Ulsw0BZowuypw+ttC6Se6Ks34H5A+LccjcxnlMliuK+WmtBGG63uvA3RhNSU7xNFRjyOVw5mgMOp/l2oSgHRUEi/WgLBFKLfFl/9MnjL7d0F7F24I+4dT54ja2ujcC/wbVyU101E7Rv5DT31ysb4JpUcFaP8u4BqYFsvsM/sclV+pT4nPvXSjyHG180UHS1lcfi2O9CduxiZtjbsfmgL+o5UwzNImfyHuogrXQXqLHznDQQUtxk9CXyYy33IY/U9OZrN2BQM/AYEnr4ZrFkacZinaOXm0XjIqkbLlnwsYSo1Aj80Te7W8MBwt8fl28rIVV9xxRdK2kW8gSu3LgUYhvrq1fknrfQyLzWADhSu5YP8yowUvBGRUGTBb2yq1Rs4Pzsh/CDuaOT3wU5IDXhUHmx7n4k3pQ11cZbGmKRzTmf8PGbIglPc6wo3J6aj01dTg1aPxxaeXMfKAtjoh+Yf6lziVTqt6HImuLksybBKvSQTGILmqQUsEupwk8qCLYtYQoZLW5t0d/U7s=

0 comments on commit 0c0abe5

Please sign in to comment.