.eslintrc.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "env": {
  3. "node": true
  4. },
  5. "globals": {},
  6. "rules": {
  7. "no-eval": 2,
  8. "no-use-before-define": [
  9. 2,
  10. {
  11. "functions": false
  12. }
  13. ],
  14. "no-undef": 0,
  15. "no-unused-vars": 1,
  16. "no-caller": 2,
  17. "no-eq-null": 1,
  18. "guard-for-in": 2,
  19. "no-implicit-coercion": [
  20. 2,
  21. {
  22. "boolean": false,
  23. "string": true,
  24. "number": true
  25. }
  26. ],
  27. "no-with": 2,
  28. "no-mixed-spaces-and-tabs": 2,
  29. "no-multiple-empty-lines": 2,
  30. "dot-location": [
  31. 2,
  32. "property"
  33. ],
  34. "operator-linebreak": [
  35. 0,
  36. "after"
  37. ],
  38. "keyword-spacing": [
  39. 2,
  40. {}
  41. ],
  42. "space-unary-ops": [
  43. 2,
  44. {
  45. "words": false,
  46. "nonwords": false
  47. }
  48. ],
  49. "no-spaced-func": 2,
  50. "space-before-function-paren": [
  51. 1,
  52. {
  53. "anonymous": "ignore",
  54. "named": "never"
  55. }
  56. ],
  57. "comma-dangle": [
  58. 2,
  59. "never"
  60. ],
  61. "no-trailing-spaces": 0,
  62. "max-len": [
  63. 2,
  64. 160
  65. ],
  66. "comma-style": [
  67. 2,
  68. "last"
  69. ],
  70. "curly": [
  71. 2,
  72. "all"
  73. ],
  74. "space-infix-ops": 2,
  75. "spaced-comment": 1,
  76. "space-before-blocks": [
  77. 2,
  78. "always"
  79. ],
  80. "indent": [
  81. 2,
  82. 4,
  83. {
  84. "SwitchCase": 1
  85. }
  86. ]
  87. }
  88. }