Skip to content

Commit

Permalink
bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Jan 15, 2017
1 parent a07b917 commit 33d6654
Show file tree
Hide file tree
Showing 18 changed files with 978 additions and 6 deletions.
43 changes: 43 additions & 0 deletions .babelrc
@@ -0,0 +1,43 @@
{
"presets": [
"latest",
"react",
"stage-1"
],
"plugins": [
[
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
],
"compact": "true",
"env": {
"production": {
"presets": [
[
"latest", {
"es2015": {
"modules": false
}
}
],
"react",
"stage-1"
],
"plugins": [
"transform-flow-strip-types",
[
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
]
},
"test": {
"sourceMaps": "both"
}
}
}
26 changes: 26 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,26 @@
---
engines:
eslint:
enabled: true
channel: "eslint-3"
checks:
import/no-duplicates:
enabled: false
import/no-extraneous-dependencies:
enabled: false
import/no-named-as-default-member:
enabled: false
import/no-unresolved:
enabled: false
stylelint:
enabled: true
channel: "beta"
ratings:
paths:
- "**.js"
- "**.scss"
exclude_paths:
- coverage/**/*
- dist/**/*
- documentation/**/*
- node_modules/**/*
11 changes: 11 additions & 0 deletions .editorconfig
@@ -0,0 +1,11 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
174 changes: 174 additions & 0 deletions .eslintrc
@@ -0,0 +1,174 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true
},
"globals": {
"$": true,
"$zopim": true,
"Modernizr": false,
"fetch": false,
"ga": false,
"yotpo": false,
"wistia": true,
"_wq": true
},
"plugins": [
"babel",
"flowtype"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "config/webpack.config.js"
}
}
},
"rules": {
"arrow-body-style": [
1,
"as-needed"
],
"arrow-parens": 0,
"block-spacing": 1,
"camelcase": 0,
"class-methods-use-this": 0,
"comma-dangle": ["warn", {
"arrays": "always-multiline",
"objects": "always-multiline",
"functions": "only-multiline"
}],
"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-template-curly-in-string": 1,
"no-trailing-spaces": 1,
"no-underscore-dangle": 0,
"no-unused-vars": 1,
"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-enable",
"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-unresolved": 1,
"import/no-webpack-loader-syntax": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"jsx-a11y/anchor-has-content": 0,
"jsx-a11y/label-has-for": 0,
"jsx-quotes": 1,
"react/forbid-prop-types": 0,
"react/jsx-closing-bracket-location": [1, "line-aligned"],
"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-array-index-key": 0,
"react/no-danger": 0,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"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"
]
}
}
]
}
}
27 changes: 27 additions & 0 deletions .flowconfig
@@ -0,0 +1,27 @@
[ignore]
.*/node_modules/config-chain/test/broken.json
.*/node_modules/npmconf/test/.*
.*/node_modules/react-side-effect/.*

[include]

[libs]
./defs

[options]
module.name_mapper='^actions\/?\(.*\)?$' -> '<PROJECT_ROOT>/app/scripts/actions/\1'
module.name_mapper='^config$' -> '<PROJECT_ROOT>/app/scripts/'
module.name_mapper='^components\/\(.*\)$' -> '<PROJECT_ROOT>/app/scripts/components/\1'
module.name_mapper='^constants\/index$' -> '<PROJECT_ROOT>/app/scripts/constants/'
module.name_mapper='^containers\/\(.*\)$' -> '<PROJECT_ROOT>/app/scripts/containers/\1'
module.name_mapper='^epics\/\(.*\)$' -> '<PROJECT_ROOT>/app/scripts/epics/\1'
module.name_mapper='^reducers\/\(.*\)$' -> '<PROJECT_ROOT>/app/scripts/reducers/\1'
module.name_mapper='^utils\/?\(.*\)?$' -> '<PROJECT_ROOT>/app/scripts/utils/\1'

munge_underscores=true

strip_root=true

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
coverage
node_modules
12 changes: 12 additions & 0 deletions .npmignore
@@ -0,0 +1,12 @@
.codeclimate.yml
.editorconfig
.eslintrc
.flowconfig
.gitignore
.npmignore
.travis.yml
config
coverage
node_modules
src
test
66 changes: 66 additions & 0 deletions .stylelintrc
@@ -0,0 +1,66 @@
{
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-declaration-strict-value",
"stylelint-order",
"stylelint-scss"
],
"rules": {
"at-rule-empty-line-before": [
"always",
{ "except": ["blockless-group", "first-nested"], "ignore": ["after-comment"] }
],
"color-named": "never",
"declaration-colon-newline-after": null,
"declaration-empty-line-before": null,
"declaration-property-value-blacklist": {
"/^border/": ["none"]
},
"function-url-quotes": "always",
"indentation": [2, { "ignore": ["value"] }],
"max-nesting-depth": 5,
"no-duplicate-selectors": true,
"no-empty-source": [true, { "severity": "warning" }],
"no-missing-end-of-source-newline": true,
"number-max-precision": 4,
"property-no-vendor-prefix": true,
"selector-class-pattern": "^((?:-{1,2}|_{2})?[a-z0-9]+(?:(?:-{1,2}|_{2})[a-z0-9]+)*)(?:-{1,2}|_{2})?$",
"selector-max-compound-selectors": 5,
"selector-max-specificity": ["0,6,4"],
"selector-no-qualifying-type": [true, { "ignore": ["class"] }],
"selector-pseudo-element-colon-notation": "single",
"string-quotes": "single",
"unit-blacklist": [["rem", "em"]],
"order/declaration-block-order": [
"custom-properties",
"dollar-variables",
{ "type": "at-rule", "name": "extend" },
{ "type": "at-rule", "name": "include", "hasBlock": false },
"declarations",
{
"type": "at-rule",
"name": "include",
"hasBlock": true
},
"rules",
"at-rules"
],
"order/declaration-block-properties-alphabetical-order": true,
"scale-unlimited/declaration-strict-value": [
["/color/"],
{
"ignoreKeywords": {
"/color/": ["transparent", "inherit"]
}
}
],
"scss/at-import-no-partial-leading-underscore": true,
"scss/at-import-partial-extension-blacklist": ["scss"],
"scss/dollar-variable-colon-space-after": "always",
"scss/dollar-variable-colon-space-before": "never",
"scss/dollar-variable-no-missing-interpolation": true,
"scss/double-slash-comment-whitespace-inside": "always",
"scss/operator-no-unspaced": true,
"scss/selector-no-redundant-nesting-selector": true
}
}
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
language: node_js
node_js:
- '6.2'
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: amaro/react-credit-cards
addons:
code_climate: true

0 comments on commit 33d6654

Please sign in to comment.