.eslintrc.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "extends": ["@excalidraw/eslint-config", "react-app"],
  3. "rules": {
  4. "import/order": [
  5. "warn",
  6. {
  7. "groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
  8. "pathGroups": [
  9. {
  10. "pattern": "@excalidraw/**",
  11. "group": "external",
  12. "position": "after"
  13. }
  14. ],
  15. "newlines-between": "always-and-inside-groups",
  16. "warnOnUnassignedImports": true
  17. }
  18. ],
  19. "import/no-anonymous-default-export": "off",
  20. "no-restricted-globals": "off",
  21. "@typescript-eslint/consistent-type-imports": [
  22. "error",
  23. {
  24. "prefer": "type-imports",
  25. "disallowTypeAnnotations": false,
  26. "fixStyle": "separate-type-imports"
  27. }
  28. ],
  29. "no-restricted-imports": [
  30. "error",
  31. {
  32. "name": "jotai",
  33. "message": "Do not import from \"jotai\" directly. Use our app-specific modules (\"editor-jotai\" or \"app-jotai\")."
  34. }
  35. ],
  36. "react/jsx-no-target-blank": [
  37. "error",
  38. {
  39. "allowReferrer": true
  40. }
  41. ]
  42. }
  43. }