.eslintrc 1.3 KB

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