-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:wevote/WebApp into develop
Conflicts: README.md
- Loading branch information
Showing
126 changed files
with
8,653 additions
and
2,318 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,2 @@ | ||
src/js/vendor/*.js | ||
src/js/mock-data/ |
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 |
---|---|---|
@@ -1,49 +1,212 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"env": { | ||
"node": true, | ||
"browser": true | ||
}, | ||
"ecmaFeatures": { | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"classes": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"forOf": true, | ||
"modules": true, | ||
"objectLiteralComputedProperties": true, | ||
"objectLiteralShorthandMethods": true, | ||
"objectLiteralShorthandProperties": true, | ||
"spread": true, | ||
"superInFunctions": true, | ||
"templateStrings": true, | ||
"unicodeCodePointEscapes": true, | ||
"jsx": true | ||
}, | ||
"rules": { | ||
"react/jsx-boolean-value": 2, | ||
"react/jsx-quotes": 2, | ||
"react/jsx-no-undef": 2, | ||
"react/jsx-sort-props": 0, | ||
"react/jsx-sort-prop-types": 0, | ||
"react/jsx-uses-react": 2, | ||
"react/jsx-uses-vars": 2, | ||
"react/no-did-mount-set-state": 0, | ||
"react/no-did-update-set-state": 2, | ||
"react/no-multi-comp": 2, | ||
"react/no-unknown-property": 1, | ||
"react/prop-types": 1, | ||
"react/react-in-jsx-scope": 2, | ||
"react/self-closing-comp": 2, | ||
"react/wrap-multilines": 0, | ||
"jsx-quotes": 1, | ||
"quotes": 0 | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"parser": "babel-eslint", | ||
|
||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
|
||
"ecmaFeatures": { | ||
"arrowFunctions": true, | ||
"binaryLiterals": true, | ||
"blockBindings": true, | ||
"classes": false, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"forOf": true, | ||
"generators": true, | ||
"modules": true, | ||
"objectLiteralComputedProperties": true, | ||
"objectLiteralDuplicateProperties": true, | ||
"objectLiteralShorthandMethods": true, | ||
"objectLiteralShorthandProperties": true, | ||
"octalLiterals": true, | ||
"regexUFlag": true, | ||
"regexYFlag": true, | ||
"spread": true, | ||
"superInFunctions": false, | ||
"templateStrings": true, | ||
"unicodeCodePointEscapes": true, | ||
"globalReturn": true, | ||
"jsx": true | ||
}, | ||
|
||
"rules": { | ||
"block-scoped-var": [0], | ||
"brace-style": [2, "1tbs", {"allowSingleLine": true}], | ||
"camelcase": [0], | ||
"comma-dangle": [0], | ||
"comma-spacing": [1], | ||
"comma-style": [2, "last"], | ||
"complexity": [0, 11], | ||
"consistent-return": [1], | ||
"consistent-this": [0, "that"], | ||
"curly": [0, "multi-line"], | ||
"default-case": [1], | ||
"dot-notation": [2, {"allowKeywords": true}], | ||
"eol-last": [1], | ||
"eqeqeq": [1], | ||
"func-names": [0], | ||
"func-style": [0, "declaration"], | ||
"generator-star-spacing": [2, "after"], | ||
"guard-for-in": [0], | ||
"handle-callback-err": [0], | ||
"key-spacing": [1, {"beforeColon": false, "afterColon": true}], | ||
"quotes": [1, "double", "avoid-escape"], | ||
"max-depth": [0, 4], | ||
"max-len": [0, 80, 4], | ||
"max-nested-callbacks": [0, 2], | ||
"max-params": [0, 3], | ||
"max-statements": [0, 10], | ||
"new-parens": [2], | ||
"new-cap": [0], | ||
"newline-after-var": [0], | ||
"no-alert": [2], | ||
"no-array-constructor": [2], | ||
"no-bitwise": [0], | ||
"no-caller": [2], | ||
"no-catch-shadow": [2], | ||
"no-cond-assign": [2], | ||
"no-console": [0], | ||
"no-constant-condition": [1], | ||
"no-continue": [2], | ||
"no-control-regex": [2], | ||
"no-debugger": [2], | ||
"no-delete-var": [2], | ||
"no-div-regex": [0], | ||
"no-dupe-args": [2], | ||
"no-dupe-keys": [2], | ||
"no-duplicate-case": [2], | ||
"no-else-return": [0], | ||
"no-empty": [2], | ||
"no-empty-character-class": [2], | ||
"no-empty-label": [2], | ||
"no-eq-null": [0], | ||
"no-eval": [2], | ||
"no-ex-assign": [2], | ||
"no-extend-native": [1], | ||
"no-extra-bind": [1], | ||
"no-extra-boolean-cast": [2], | ||
"no-extra-semi": [1], | ||
"no-fallthrough": [2], | ||
"no-floating-decimal": [2], | ||
"no-func-assign": [2], | ||
"no-implied-eval": [2], | ||
"no-inline-comments": [0], | ||
"no-inner-declarations": [2, "functions"], | ||
"no-invalid-regexp": [2], | ||
"no-irregular-whitespace": [2], | ||
"no-iterator": [2], | ||
"no-label-var": [2], | ||
"no-labels": [2], | ||
"no-lone-blocks": [2], | ||
"no-lonely-if": [1], | ||
"no-loop-func": [1], | ||
"no-mixed-requires": [0, false], | ||
"no-mixed-spaces-and-tabs": [2, false], | ||
"no-multi-spaces": [1], | ||
"no-multi-str": [2], | ||
"no-multiple-empty-lines": [2, {"max": 2}], | ||
"no-native-reassign": [1], | ||
"no-negated-in-lhs": [2], | ||
"no-nested-ternary": [0], | ||
"no-new": [2], | ||
"no-new-func": [2], | ||
"no-new-object": [2], | ||
"no-new-require": [0], | ||
"no-new-wrappers": [2], | ||
"no-obj-calls": [2], | ||
"no-octal": [2], | ||
"no-octal-escape": [2], | ||
"no-param-reassign": [1], | ||
"no-path-concat": [0], | ||
"no-plusplus": [0], | ||
"no-process-env": [0], | ||
"no-process-exit": [2], | ||
"no-proto": [2], | ||
"no-redeclare": [1], | ||
"no-regex-spaces": [2], | ||
"no-reserved-keys": [0], | ||
"no-restricted-modules": [0], | ||
"no-return-assign": [2], | ||
"no-script-url": [2], | ||
"no-self-compare": [0], | ||
"no-sequences": [1], | ||
"no-shadow": [1], | ||
"no-shadow-restricted-names": [2], | ||
"no-spaced-func": [1], | ||
"no-sparse-arrays": [2], | ||
"no-sync": [0], | ||
"no-ternary": [0], | ||
"no-throw-literal": [2], | ||
"no-trailing-spaces": [1], | ||
"no-undef": [1], | ||
"no-undef-init": [2], | ||
"no-undefined": [0], | ||
"no-underscore-dangle": [0], | ||
"no-unreachable": [2], | ||
"no-unused-expressions": [1], | ||
"no-unused-vars": [1], | ||
"no-use-before-define": [1], | ||
"no-void": [0], | ||
"no-warning-comments": [0, {"terms": ["todo", "fixme", "xxx"], "location": "start"}], | ||
"no-with": [2], | ||
"no-extra-parens": [1], | ||
"one-var": [1, "never"], | ||
"operator-assignment": [0, "always"], | ||
"operator-linebreak": [1, "after"], | ||
"padded-blocks": [0], | ||
"quote-props": [0], | ||
"radix": [0], | ||
"semi": [1], | ||
"semi-spacing": [2, {"before": false, "after": true}], | ||
"sort-vars": [0], | ||
"space-after-keywords": [2, "always"], | ||
"space-before-function-paren": [1, {"anonymous": "always", "named": "always"}], | ||
"space-before-blocks": [0, "always"], | ||
"space-in-brackets": [ | ||
0, "never", { | ||
"singleValue": true, | ||
"arraysInArrays": false, | ||
"arraysInObjects": false, | ||
"objectsInArrays": true, | ||
"objectsInObjects": true, | ||
"propertyName": false | ||
} | ||
], | ||
"space-in-parens": [0], | ||
"space-infix-ops": [1], | ||
"space-return-throw-case": [2], | ||
"space-unary-ops": [0, {"words": true, "nonwords": false}], | ||
"spaced-line-comment": [0, "always"], | ||
"strict": [0, "never"], | ||
"use-isnan": [2], | ||
"valid-jsdoc": [0], | ||
"valid-typeof": [2], | ||
"vars-on-top": [0], | ||
"wrap-iife": [2], | ||
"wrap-regex": [1], | ||
"yoda": [2, "never", {"exceptRange": true}], | ||
"react/jsx-boolean-value": 2, | ||
"react/jsx-no-undef": 2, | ||
"react/jsx-sort-props": 0, | ||
"react/jsx-sort-prop-types": 0, | ||
"react/jsx-uses-react": 2, | ||
"react/jsx-uses-vars": 2, | ||
"react/no-did-mount-set-state": 0, | ||
"react/no-did-update-set-state": 2, | ||
"react/no-multi-comp": 2, | ||
"react/no-unknown-property": 1, | ||
"react/prop-types": 1, | ||
"react/react-in-jsx-scope": 2, | ||
"react/self-closing-comp": 2, | ||
"jsx-quotes": 2, | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"global": { | ||
"React": true | ||
"React": 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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
## Contents | ||
|
||
- [WeVoteUSA Web App Change Log](#wevoteusa-web-app-change-log) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
#WeVoteUSA Web App Change Log | ||
|
||
All notable changes to this project will be documented here. |
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,36 @@ | ||
#WeVoteUSA Code of Conduct | ||
--- | ||
##Conduct | ||
|
||
* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic. | ||
* On public communication channels, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and welcoming environment for all. | ||
* Please be kind and courteous. There's no need to be mean or rude. | ||
Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a right answer. | ||
* Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and see how it works. | ||
* We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behaviour. We interpret the term "harassment" as including the definition in the [Citizen Code of Conduct](http://citizencodeofconduct.org/); if you have any lack of clarity about what might be included in that concept, please read their definition. In particular, we don't tolerate behavior that excludes people in socially marginalized groups. | ||
* Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact the team immediately. Whether you're a regular contributor or a newcomer, we care about making this community a safe place for you and we've got your back. | ||
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behaviour is not welcome. | ||
|
||
--- | ||
|
||
|
||
##Moderation | ||
|
||
These are the policies for upholding our community's standards of conduct. If you feel that a thread needs moderation, please contact the WeVoteUSA moderation team. | ||
|
||
1. Remarks that violate the Rust standards of conduct, including hateful, hurtful, oppressive, or exclusionary remarks, are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful manner.) | ||
2. Remarks that moderators find inappropriate, whether listed in the code of conduct or not, are also not allowed. | ||
3. Moderators will first respond to such remarks with a warning. | ||
4. If the warning is unheeded, the user will be "kicked," i.e., kicked out of the communication channel to cool off. | ||
5. If the user comes back and continues to make trouble, they will be banned, i.e., indefinitely excluded. | ||
6. Moderators may choose at their discretion to un-ban the user if it was a first offense and they offer the offended party a genuine apology. | ||
7. If a moderator bans someone and you think it was unjustified, please take it up with that moderator, or with a different moderator, in private. Complaints about bans in-channel are not allowed. | ||
8. Moderators are held to a higher standard than other community members. If a moderator creates an inappropriate situation, they should expect less leeway than others. | ||
|
||
In the WeVoteUSA community we strive to go the extra step to look out for each other. Don't just aim to be technically unimpeachable, try to be your best self. In particular, avoid flirting with offensive or sensitive issues, particularly if they're off-topic; this all too often leads to unnecessary fights, hurt feelings, and damaged trust; worse, it can drive people away from the community entirely. | ||
|
||
And if someone takes issue with something you said or did, resist the urge to be defensive. Just stop doing what it was they complained about and apologize. Even if you feel you were misinterpreted or unfairly accused, chances are good there was something you could've communicated better — remember that it's your responsibility to make your fellow Rustaceans comfortable. Everyone wants to get along and we are all here first and foremost because we want to talk about cool technology. You will find that people will be eager to assume good intent and forgive as long as you earn their trust. | ||
|
||
The enforcement policies listed above apply to all official WeVoteUSA venues; including official [Slack channel](http://wevote.slack.com) and GitHub repositories under WeVoteUSA. For other projects adopting the WeVoteUSA Code of Conduct, please contact the maintainers of those projects for enforcement. If you wish to use this code of conduct for your own project, consider explicitly mentioning your moderation policy or making a copy with your own moderation policy so as to avoid confusion. | ||
|
||
Adapted from the [Rust CoC](http://www.rust-lang.org/conduct.html), [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the [Contributor Covenant v1.3.0](http://contributor-covenant.org/version/1/3/0/) |
Oops, something went wrong.