You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.0 KiB

  1. {
  2. "root": true,
  3. "env": {
  4. "browser": true,
  5. "jest": true
  6. },
  7. "plugins": [
  8. "@typescript-eslint",
  9. "jane",
  10. "prettier"
  11. ],
  12. "settings": {
  13. "react": {
  14. "version": "detect"
  15. }
  16. },
  17. "extends": [
  18. "plugin:jane/recommended",
  19. "plugin:jane/react",
  20. "plugin:jane/typescript",
  21. "plugin:@typescript-eslint/recommended",
  22. "prettier",
  23. "prettier/react"
  24. ],
  25. "parser": "@typescript-eslint/parser",
  26. "rules": {
  27. "@typescript-eslint/camelcase": 0,
  28. "@typescript-eslint/member-delimiter-style": 0,
  29. "@typescript-eslint/no-empty-interface": 0,
  30. "@typescript-eslint/no-explicit-any": 0,
  31. "@typescript-eslint/no-this-alias": 0,
  32. "@typescript-eslint/no-unused-vars": 1,
  33. "@typescript-eslint/no-use-before-define": 0,
  34. "@typescript-eslint/ban-ts-comment": 0,
  35. "@typescript-eslint/no-useless-constructor": 0,
  36. "arrow-body-style": 0,
  37. "curly": 0,
  38. "eol-last": 0,
  39. "eqeqeq": 0,
  40. "func-style": 0,
  41. "import/no-duplicates": 0,
  42. "max-statements": 0,
  43. "max-params": 0,
  44. "new-cap": 0,
  45. "no-console": 0,
  46. "no-duplicate-imports": 0,
  47. "no-extra-parens": 0,
  48. "no-return-assign": 0,
  49. "no-throw-literal": 0,
  50. "no-trailing-spaces": 0,
  51. "no-unused-expressions": 0,
  52. "no-useless-constructor": 0,
  53. "no-useless-escape": 0,
  54. "no-var": 0,
  55. "prefer-const": 0,
  56. "prefer-rest-params": 0,
  57. "quote-props": 0,
  58. "unicorn/filename-case": 0,
  59. "react/no-direct-mutation-state": 1,
  60. "react/no-access-state-in-setstate": 1,
  61. "react/jsx-key": 2,
  62. "jsx-a11y/no-onchange": 0,
  63. "jsx-a11y/aria-role": 1,
  64. "jsx-a11y/click-events-have-key-events": 1,
  65. "react/no-did-update-set-state": 0,
  66. "prettier/prettier": [
  67. "error",
  68. {
  69. "trailingComma": "es5",
  70. "singleQuote": true,
  71. "printWidth": 80,
  72. "arrowParens": "avoid"
  73. }
  74. ]
  75. },
  76. "overrides": [
  77. {
  78. "files": [
  79. "*.js"
  80. ],
  81. "rules": {
  82. "@typescript-eslint/no-var-requires": 0
  83. }
  84. }
  85. ]
  86. }