Skip to content

Commit e8743fb

Browse files
committed
Initial boilerplate commit.
1 parent 0aee4e9 commit e8743fb

File tree

101 files changed

+11654
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+11654
-14
lines changed

.babelrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets": { "node": 6 },
5+
"useBuiltIns": true
6+
}],
7+
"stage-0",
8+
"react"
9+
],
10+
"plugins": ["add-module-exports", "dynamic-import-webpack"],
11+
"env": {
12+
"production": {
13+
"presets": ["react-optimize"],
14+
"plugins": ["babel-plugin-dev-expression"]
15+
},
16+
"development": {
17+
"plugins": [
18+
"transform-class-properties",
19+
"transform-es2015-classes",
20+
"react-hot-loader/babel",
21+
["flow-runtime", {
22+
"assert": true,
23+
"annotate": true
24+
}]
25+
]
26+
}
27+
}
28+
}

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.{json,js,jsx,html,css}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[.eslintrc]
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.md]
19+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
flow-typed/
2+
app/dist/
3+
app/main.js
4+
node_modules
5+
dll
6+
__snapshots__

.eslintrc

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"sourceType": "module",
5+
"allowImportExportEverywhere": true
6+
},
7+
"extends": "airbnb",
8+
"env": {
9+
"browser": true,
10+
"node": true
11+
},
12+
"rules": {
13+
"arrow-parens": ["off"],
14+
"compat/compat": "error",
15+
"consistent-return": "off",
16+
"comma-dangle": "off",
17+
"flowtype-errors/show-errors": "error",
18+
"generator-star-spacing": "off",
19+
"import/no-unresolved": "error",
20+
"import/no-extraneous-dependencies": "off",
21+
"no-console": "off",
22+
"no-use-before-define": "off",
23+
"no-multi-assign": "off",
24+
"promise/param-names": "error",
25+
"promise/always-return": "error",
26+
"promise/catch-or-return": "error",
27+
"promise/no-native": "off",
28+
"react/sort-comp": ["error", {
29+
"order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
30+
}],
31+
"react/jsx-no-bind": "off",
32+
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
33+
"react/prefer-stateless-function": "off"
34+
},
35+
"plugins": [
36+
"flowtype",
37+
"flowtype-errors",
38+
"import",
39+
"promise",
40+
"compat",
41+
"react"
42+
],
43+
"settings": {
44+
"import/resolver": {
45+
"webpack": {
46+
"config": "webpack.config.eslint.js"
47+
}
48+
}
49+
}
50+
}

.flowconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[ignore]
2+
.*/node_modules/fbjs/.*
3+
.*/node_modules/stylelint/.*
4+
.*/node_modules/babel-plugin-flow-runtime/.*
5+
.*/app/main.js
6+
.*/app/dist/.*
7+
.*/release/.*
8+
.*/git/.*
9+
10+
[include]
11+
12+
[libs]
13+
14+
[options]
15+
esproposal.class_static_fields=enable
16+
esproposal.class_instance_fields=enable
17+
esproposal.export_star_as=enable
18+
module.name_mapper.extension='css' -> '<PROJECT_ROOT>/flow/CSSModule.js.flow'
19+
module.name_mapper.extension='styl' -> '<PROJECT_ROOT>/flow/CSSModule.js.flow'
20+
module.name_mapper.extension='scss' -> '<PROJECT_ROOT>/flow/CSSModule.js.flow'
21+
module.name_mapper.extension='png' -> '<PROJECT_ROOT>/flow/WebpackAsset.js.flow'
22+
module.name_mapper.extension='jpg' -> '<PROJECT_ROOT>/flow/WebpackAsset.js.flow'
23+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
24+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text eol=lf
2+
*.png binary
3+
*.ico binary
4+
*.icns binary

.gitignore

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Logs
22
logs
33
*.log
4-
npm-debug.log*
54

65
# Runtime data
76
pids
@@ -14,9 +13,6 @@ lib-cov
1413
# Coverage directory used by tools like istanbul
1514
coverage
1615

17-
# nyc test coverage
18-
.nyc_output
19-
2016
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2117
.grunt
2218

@@ -25,13 +21,33 @@ coverage
2521

2622
# Compiled binary addons (http://nodejs.org/api/addons.html)
2723
build/Release
24+
.eslintcache
2825

29-
# Dependency directories
26+
# Dependency directory
27+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
3028
node_modules
31-
jspm_packages
32-
33-
# Optional npm cache directory
34-
.npm
35-
36-
# Optional REPL history
37-
.node_repl_history
29+
app/node_modules
30+
31+
# OSX
32+
.DS_Store
33+
34+
# flow-typed
35+
flow-typed/npm/*
36+
!flow-typed/npm/module_vx.x.x.js
37+
38+
# App packaged
39+
release
40+
app/main.js
41+
app/main.js.map
42+
app/bundle.js
43+
app/bundle.js.map
44+
app/style.css
45+
app/style.css.map
46+
dist
47+
dll
48+
main.js
49+
main.js.map
50+
51+
.idea
52+
npm-debug.log.*
53+
__snapshots__

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v6.9.5

.stylelintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-standard"
3+
}

.tern-project

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"ecmaVersion": 7,
3+
"libs": [
4+
"browser"
5+
],
6+
"dontLoad": [
7+
"node_modules/**"
8+
],
9+
"plugins": {
10+
"doc_comment": {
11+
"fullDocs": true,
12+
"strong": true
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)