.eslintrc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "env": {
  3. "browser": false,
  4. "es2021": true,
  5. "node": true
  6. },
  7. "parserOptions": {
  8. "ecmaVersion": 2021,
  9. "sourceType": "module"
  10. },
  11. "extends": [
  12. "eslint:recommended",
  13. "airbnb-base",
  14. "prettier",
  15. "plugin:jsdoc/recommended"
  16. ],
  17. "plugins": [ "prettier", "jsdoc" ],
  18. "rules": {
  19. "no-console": 0,
  20. "no-control-regex": 0,
  21. "no-var": 2,
  22. "no-underscore-dangle": 0,
  23. "radix": 0,
  24. "no-multi-assign": 0,
  25. "no-shadow": 0,
  26. "no-new": 0,
  27. "import/no-unresolved": 0,
  28. "prettier/prettier": ["error"], // end of copied frontend rules
  29. "max-classes-per-file": 0,
  30. "max-len": ["error", { "code": 140, "ignoreComments": true, "ignoreUrls": true, "ignoreTemplateLiterals": true }],
  31. "no-param-reassign": 0,
  32. "implicit-arrow-linebreak": 0,
  33. "import/extensions": 0,
  34. "class-methods-use-this": 0,
  35. "require-jsdoc": [2, {
  36. "require": {
  37. "FunctionDeclaration": true,
  38. "MethodDefinition": true,
  39. "ClassDeclaration": false,
  40. "ArrowFunctionExpression": false,
  41. "FunctionExpression": false
  42. }
  43. }]
  44. }
  45. }