.eslintrc.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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-await-in-loop":"off",
  14. "no-return-assign": "off",
  15. "operator-assignment": "off",
  16. "no-fallthrough": "off",
  17. "function-call-argument-newline":"off",
  18. "no-else-return" : "off",
  19. "no-empty":"off",
  20. "no-cond-assign": "off",
  21. "prefer-regex-literals": "off",
  22. "@typescript-eslint/no-empty-function": "off",
  23. "no-restricted-globals": "off",
  24. "prefer-object-spread": "off",
  25. "guard-for-in":"off",
  26. "no-multi-assign": "off",
  27. "no-lonely-if": "off",
  28. "@typescript-eslint/lines-between-class-members": "off",
  29. "prefer-exponentiation-operator":"off",
  30. "no-restricted-properties": "off",
  31. "function-paren-newline": "off",
  32. "no-labels": "off",
  33. "@typescript-eslint/no-shadow": "off",
  34. "no-nested-ternary": "off",
  35. "no-debugger": "off",
  36. "no-mixed-operators": "off",
  37. "prefer-destructuring": "off",
  38. "no-console": "off",
  39. "import/export": "off",
  40. "@typescript-eslint/quotes": "off",
  41. "prefer-const": "off",
  42. 'linebreak-style': ["off", "windows"],
  43. "prefer-rest-params": "off",
  44. "max-classes-per-file": "off",
  45. "max-len": "off",
  46. "new-parens": "off",
  47. "no-continue": "off",
  48. "no-plusplus": "off",
  49. "import/prefer-default-export": "off",
  50. "@typescript-eslint/naming-convention": "off",
  51. "@typescript-eslint/no-unused-vars": "off",
  52. "@typescript-eslint/no-use-before-define": "off",
  53. "import/no-cycle": "off",
  54. "no-bitwise": 'off',
  55. "default-case": "off",
  56. "no-param-reassign": "off",
  57. "class-methods-use-this": "off",
  58. "consistent-return": "off",
  59. "no-underscore-dangle": "off",
  60. "no-restricted-syntax": "off",
  61. },
  62. "parserOptions": {
  63. "warnOnUnsupportedTypeScriptVersion": false,
  64. "ecmaVersion": 12,
  65. "sourceType": "module",
  66. "project": resolve("tsconfig.json")
  67. }
  68. }