Skip to content

Instantly share code, notes, and snippets.

@zouhenry
Created January 1, 2019 15:57
Show Gist options
  • Select an option

  • Save zouhenry/c8950bdec925ddc5a4c806f2c4c49acc to your computer and use it in GitHub Desktop.

Select an option

Save zouhenry/c8950bdec925ddc5a4c806f2c4c49acc to your computer and use it in GitHub Desktop.

Revisions

  1. zouhenry created this gist Jan 1, 2019.
    66 changes: 66 additions & 0 deletions eslint
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,66 @@
    {
    "parser": "babel-eslint",
    "parserOptions": {
    "ecmaFeatures": {
    "jsx": true
    }
    },
    "plugins": ["jest", "react"],
    "extends": ["fbjs", "eslint:recommended", "plugin:react/recommended"],
    "env": {
    "es6": true,
    "node": true
    },
    "rules": {
    "no-undef": 0,
    "no-unused-vars": 0,
    "no-console": "error",
    "no-tabs": "error",
    "no-mixed-operators": "error",
    "no-case-declarations": "warn",
    "curly": "off",
    "brace-style": [
    "error",
    "stroustrup",
    {
    "allowSingleLine": true
    }
    ],
    "quotes": [1, "single"],
    "indent": [
    "error",
    4,
    {
    "SwitchCase": 1
    }
    ],
    "comma-dangle": [
    "error",
    {
    "arrays": "only-multiline",
    "objects": "only-multiline",
    "imports": "only-multiline",
    "exports": "only-multiline",
    "functions": "never"
    }
    ],
    "multi": "all",
    "react/no-deprecated": "off",
    "react/no-find-dom-node": "off",
    "react/no-string-refs": "off",
    "react/prop-types": [
    "warn",
    {
    "skipUndeclared": true
    }
    ],
    "jsx-a11y/no-static-element-interactions": "off",
    "jsx-a11y/interactive-supports-focus": "off",
    "react/display-name": ["error", { "ignoreTranspilerName": true }],
    "jest/no-disabled-tests": "warn",
    "jest/no-focused-tests": "error",
    "jest/no-identical-title": "error",
    "jest/prefer-to-have-length": "warn",
    "jest/valid-expect": "error"
    }
    }