Created
May 4, 2015 23:07
-
-
Save btburton42/d79e78c648a449745336 to your computer and use it in GitHub Desktop.
JSCS & ESLint Config files
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
{ | |
"parser": "babel-eslint", | |
"plugins": ["react"], | |
"env": { | |
"es6": true, | |
"browser": true, | |
"node": true, | |
"mocha": true | |
}, | |
"rules": { | |
"quotes": [2, "single"], | |
"eol-last": [2], | |
"no-mixed-requires": [0], | |
"no-underscore-dangle": [0], | |
"camelcase": 2, | |
"dot-notation": [2, {"allowSnakeCase": true}], | |
"curly": false, | |
"no-unused-expressions": false, | |
"no-new": 1, | |
"no-debugger": false, | |
"react/display-name": 2, | |
"react/jsx-boolean-value": 2, | |
"react/jsx-quotes": 2, | |
"react/jsx-no-undef": 2, | |
"react/jsx-uses-react": 2, | |
"react/jsx-uses-vars": 2, | |
"react/no-did-mount-set-state": 2, | |
"react/no-did-update-set-state": 2, | |
"react/no-multi-comp": 2, | |
"react/no-unknown-property": 2, | |
"react/prop-types": 2, | |
"react/react-in-jsx-scope": 2, | |
"react/self-closing-comp": 2, | |
"react/wrap-multilines": 2 | |
}, | |
"ecmaFeatures": { | |
"jsx": true, | |
"modules": true, | |
"blockBindings": 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
Show hidden characters
{ | |
"disallowSpacesInNamedFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"disallowSpacesInFunctionDeclaration": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"disallowEmptyBlocks": true, | |
"disallowSpacesInsideArrayBrackets": true, | |
"disallowSpacesInsideParentheses": true, | |
"disallowQuotedKeysInObjects": true, | |
"disallowSpaceAfterObjectKeys": true, | |
"disallowSpaceAfterPrefixUnaryOperators": true, | |
"disallowSpaceBeforePostfixUnaryOperators": true, | |
"disallowSpaceBeforeBinaryOperators": [ | |
"," | |
], | |
"disallowMixedSpacesAndTabs": true, | |
"disallowTrailingWhitespace": true, | |
"disallowTrailingComma": true, | |
"disallowYodaConditions": true, | |
"disallowKeywords": ["with"], | |
"disallowMultipleLineBreaks": true, | |
"disallowMultipleVarDecl": true, | |
"requireSpaceBeforeBlockStatements": true, | |
"requireParenthesesAroundIIFE": true, | |
"requireSpacesInConditionalExpression": true, | |
"requireBlocksOnNewline": 1, | |
"requireCommaBeforeLineBreak": true, | |
"requireSpaceBeforeBinaryOperators": true, | |
"requireSpaceAfterBinaryOperators": true, | |
"requireCamelCaseOrUpperCaseIdentifiers": true, | |
"requireLineFeedAtFileEnd": true, | |
"requireCapitalizedConstructors": true, | |
"requireDotNotation": true, | |
"requireSpacesInForStatement": true, | |
"requireSpaceBetweenArguments": true, | |
"requireKeywordsOnNewLine": ["else"], | |
"requireCurlyBraces": [ "do" ], | |
"requireSpaceBeforeKeywords": ["if"], | |
"requireSpaceAfterKeywords": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"switch", | |
"case", | |
"return", | |
"try", | |
"catch", | |
"typeof" | |
], | |
"safeContextKeyword": "_this", | |
"validateQuoteMarks": "'", | |
"validateIndentation": 2, | |
"esnext": true, | |
"esprima": "esprima-fb" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment