theme for redbrick site
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.

66 lines
1.0 KiB

  1. {
  2. "extends": "standard",
  3. "env": {
  4. "es6": true,
  5. "jest": true,
  6. "browser": true,
  7. "jquery": true,
  8. "node": true
  9. },
  10. "globals": {
  11. "GENTLY": true,
  12. "grecaptcha": true,
  13. "__SHARE_BUTTON_BINDED__": true,
  14. "hexo": true,
  15. "classie": true
  16. },
  17. "rules": {
  18. "no-multi-spaces": 0,
  19. "indent": [
  20. "error",
  21. 2
  22. ],
  23. "linebreak-style": [
  24. "error",
  25. "unix"
  26. ],
  27. "comma-dangle": [
  28. "error",
  29. "always-multiline"
  30. ],
  31. "quotes": [
  32. "error",
  33. "single"
  34. ],
  35. "semi": [
  36. "error",
  37. "always"
  38. ],
  39. "no-var": [
  40. "error"
  41. ],
  42. "prefer-const": [
  43. "error",
  44. {
  45. "destructuring": "any",
  46. "ignoreReadBeforeAssign": false
  47. }
  48. ],
  49. "key-spacing": [
  50. "error",
  51. {
  52. "multiLine": {
  53. "beforeColon": false,
  54. "afterColon": true
  55. },
  56. "align": {
  57. "beforeColon": false,
  58. "afterColon": true,
  59. "on": "colon",
  60. "mode": "strict"
  61. }
  62. }
  63. ]
  64. }
  65. }