.eslintrc.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. const path = require('path');
  2. const resolve = (url) => path.resolve(__dirname, url);
  3. module.exports = {
  4. "extends": [
  5. 'airbnb-base',
  6. 'airbnb-typescript/base'
  7. ],
  8. "env": {
  9. "browser": true,
  10. "es2021": true
  11. },
  12. "rules": {
  13. "no-cond-assign": "off",
  14. "prefer-regex-literals": "off",
  15. "@typescript-eslint/no-empty-function": "off",
  16. "no-restricted-globals": "off",
  17. "prefer-object-spread": "off",
  18. "guard-for-in":"off",
  19. "no-multi-assign": "off",
  20. "no-lonely-if": "off",
  21. "@typescript-eslint/lines-between-class-members": "off",
  22. "prefer-exponentiation-operator":"off",
  23. "no-restricted-properties": "off",
  24. "function-paren-newline": "off",
  25. "no-labels": "off",
  26. "@typescript-eslint/no-shadow": "off",
  27. "no-nested-ternary": "off",
  28. "no-debugger": "off",
  29. "no-mixed-operators": "off",
  30. "prefer-destructuring": "off",
  31. "no-console": "off",
  32. "import/export": "off",
  33. "@typescript-eslint/quotes": "off",
  34. "prefer-const": "off",
  35. 'linebreak-style': ["off", "windows"],
  36. "prefer-rest-params": "off",
  37. "max-classes-per-file": "off",
  38. "max-len": "off",
  39. "new-parens": "off",
  40. "no-continue": "off",
  41. "no-plusplus": "off",
  42. "import/prefer-default-export": "off",
  43. "@typescript-eslint/naming-convention": "off",
  44. "@typescript-eslint/no-unused-vars": "off",
  45. "@typescript-eslint/no-use-before-define": "off",
  46. "import/no-cycle": "off",
  47. "no-bitwise": 'off',
  48. "default-case": "off",
  49. "no-param-reassign": "off",
  50. "class-methods-use-this": "off",
  51. "consistent-return": "off",
  52. "no-underscore-dangle": "off",
  53. "no-restricted-syntax": "off",
  54. },
  55. "parserOptions": {
  56. "warnOnUnsupportedTypeScriptVersion": false,
  57. "ecmaVersion": 12,
  58. "sourceType": "module",
  59. "project": resolve("tsconfig.json")
  60. }
  61. }