.eslintrc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "parserOptions": {
  3. "ecmaVersion": 2018
  4. },
  5. "env": {
  6. "browser": true,
  7. "es6": true
  8. },
  9. "globals": {
  10. "Hyphenopoly": "readable"
  11. },
  12. "plugins": [
  13. "security"
  14. ],
  15. "extends": [
  16. "eslint:all",
  17. "plugin:security/recommended"
  18. ],
  19. "rules": {
  20. "no-undef": "error",
  21. "complexity": [
  22. "error",
  23. 6
  24. ],
  25. "require-unicode-regexp": 0,
  26. "require-jsdoc": [
  27. "error",
  28. {
  29. "require": {
  30. "FunctionDeclaration": true,
  31. "MethodDefinition": true,
  32. "ClassDeclaration": true,
  33. "ArrowFunctionExpression": true,
  34. "FunctionExpression": true
  35. }
  36. }
  37. ],
  38. "no-template-curly-in-string": 2,
  39. "prefer-template": 0,
  40. "wrap-iife": 1,
  41. "max-lines": 0,
  42. "max-lines-per-function": 0,
  43. "max-len": [
  44. 1,
  45. {
  46. "ignoreStrings": true,
  47. "ignoreTemplateLiterals": true
  48. }
  49. ],
  50. "max-statements": 0,
  51. "space-before-function-paren": [
  52. 1,
  53. {
  54. "anonymous": "always",
  55. "named": "never",
  56. "asyncArrow": "never"
  57. }
  58. ],
  59. "padded-blocks": [
  60. 1,
  61. "never"
  62. ],
  63. "id-length": [
  64. 1,
  65. {
  66. "min": 1
  67. }
  68. ],
  69. "one-var": 0,
  70. "func-names": [
  71. 1,
  72. "as-needed"
  73. ],
  74. "func-style": [
  75. 1,
  76. "declaration"
  77. ],
  78. "object-shorthand": 0,
  79. "prefer-arrow-callback": 0,
  80. "no-param-reassign": 0,
  81. "no-extra-parens": 0,
  82. "array-element-newline": [
  83. 1,
  84. {
  85. "multiline": true,
  86. "minItems": 12
  87. }
  88. ],
  89. "no-magic-numbers": 0,
  90. "function-paren-newline": [
  91. 1,
  92. "consistent"
  93. ],
  94. "no-ternary": 0,
  95. "no-nested-ternary": 0,
  96. "prefer-destructuring": 0,
  97. "max-params": [
  98. 1,
  99. 5
  100. ],
  101. "lines-around-comment": [
  102. 1,
  103. {
  104. "allowBlockStart": true
  105. }
  106. ],
  107. "sort-keys": [
  108. 1,
  109. "asc",
  110. {
  111. "caseSensitive": false
  112. }
  113. ]
  114. }
  115. }