Created
May 27, 2016 10:11
-
-
Save andyshora/a5238dbd8e28ae8364fd1f24a7e9f3ff to your computer and use it in GitHub Desktop.
House Style
This file contains hidden or 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
# 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 | |
# 2 space indentation | |
[**.*] | |
indent_style = space | |
indent_size = 2 |
This file contains hidden or 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
{ | |
"plugins": [ | |
"react", | |
"require-jsdoc" | |
], | |
"rules": { | |
"indent": [ | |
2, | |
2 | |
], | |
"quotes": [ | |
1, | |
"single" | |
], | |
"semi": [ | |
1, | |
"always" | |
], | |
"no-console": 0, | |
"max-len": [ | |
1, | |
140 | |
], | |
"no-cond-assign": [2, "always"], | |
"no-ex-assign": 2, | |
"curly": 2, | |
"max-depth": [2, 5], | |
"prefer-const": 0, | |
"indent": [2, 2], | |
"no-trailing-spaces": [1, {"skipBlankLines": true}], | |
"one-var": [2, "never"], | |
"key-spacing": [2, { | |
"beforeColon": false, | |
"afterColon": true | |
}], | |
"new-cap": 0, | |
"new-parens": 0, | |
"no-mixed-spaces-and-tabs": 1, | |
"no-multiple-empty-lines": [1, {"max": 2}], | |
"no-nested-ternary": 2, | |
"no-new-object": 2, | |
"no-spaced-func": 2, | |
"arrow-spacing": [2, {"before": true, "after": true}], | |
"operator-assignment": [2, "always"], | |
"padded-blocks": 0, | |
"space-after-keywords": [2, "always"], | |
"space-before-blocks": [2, "always"], | |
"space-before-function-paren": [2, { | |
"anonymous": "always", | |
"named": "never" | |
}], | |
"array-bracket-spacing": [2, "never"], | |
"computed-property-spacing": [2, "never"], | |
"space-infix-ops": [2, {"int32Hint": true}], | |
"space-return-throw-case": 2, | |
"space-unary-ops": [2, { "words": true, "nonwords": false }], | |
"no-delete-var": 2, | |
"no-underscore-dangle": 0, | |
"no-shadow": 0, | |
"no-shadow-restricted-names": 2, | |
"no-undef-init": 2, | |
"no-use-before-define": 2, | |
"yoda": [2, "never"], | |
"consistent-return": 2, | |
"spaced-line-comment": 0, | |
"strict": [2, "never"], | |
"eqeqeq": 1, | |
"guard-for-in": 0, | |
"no-alert": 1, | |
"no-caller": 1, | |
"no-labels": 1, | |
"no-eval": 1, | |
"no-fallthrough": 1, | |
"default-case": 1, | |
"no-iterator": 1, | |
"no-loop-func": 0, | |
"no-multi-str": 1, | |
"no-new": 1, | |
"no-param-reassign": 0, | |
"no-proto": 1, | |
"no-redeclare": 1, | |
"no-return-assign": 1, | |
"no-self-compare": 1, | |
"no-sequences": 0, | |
"vars-on-top": 0, | |
"wrap-iife": [2, "inside"], | |
"valid-typeof": 1, | |
"no-unexpected-multiline": 1, | |
"dot-location": [2, "property"], | |
"no-unreachable": 1, | |
"no-negated-in-lhs": 1, | |
"no-irregular-whitespace": 1, | |
"no-invalid-regexp": 1, | |
"no-func-assign": 1, | |
"no-extra-semi": 1, | |
"no-extra-boolean-cast": 1, | |
"no-empty": 1, | |
"no-duplicate-case": 1, | |
"no-dupe-keys": 1, | |
"no-dupe-args": 1, | |
"no-constant-condition": 1, | |
"no-cond-assign": 1, | |
"comma-style": [1, "last"], | |
"no-lonely-if": 0, | |
"react/display-name": 0, | |
"react/forbid-prop-types": 0, | |
"react/jsx-boolean-value": 0, | |
"react/jsx-closing-bracket-location": 0, | |
"react/jsx-curly-spacing": [1, "always"], | |
"react/jsx-handler-names": [1, { | |
"eventHandlerPrefix": , "handle", | |
"eventHandlerPropPrefix": "on" | |
}], | |
"react/jsx-indent-props": [1, 2], | |
"react/jsx-key": 0, | |
"react/jsx-max-props-per-line": [1, { "maximum": 3 }], | |
"react/jsx-no-bind": 0, | |
"react/jsx-no-duplicate-props": 1, | |
"react/jsx-no-literals": 0, | |
"react/jsx-no-undef": 1, | |
"react/jsx-pascal-case": 1, | |
"react/jsx-sort-prop-types": 0, | |
"react/jsx-sort-props": 0, | |
"react/jsx-uses-react": 1, | |
"react/jsx-uses-vars": 1, | |
"react/no-danger": 1, | |
"react/no-did-mount-set-state": 1, | |
"react/no-did-update-set-state": 1, | |
"react/no-direct-mutation-state": 1, | |
"react/no-multi-comp": 0, | |
"react/no-set-state": 0, | |
"react/no-unknown-property": 1, | |
"react/prefer-es6-class": 1, | |
"react/prop-types": 0, | |
"react/react-in-jsx-scope": 1, | |
"react/require-extension": 1, | |
"react/self-closing-comp": 1, | |
"react/sort-comp": 1, | |
"react/wrap-multilines": 1, | |
"jsx-quotes": [1, "prefer-single"], | |
"require-jsdoc": 1, | |
"valid-jsdoc": [1, { | |
"requireReturn": false | |
}] | |
}, | |
"globals": { | |
"expectObservable": true, | |
"hot": true, | |
"cold": true | |
}, | |
"env": { | |
"browser": true, | |
"node": true, | |
"jasmine": true, | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
"modules": true, | |
"blockBindings": true, | |
"experimentalObjectRestSpread": true, | |
"templateStrings": true, | |
"jsx": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment