Skip to content

Commit

Permalink
Create package
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuggins committed Mar 19, 2018
0 parents commit 26694cb
Show file tree
Hide file tree
Showing 43 changed files with 8,212 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["flow", "react", "stage-1", "es2015"],
"plugins": [
"transform-es2015-modules-commonjs",
"transform-react-display-name",
"transform-class-properties"
]
}
65 changes: 65 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jasmine": true
},
"rules": {
"arrow-body-style": ["off"],
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"object-curly-newline": ["error", { "consistent": true }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-else-return": ["off"],
"func-names": ["off"],
"function-paren-newline": ["error", "consistent"],
"import/extensions": ["error", "never"],
"import/no-unresolved": ["error", { "ignore": ["testHelper", "hocs/", "reducers/", "sagas/", "util/", "values/"] }],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["webpack.config.js", "**/test/**/*.js"]
}],
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/sort-comp": ["error", {
"order": [
"static-methods",
"type-annotations",
"lifecycle",
"renderers",
"handlers",
"everything-else"
],
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"constructor",
"getDefaultProps",
"getInitialState",
"state",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
],
"renderers": [
"render",
"/^render.+$/"
],
"handlers": [
"/^handle.+$/"
]
}
}]
}
}
12 changes: 12 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[ignore]
<PROJECT_ROOT>/node_modules/webpack-cli/\.nyc_output/.*

[include]

[libs]

[lints]

[options]

[strict]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/lib
/node_modules
Loading

0 comments on commit 26694cb

Please sign in to comment.