Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

3 lat temu
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "env": {
  3. "es2020": true,
  4. "node": true,
  5. "jest": true
  6. },
  7. "extends": [
  8. "airbnb-base",
  9. "plugin:@typescript-eslint/recommended",
  10. "prettier/@typescript-eslint",
  11. "plugin:prettier/recommended"
  12. ],
  13. "parser": "@typescript-eslint/parser",
  14. "parserOptions": {
  15. "ecmaVersion": 2020,
  16. "sourceType": "module"
  17. },
  18. "plugins": [
  19. "@typescript-eslint",
  20. "prettier"
  21. ],
  22. "rules": {
  23. "prettier/prettier": "error",
  24. "no-param-reassign": "off",
  25. "no-plusplus": "off",
  26. "no-await-in-loop": "off",
  27. "no-useless-constructor": "off",
  28. "no-underscore-dangle": "off",
  29. "camelcase": "off",
  30. "no-console": "off",
  31. "class-methods-use-this": "off",
  32. "@typescript-eslint/no-unused-vars": [
  33. "error",
  34. {
  35. "argsIgnorePattern": "^_"
  36. }
  37. ],
  38. "@typescript-eslint/naming-convention": [
  39. "error",
  40. {
  41. "selector": "interface",
  42. "format": [
  43. "PascalCase"
  44. ],
  45. "custom": {
  46. "regex": "^I[A-Z]",
  47. "match": true
  48. }
  49. }
  50. ],
  51. "import/extensions": [
  52. "error",
  53. "ignorePackages",
  54. {
  55. "ts": "never"
  56. }
  57. ],
  58. "no-shadow": "off",
  59. "@typescript-eslint/no-shadow": ["error"]
  60. },
  61. "settings": {
  62. "import/resolver": {
  63. "typescript": {}
  64. }
  65. }
  66. }