Skip to content

Instantly share code, notes, and snippets.

@halcarleton
Last active January 3, 2017 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halcarleton/8944b987088245d0e590851a7f52f3d3 to your computer and use it in GitHub Desktop.
Save halcarleton/8944b987088245d0e590851a7f52f3d3 to your computer and use it in GitHub Desktop.
{
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"sourceType": "module"
},
"parser": "espree",
"env": {
"es6": true,
"browser": true
},
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-cond-assign": [2, "except-parens"],
"no-console": [2, {
"allow": ["log", "warn", "error", "assert"]
}],
"no-constant-condition": [2, {
"checkLoops": true
}],
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": 0,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": [2, "both"],
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-obj-calls": 2,
"no-prototype-builtins": 0,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"no-template-curly-in-string": 2,
"no-unexpected-multiline": 2,
"no-unreachable": 2,
"no-unsafe-finally": 2,
"no-unsafe-negation": 2,
"use-isnan": 2,
"valid-jsdoc": [
2, {
"prefer": {
"return": "returns",
"argument": "arg",
"param": "arg"
},
"preferType": {
"boolean": "Boolean",
"number": "Number",
"object": "Object",
"string": "String"
},
"requireReturn": false,
"requireReturnType": true,
"requireParamDescription": true,
"requireReturnDescription": true,
"matchDescription": ".+"
}
],
"valid-typeof": [2, {
"requireStringLiterals": true
}],
"accessor-pairs": 1,
"array-callback-return": 2,
"block-scoped-var": 1,
"class-methods-use-this": 1,
"complexity": [2, 20],
"consistent-return": 1,
"curly": [2, "multi-line"],
"default-case": 0,
"dot-location": [2, "property"],
"dot-notation": [2, {
"allowPattern": "^(\\d+|[a-z]+(_[a-z]+)+)$"
}],
"eqeqeq": [2, "always"],
"guard-for-in": 2,
"no-alert": 1,
"no-caller": 2,
"no-case-declarations": 2,
"no-div-regex": 1,
"no-else-return": 2,
"no-empty-function": 1,
"no-empty-pattern": 2,
"no-eq-null": 2,
"no-eval": 1,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-label": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-global-assign": 1,
"no-implicit-coercion": 1,
"no-implicit-globals": 0,
"no-implied-eval": 2,
"no-invalid-this": 0,
"no-iterator": 2,
"no-labels": 1,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-magic-numbers": 0,
"no-multi-spaces": [2, {
"exceptions": {
"VariableDeclarator": true
}
}],
"no-multi-str": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-param-reassign": [2, {
"props": false
}],
"no-proto": 2,
"no-redeclare": [2, {
"builtinGlobals": true
}],
"no-return-assign": 2,
"no-script-url": 1,
"no-self-assign": 1,
"no-self-compare": 1,
"no-sequences": 1,
"no-throw-literal": 1,
"no-unmodified-loop-condition": 2,
"no-unused-expressions": 1,
"no-unused-labels": 1,
"no-useless-call": 1,
"no-useless-concat": 1,
"no-useless-escape": 1,
"no-void": 1,
"no-warning-comments": [1, {
"terms": ["todo", "fixme", "xxx"],
"location": "start"
}],
"no-with": 1,
"radix": 1,
"vars-on-top": 1,
"wrap-iife": [1, "inside"],
"yoda": 1,
"strict": [1, "global"],
"init-declarations": 0,
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-label-var": 2,
"no-restricted-globals": 0,
"no-shadow-restricted-names": 2,
"no-shadow": [1, {
"builtinGlobals": true,
"hoist": "functions",
"allow": ["done", "cb", "resolve", "reject"]
}],
"no-undef-init": 1,
"no-undef": [2, {
"typeof": false
}],
"no-undefined": 2,
"no-unused-vars": [1, {
"vars": "local",
"args": "after-used"
}],
"no-use-before-define": [2, {
"functions": false,
"classes": true
}],
"callback-return": 1,
"global-require": 1,
"handle-callback-err": 1,
"no-mixed-requires": [1, {
"grouping": true,
"allowCall": false
}],
"no-new-require": 1,
"no-path-concat": 1,
"no-process-env": 0,
"no-process-exit": 1,
"no-restricted-modules": 0,
"no-sync": 1,
"array-bracket-spacing": [1, "always"],
"block-spacing": [1, "always"],
"brace-style": [1, "1tbs", {"allowSingleLine": true}],
"camelcase": [1, {
"properties": "always"
}],
"comma-dangle": [1, "never"],
"comma-spacing": [1, {
"before": false,
"after": true
}],
"comma-style": [1, "last"],
"computed-property-spacing": [1, "never"],
"consistent-this": [2, "_this"],
"eol-last": 2,
"func-call-spacing": [1, "never"],
"func-names": 0,
"func-style": 0,
"id-blacklist": 0,
"id-length": [1, {
"min": 1,
"max": 25
}],
"id-match": 0,
"indent": [1, "tab", {
"SwitchCase": 1,
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
},
"outerIIFEBody": 1,
"MemberExpression": 1
}],
"jsx-quotes": 0,
"key-spacing": [1, {
"beforeColon": false,
"afterColon": true,
"mode": "strict",
"align": "colon"
}],
"keyword-spacing": [1, {
"before": true,
"after": true
}],
"linebreak-style": [1, "unix"],
"lines-around-comment": [1, {
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false,
"allowBlockStart": true,
"allowBlockEnd": false,
"allowObjectStart": true,
"allowObjectEnd": false,
"allowArrayStart": true,
"allowArrayEnd": false
}],
"max-depth": [1, 4],
"max-len": [1, {
"code": 100,
"tabWidth": 2,
"comments": 100,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignorePattern": "\\s*(it|describe)\\("
}],
"max-lines": [1, {
"max": 500,
"skipBlankLines": true,
"skipComments": true
}],
"max-nested-callbacks": [1, 4],
"max-params": [1, 5],
"max-statements-per-line": [1, {
"max": 1
}],
"multiline-ternary": 0,
"new-cap": [2, {
"newIsCap": true,
"capIsNew": true
}],
"new-parens": 1,
"newline-after-var": 1,
"newline-before-return": 1,
"newline-per-chained-call": [1, {
"ignoreChainWithDepth": 2
}],
"no-array-constructor": 1,
"no-bitwise": 1,
"no-continue": 1,
"no-inline-comments": 0,
"no-lonely-if": 1,
"no-mixed-operators": [1, {
"allowSamePrecedence": true
}],
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [1, {
"max": 1,
"maxEOF": 1
}],
"no-negated-condition": 1,
"no-nested-ternary": 1,
"no-new-object": 1,
"no-plusplus": 0,
"no-restricted-syntax": 0,
"no-tabs": 0,
"no-ternary": 0,
"no-trailing-spaces": 1,
"no-underscore-dangle": 0,
"no-unneeded-ternary": 1,
"no-whitespace-before-property": 1,
"object-curly-newline": [1, {
"multiline": true,
"minProperties": 2
}],
"object-curly-spacing": [1, "never"],
"object-property-newline": 0,
"one-var-declaration-per-line": [1, "initializations"],
"one-var": 0,
"operator-assignment": [1, "always"],
"operator-linebreak": [1, "before"],
"padded-blocks": [1, {
"blocks": "never",
"classes": "never",
"switches": "never"
}],
"quote-props": [1, "consistent-as-needed", {
"numbers": true
}],
"quotes": [1, "single"],
"require-jsdoc": [1, {
"require": {
"FunctionDeclaration": false,
"ClassDeclaration": true,
"MethodDefinition": false
}
}],
"semi-spacing": [1, {
"before": false,
"after": true
}],
"semi": [1, "always"],
"sort-keys": [1, "asc"],
"sort-vars": 1,
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, "never"],
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"space-unary-ops": [1, {
"words": true,
"nonwords": false
}],
"spaced-comment": 0,
"unicode-bom": 0,
"wrap-regex": 1,
"arrow-body-style": [1, "as-needed"],
"arrow-parens": 1,
"arrow-spacing": 1,
"constructor-super": 2,
"generator-star-spacing": [1, {
"before": false,
"after": true
}],
"no-class-assign": 1,
"no-confusing-arrow": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-duplicate-imports": 2,
"no-new-symbol": 2,
"no-restricted-imports": 0,
"no-this-before-super": 2,
"no-useless-computed-key": 1,
"no-useless-constructor": 1,
"no-useless-rename": 1,
"no-var": 1,
"object-shorthand": 0,
"prefer-arrow-callback": 0,
"prefer-const": 1,
"prefer-reflect": 0,
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
"require-yield": 0,
"rest-spread-spacing": [1, "never"],
"sort-imports": [1, {"memberSyntaxSortOrder": ["none", "all", "single", "multiple"]}],
"symbol-description": 1,
"template-curly-spacing": [1, "never"],
"yield-star-spacing": [1, "after"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment