Skip to content

Instantly share code, notes, and snippets.

@zouhenry
Created January 1, 2019 15:57
Show Gist options
  • Save zouhenry/c8950bdec925ddc5a4c806f2c4c49acc to your computer and use it in GitHub Desktop.
Save zouhenry/c8950bdec925ddc5a4c806f2c4c49acc to your computer and use it in GitHub Desktop.
{
"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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment