闭社主体 forked from https://github.com/tootsuite/mastodon
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.

51 lines
1008 B

8 years ago
  1. {
  2. "env": {
  3. "browser": true,
  4. "node": false,
  5. "es6": true
  6. },
  7. "parser": "babel-eslint",
  8. "plugins": [
  9. "react"
  10. ],
  11. "parserOptions": {
  12. "sourceType": "module",
  13. "ecmaFeatures": {
  14. "arrowFunctions": true,
  15. "jsx": true,
  16. "destructuring": true,
  17. "modules": true,
  18. "spread": true
  19. }
  20. },
  21. "rules": {
  22. "no-cond-assign": 2,
  23. "no-console": 1,
  24. "no-irregular-whitespace": 2,
  25. "no-unreachable": 2,
  26. "valid-typeof": 2,
  27. "consistent-return": 2,
  28. "dot-notation": 2,
  29. "eqeqeq": 2,
  30. "no-fallthrough": 2,
  31. "no-unused-expressions": 2,
  32. "strict": 0,
  33. "no-catch-shadow": 2,
  34. "indent": [1, 2],
  35. "brace-style": 1,
  36. "comma-spacing": [1, {"before": false, "after": true}],
  37. "comma-style": [1, "last"],
  38. "no-mixed-spaces-and-tabs": 1,
  39. "no-nested-ternary": 1,
  40. "no-trailing-spaces": 1,
  41. "react/wrap-multilines": 2,
  42. "react/self-closing-comp": 2,
  43. "react/prop-types": 2,
  44. "react/no-multi-comp": 0
  45. }
  46. }