Skip to content

Instantly share code, notes, and snippets.

@JosephClay
Last active February 26, 2018 17:25
Show Gist options
  • Save JosephClay/b626093dbe560cdcaedef322924753a0 to your computer and use it in GitHub Desktop.
Save JosephClay/b626093dbe560cdcaedef322924753a0 to your computer and use it in GitHub Desktop.
configuration
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": false,
"blockBindings": true,
"classes": false,
"defaultParams": true,
"destructuring": true,
"forOf": false,
"generators": false,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": false,
"regexUFlag": false,
"regexYFlag": false,
"restParams": true,
"spread": true,
"superInFunctions": false,
"templateStrings": true,
"unicodeCodePointEscapes": false,
"globalReturn": false,
"jsx": true
},
"rules": {
"new-cap": ["error", { "newIsCap": false, "capIsNew": false }],
"object-shorthand": ["error"],
"quote-props": ["error", "as-needed"],
"no-const-assign": ["error"],
"no-var": ["error"],
"no-new-object": ["error"],
"no-array-constructor": ["error"],
"array-callback-return": ["error"],
"template-curly-spacing": ["error", "never"],
"no-useless-escape": ["error"],
"func-style": ["error", "expression"],
"wrap-iife": ["error", "outside"],
"space-before-function-paren": ["error", "never"],
"no-param-reassign": ["error"],
"prefer-template": ["error"],
"prefer-spread": ["warn"],
"prefer-rest-params": ["warn"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"arrow-parens": ["warn", "as-needed"],
"no-confusing-arrow": ["warn"],
"no-duplicate-imports": ["error"],
"no-iterator": ["error"],
"no-alert": ["error"],
"no-restricted-syntax": ["error", "WithStatement", "SwitchStatement", "DoWhileStatement"],
"generator-star-spacing": ["error", {"before": true, "after": false}],
"dot-notation": ["error"],
"prefer-const": ["error"],
"one-var": ["warn", "never"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"space-before-blocks": ["error", "always"],
"keyword-spacing": ["error", {"before": true, "after": true}],
"space-infix-ops": ["error"],
"no-whitespace-before-property": ["error"],
"padded-blocks": ["error", "never"],
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"radix": ["error"],
"camelcase": ["error", {"properties": "never"}],
"id-length": ["error", {"exceptions": ["x", "y", "z", "e", "_", "$", "w", "h"]}],
"semi": ["error"],
"eqeqeq": ["error", "always"],
"no-lonely-if": ["error"],
"no-mixed-spaces-and-tabs": ["warn"],
"indent": ["warn", "tab", { "SwitchCase": 4, "VariableDeclarator": { "var": 4, "let": 4, "const": 4 } }],
"no-multi-spaces": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-eval": ["error"],
"quotes": ["error", "single"],
"no-return-assign": ["error", "except-parens"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
"no-mixed-requires": ["warn"],
"no-unused-vars": ["error", {"vars": "local", "args": "after-used"}],
"no-delete-var": ["warn"],
"no-shadow-restricted-names": ["error"],
"no-undef": ["error"],
"no-underscore-dangle": ["error", {"allow": ["_id"]}],
"no-use-before-define": ["error"],
"callback-return": ["warn"],
"no-new-func": ["warn"],
"no-new-require": ["error"],
"no-labels": ["error"],
"no-sync": 0,
"no-path-concat": 0,
"handle-callback-err": 0,
"no-undefined": 0,
"no-undef-init": 0,
"no-label-var": 0,
"no-catch-shadow": 0,
"init-declarations": 0,
"no-process-exit": 0,
"no-shadow": 0,
"consistent-return": 0,
"eol-last": 0,
"react/display-name": 0,
"react/jsx-boolean-value": 0,
"react/jsx-curly-spacing": 0,
"react/jsx-no-duplicate-props": 0,
"react/jsx-no-undef": 2,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-danger": 0,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 0,
"react/no-unknown-property": 2,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/require-extension": 0,
"react/self-closing-comp": 2,
"react/sort-comp": [2, {
"order": [
"lifecycle",
"/^on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"everything-else",
"/^render.+$/",
"render"
]
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment