-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Lo
committed
Feb 24, 2017
0 parents
commit f2021f2
Showing
48 changed files
with
7,834 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{ | ||
"env": { // http://eslint.org/docs/user-guide/configuring.html#specifying-environments | ||
"browser": true, // browser global variables | ||
"node": true, // Node.js global variables and Node.js-specific rules | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"rules": { | ||
/** | ||
* Strict mode | ||
*/ | ||
"strict": [2, "safe"], // http://eslint.org/docs/rules/strict | ||
|
||
/** | ||
* ES6 | ||
*/ | ||
"no-var": 2, // http://eslint.org/docs/rules/no-var | ||
"prefer-const": 2, // http://eslint.org/docs/rules/prefer-const | ||
|
||
/** | ||
* Variables | ||
*/ | ||
"no-shadow": 2, // http://eslint.org/docs/rules/no-shadow | ||
"no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names | ||
"no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars | ||
"vars": "all", | ||
"args": "after-used" | ||
}], | ||
"no-use-before-define": [0, "nofunc"], // http://eslint.org/docs/rules/no-use-before-define | ||
|
||
/** | ||
* Possible errors | ||
*/ | ||
"comma-dangle": [2, "always-multiline"], // http://eslint.org/docs/rules/comma-dangle | ||
"no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign | ||
"no-console": 1, // http://eslint.org/docs/rules/no-console | ||
"no-debugger": 1, // http://eslint.org/docs/rules/no-debugger | ||
"no-alert": 1, // http://eslint.org/docs/rules/no-alert | ||
"no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition | ||
"no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys | ||
"no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case | ||
"no-empty": 2, // http://eslint.org/docs/rules/no-empty | ||
"no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign | ||
"no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast | ||
"no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi | ||
"no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign | ||
"no-inner-declarations": [2, "both"], // http://eslint.org/docs/rules/no-inner-declarations | ||
"no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp | ||
"no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace | ||
"no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls | ||
"no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays | ||
"no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable | ||
"use-isnan": 2, // http://eslint.org/docs/rules/use-isnan | ||
"block-scoped-var": 0, // http://eslint.org/docs/rules/block-scoped-var | ||
|
||
/** | ||
* Best practices | ||
*/ | ||
"consistent-return": 2, // http://eslint.org/docs/rules/consistent-return | ||
"curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly | ||
"default-case": 2, // http://eslint.org/docs/rules/default-case | ||
"dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation | ||
"allowKeywords": true | ||
}], | ||
"eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq | ||
"guard-for-in": 0, // http://eslint.org/docs/rules/guard-for-in | ||
"no-caller": 2, // http://eslint.org/docs/rules/no-caller | ||
"no-else-return": 2, // http://eslint.org/docs/rules/no-else-return | ||
"no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null | ||
"no-eval": 2, // http://eslint.org/docs/rules/no-eval | ||
"no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind | ||
"no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough | ||
"no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal | ||
"no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval | ||
"no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks | ||
"no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func | ||
"no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str | ||
"no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign | ||
"no-new": 2, // http://eslint.org/docs/rules/no-new | ||
"no-new-func": 2, // http://eslint.org/docs/rules/no-new-func | ||
"no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers | ||
"no-octal": 2, // http://eslint.org/docs/rules/no-octal | ||
"no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape | ||
"no-param-reassign": 2, // http://eslint.org/docs/rules/no-param-reassign | ||
"no-proto": 2, // http://eslint.org/docs/rules/no-proto | ||
"no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare | ||
"no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign | ||
"no-script-url": 2, // http://eslint.org/docs/rules/no-script-url | ||
"no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare | ||
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences | ||
"no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal | ||
"no-with": 2, // http://eslint.org/docs/rules/no-with | ||
"radix": 2, // http://eslint.org/docs/rules/radix | ||
"vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top | ||
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife | ||
"yoda": 2, // http://eslint.org/docs/rules/yoda | ||
|
||
/** | ||
* Style | ||
*/ | ||
"indent": [2, 2], // http://eslint.org/docs/rules/indent | ||
"brace-style": [2, // http://eslint.org/docs/rules/brace-style | ||
"1tbs", { | ||
"allowSingleLine": true | ||
}], | ||
"quotes": [ | ||
2, "single", "avoid-escape" // http://eslint.org/docs/rules/quotes | ||
], | ||
"camelcase": [2, { // http://eslint.org/docs/rules/camelcase | ||
"properties": "never" | ||
}], | ||
"comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing | ||
"before": false, | ||
"after": true | ||
}], | ||
"comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style | ||
"eol-last": 2, // http://eslint.org/docs/rules/eol-last | ||
"func-names": 1, // http://eslint.org/docs/rules/func-names | ||
"key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing | ||
"beforeColon": false, | ||
"afterColon": true | ||
}], | ||
"keyword-spacing": 2, // http://eslint.org/docs/rules/keyword-spacing | ||
"max-len": [2, 80], // http://eslint.org/docs/rules/max-len | ||
"new-cap": [2, { // http://eslint.org/docs/rules/new-cap | ||
"newIsCap": true, | ||
"capIsNew": false | ||
}], | ||
"no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines | ||
"max": 2 | ||
}], | ||
"no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary | ||
"no-new-object": 2, // http://eslint.org/docs/rules/no-new-object | ||
"no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func | ||
"no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces | ||
"no-extra-parens": [2, "functions"], // http://eslint.org/docs/rules/no-extra-parens | ||
"no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle | ||
"no-warning-comments": 0, // http://eslint.org/docs/rules/no-warning-comments | ||
"object-curly-spacing": [2, "always"], // http://eslint.org/docs/rules/object-curly-spacing | ||
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var | ||
"padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks | ||
"semi": [2, "always"], // http://eslint.org/docs/rules/semi | ||
"semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing | ||
"before": false, | ||
"after": true | ||
}], | ||
"space-before-blocks": 2, // http://eslint.org/docs/rules/space-before-blocks | ||
"space-before-function-paren": [2, "never"], // http://eslint.org/docs/rules/space-before-function-paren | ||
"space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops | ||
"spaced-comment": 2, // http://eslint.org/docs/rules/spaced-comment | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
.nyc_output/ | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage/ | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# TypeScript loader cache | ||
.awcache | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules/ | ||
dist/ | ||
.vscode/ | ||
typings/ | ||
|
||
*.js.map | ||
src/**/*.js | ||
|
||
# System artifacts | ||
.DS_Store | ||
|
||
# Webpack bundle size stats | ||
stats.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"rules": { | ||
"at-rule-empty-line-before": ["always", { | ||
"except": ["blockless-after-blockless"], | ||
"ignore": ["after-comment"], | ||
}], | ||
"at-rule-no-vendor-prefix": true, | ||
"block-closing-brace-newline-after": "always", | ||
"block-closing-brace-newline-before": "always-multi-line", | ||
"block-closing-brace-space-before": "always-single-line", | ||
"block-no-empty": true, | ||
"block-opening-brace-newline-after": "always-multi-line", | ||
"block-opening-brace-space-after": "always-single-line", | ||
"block-opening-brace-space-before": "always", | ||
"color-hex-case": "lower", | ||
"color-hex-length": "short", | ||
"color-no-invalid-hex": true, | ||
"comment-empty-line-before": "always", | ||
"comment-whitespace-inside": "always", | ||
"declaration-bang-space-after": "never", | ||
"declaration-bang-space-before": "always", | ||
"declaration-block-no-shorthand-property-overrides": true, | ||
"declaration-block-trailing-semicolon": "always", | ||
"declaration-block-semicolon-newline-after": "always-multi-line", | ||
"declaration-block-semicolon-space-after": "always-single-line", | ||
"declaration-block-semicolon-space-before": "never", | ||
"declaration-block-single-line-max-declarations": 1, | ||
"declaration-colon-newline-after": "always-multi-line", | ||
"declaration-colon-space-after": "always-single-line", | ||
"declaration-colon-space-before": "never", | ||
"function-calc-no-unspaced-operator": true, | ||
"function-comma-newline-after": "always-multi-line", | ||
"function-comma-space-after": "always-single-line", | ||
"function-comma-space-before": "never", | ||
"function-linear-gradient-no-nonstandard-direction": true, | ||
"function-parentheses-newline-inside": "always-multi-line", | ||
"function-parentheses-space-inside": "never-single-line", | ||
"function-whitespace-after": "always", | ||
"function-url-quotes": "always", | ||
"indentation": 2, | ||
"max-empty-lines": 1, | ||
"max-line-length": [ 80, { | ||
"ignore": "non-comments", | ||
} ], | ||
"media-feature-colon-space-after": "always", | ||
"media-feature-colon-space-before": "never", | ||
"media-feature-name-no-vendor-prefix": true, | ||
"media-feature-range-operator-space-after": "always", | ||
"media-feature-range-operator-space-before": "always", | ||
"media-query-list-comma-newline-after": "always-multi-line", | ||
"media-query-list-comma-space-after": "always-single-line", | ||
"media-query-list-comma-space-before": "never", | ||
"media-feature-parentheses-space-inside": "never", | ||
"no-eol-whitespace": true, | ||
"no-missing-end-of-source-newline": true, | ||
"number-leading-zero": "always", | ||
"number-no-trailing-zeros": true, | ||
"property-no-vendor-prefix": true, | ||
"rule-empty-line-before": ["always-multi-line", { | ||
except: ["after-single-line-comment"] | ||
}], | ||
"selector-combinator-space-after": "always", | ||
"selector-combinator-space-before": "always", | ||
"selector-list-comma-newline-after": "always", | ||
"selector-list-comma-space-before": "never", | ||
"selector-no-vendor-prefix": true, | ||
"selector-pseudo-element-colon-notation": "double", | ||
"string-quotes": "single", | ||
"value-list-comma-newline-after": "always-multi-line", | ||
"value-list-comma-space-after": "always-single-line", | ||
"value-list-comma-space-before": "never", | ||
"value-no-vendor-prefix": true, | ||
"length-zero-no-unit": true, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM nginx | ||
COPY dist/ /usr/share/nginx/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 rangle.io | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: npm start |
Oops, something went wrong.