Do you wish to register an account?
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.0KB

  1. {
  2. "env": {
  3. "browser": true,
  4. "node": true,
  5. "shared-node-browser": true,
  6. "jest": true
  7. },
  8. "extends": [
  9. "eslint:recommended",
  10. "plugin:inferno/recommended",
  11. "eslint-config-happiness"
  12. ],
  13. "globals": {
  14. "location": true
  15. },
  16. "parser": "babel-eslint",
  17. "parserOptions": {
  18. "ecmaVersion": 6,
  19. "sourceType": "module",
  20. "ecmaFeatures": {
  21. "jsx": true
  22. }
  23. },
  24. "rules": {
  25. "array-callback-return": "error",
  26. "camelcase": ["error", {
  27. "properties": "never"
  28. }],
  29. "comma-dangle": ["error", "always-multiline"],
  30. "jsx-quotes": ["error", "prefer-double"],
  31. "linebreak-style": "off",
  32. "multiline-ternary": ["error", "always-multiline"],
  33. "prefer-arrow-callback": ["error", {
  34. "allowNamedFunctions": true
  35. }],
  36. "prefer-const": "error",
  37. "no-alert": "error",
  38. "no-case-declarations": "off",
  39. "no-console": "off",
  40. "no-duplicate-imports": "error",
  41. "no-eval": "error",
  42. "no-extend-native": "error",
  43. "no-extra-bind": "error",
  44. "no-extra-semi": "error",
  45. "no-implied-eval": "error",
  46. "no-invalid-this": "error",
  47. "no-nested-ternary": "error",
  48. "no-new-func": "error",
  49. "no-new-wrappers": "error",
  50. "no-restricted-globals": "off",
  51. "no-return-assign": "error",
  52. "no-return-await": "error",
  53. "no-self-compare": "error",
  54. "no-unneeded-ternary": "error",
  55. "no-unused-expressions": "error",
  56. "no-use-before-define": "error",
  57. "no-useless-call": "error",
  58. "no-useless-concat": "error",
  59. "no-useless-return": "error",
  60. "no-var": "error",
  61. "no-with": "error",
  62. "prefer-rest-params": "error",
  63. "prefer-spread": "error",
  64. "prefer-template": "error",
  65. "quotes": ["error", "single", {
  66. "allowTemplateLiterals": true,
  67. "avoidEscape": true
  68. }],
  69. "quote-props": ["error", "as-needed", {
  70. "keywords": true,
  71. "unnecessary": false,
  72. "numbers": false
  73. }],
  74. "radix": ["error", "always"],
  75. "react/prefer-stateless-function": "off",
  76. "require-await": "error",
  77. "sort-keys": ["error", "asc", {"caseSensitive": true, "natural": true}],
  78. "yoda": ["error", "never"]
  79. }
  80. }