.eslintrc.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "env": {
  3. "node": true
  4. },
  5. "extends": [
  6. "eslint:recommended",
  7. "plugin:@typescript-eslint/recommended"
  8. ],
  9. "ignorePatterns": [
  10. "out/**",
  11. "node_modules/**",
  12. "prism.js"
  13. ],
  14. "overrides": [
  15. ],
  16. "parser": "@typescript-eslint/parser",
  17. "parserOptions": {
  18. "ecmaVersion": "latest",
  19. "sourceType": "module"
  20. },
  21. "plugins": [
  22. "@typescript-eslint",
  23. "@typescript-eslint/tslint"
  24. ],
  25. "rules": {
  26. "@typescript-eslint/no-empty-function": "off",
  27. "@typescript-eslint/no-explicit-any": "off",
  28. "@typescript-eslint/no-unused-vars": "off",
  29. "@typescript-eslint/no-inferrable-types": "off",
  30. "@typescript-eslint/ban-types": "warn",
  31. "no-async-promise-executor": "warn",
  32. "no-inner-declarations": "warn",
  33. "no-prototype-builtins": "warn",
  34. "no-constant-condition": "warn",
  35. "prefer-const": "warn",
  36. "no-useless-escape": "off",
  37. "no-var": "off",
  38. "indent": [
  39. "off",
  40. "tab"
  41. ],
  42. "linebreak-style": [
  43. "off",
  44. "windows"
  45. ],
  46. "quotes": [
  47. "warn",
  48. "double"
  49. ],
  50. "semi": [
  51. "error",
  52. "always"
  53. ]
  54. }
  55. }