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.

.eslintrc 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "extends": [
  3. "eslint:recommended",
  4. "plugin:react/recommended",
  5. "plugin:import/errors",
  6. "plugin:import/warnings"
  7. ],
  8. "env": {
  9. "browser": true,
  10. "es6": true,
  11. "jest": true,
  12. "node": true
  13. },
  14. "globals": {
  15. "key": true,
  16. "d3": true,
  17. "baseUrl": true
  18. },
  19. "parser": "babel-eslint",
  20. "plugins": [
  21. "react",
  22. "import"
  23. ],
  24. "rules": {
  25. "arrow-spacing": 2,
  26. "comma-spacing": 2,
  27. "curly": 2,
  28. "eol-last": 2,
  29. "eqeqeq": [2, "smart"],
  30. "indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }],
  31. "jsx-quotes": 2,
  32. "key-spacing": 2,
  33. "no-multi-spaces": 2,
  34. "no-self-compare": 2,
  35. "no-unexpected-multiline": 2,
  36. "max-len": [2, 120],
  37. "no-const-assign": 2,
  38. "no-multiple-empty-lines": [2, { "max": 3 }],
  39. "no-spaced-func": 2,
  40. "no-this-before-super": 2,
  41. "no-trailing-spaces": 2,
  42. "no-unneeded-ternary": 2,
  43. "object-curly-spacing": [2, "always"],
  44. "no-var": 2,
  45. "object-shorthand": 2,
  46. "one-var": [2, { "let": "never", "const": "never" }],
  47. "quotes": [2, "single", "avoid-escape"],
  48. "prefer-const": 2,
  49. "semi": [2, "always"],
  50. "keyword-spacing": 2,
  51. "react/display-name": 0,
  52. "react/no-find-dom-node": 0,
  53. "react/prop-types": 0
  54. },
  55. "settings": {
  56. "import/ignore": [
  57. "node_modules",
  58. "hbs$"
  59. ]
  60. }
  61. }