a Christian matrix bot
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.

83 lines
1.3 KiB

  1. {
  2. "env": {
  3. "node": true,
  4. "es2021": true
  5. },
  6. "sourceType": "module",
  7. "extends": "eslint:recommended",
  8. "parserOptions": {
  9. "ecmaVersion": "latest",
  10. "ecmaFeatures": {
  11. "impliedStrict": true
  12. }
  13. },
  14. "rules": {
  15. "camelcase": "error",
  16. "max-len": [
  17. "error",
  18. {
  19. "code": 80,
  20. "tabWidth": 2,
  21. "ignoreUrls": true,
  22. "ignoreComments": false,
  23. "ignoreTrailingComments": false,
  24. "ignoreStrings": false,
  25. "ignoreTemplateLiterals": false,
  26. "ignoreRegExpLiterals": false
  27. }
  28. ],
  29. "max-lines-per-function": [
  30. "error",
  31. {
  32. "max": 20,
  33. "skipBlankLines": true,
  34. "skipComments": true,
  35. "IIFEs": true
  36. }
  37. ],
  38. "indent": [
  39. "error",
  40. "tab"
  41. ],
  42. "quotes": [
  43. "error",
  44. "single",
  45. {
  46. "avoidEscape": true,
  47. "allowTemplateLiterals": true
  48. }
  49. ],
  50. "semi": [
  51. "error",
  52. "never"
  53. ],
  54. "newline-per-chained-call": [
  55. "error",
  56. {"ignoreChainWithDepth": 3}
  57. ],
  58. "brace-style": [
  59. "error",
  60. "1tbs",
  61. {"allowSingleLine": true}
  62. ],
  63. "object-curly-newline": [
  64. "error",
  65. {
  66. "minProperties": 3,
  67. "multiline": true,
  68. "consistent": true
  69. }
  70. ],
  71. "no-var": "error",
  72. "prefer-const": [
  73. "error",
  74. {"destructuring": "all"}
  75. ],
  76. "arrow-spacing": "error",
  77. "no-magic-numbers": [
  78. "error",
  79. {"ignore": [-1,0,1]}
  80. ]
  81. }
  82. }