Skip to content

Instantly share code, notes, and snippets.

@subblue
Created June 7, 2016 12:50
Show Gist options
  • Save subblue/75cdd13ef893a7825bf4de2fa816a2e1 to your computer and use it in GitHub Desktop.
Save subblue/75cdd13ef893a7825bf4de2fa816a2e1 to your computer and use it in GitHub Desktop.

Revisions

  1. subblue revised this gist Jun 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion eslintrc.json
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@
    "react/display-name": 0,
    "react/no-danger": 0
    },
    parserOptions: {
    "parserOptions": {
    "sourceType": "module",
    "ecmaVersion": 6,
    "ecmaFeatures": {
  2. subblue created this gist Jun 7, 2016.
    53 changes: 53 additions & 0 deletions eslintrc.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    {
    "root": true,
    "parser": "babel-eslint",
    "plugins": ["react"],
    "extends": ["eslint:recommended", "plugin:react/recommended"],
    "env": {
    "browser": true,
    "node": true,
    "es6": true,
    "jasmine": true,
    "mocha": true
    },
    "rules": {
    "no-console": 0,
    "no-sparse-arrays": 2,
    "no-unreachable": 2,
    "no-multiple-empty-lines": [1, {"max": 3}],
    "no-param-reassign": 2,
    "no-alert": 0,
    "indent": [1, 2],
    "quote-props": [1, "as-needed"],
    "quotes": [2, "single", "avoid-escape"],
    "comma-spacing": [2, {"before": false, "after": true}],
    "key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
    "semi": [1, "always"],
    "semi-spacing": [1, {"before": false, "after": true}],
    "keyword-spacing": [2, {"before": true, "after": true}],
    "space-before-blocks": [1, "always"],
    "space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
    "curly": 2,
    "object-curly-spacing": 0,
    "brace-style": 2,
    "array-bracket-spacing": 0,
    "space-in-parens": [1, "never"],
    "space-infix-ops": 1,
    "space-unary-ops": [1, {"words": true, "nonwords": false}],
    "spaced-comment": [1, "always"],
    "strict": 0,
    "prefer-const": ["error", {"destructuring": "any"}],
    "react/display-name": 0,
    "react/no-danger": 0
    },
    parserOptions: {
    "sourceType": "module",
    "ecmaVersion": 6,
    "ecmaFeatures": {
    "jsx": true,
    "experimentalObjectRestSpread": true,
    "modules": true,
    "classes": true
    }
    }
    }