Skip to content

Instantly share code, notes, and snippets.

@suricactus
Last active July 5, 2018 19:25
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 suricactus/c2c40a9711cd123508c3b414aea1b235 to your computer and use it in GitHub Desktop.
Save suricactus/c2c40a9711cd123508c3b414aea1b235 to your computer and use it in GitHub Desktop.
eslintrc
{
"extends": ["eslint:recommended", "semistandard-react"],
"rules": {
"comma-dangle": ["error", "always-multiline"],
"jsx-quotes": ["error", "prefer-double"],
"max-depth": ["error", 4],
"max-params": ["error", 3],
"max-depth": ["error", 4],
"max-nested-callbacks": ["error", 3],
"complexity": ["warn", 20],
"prefer-arrow-callback": ["error"],
"prefer-spread": ["error"],
"prefer-rest-params": ["error"],
"prefer-template": ["error"],
"no-useless-concat": ["error"],
"symbol-description": ["error"],
"arrow-spacing": ["error"],
"no-confusing-arrow": ["error", { "allowParens": true }]
"rest-spread-spacing": ["error", "never"],
"no-var": ["error"],
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}]
"max-len": ["error", {
"code": 80,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}]
},
"parserOptions": {
"ecmaVersion": 2018
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment