.eslintrc.js 2.2 KB

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