eslintrc.base.json 564 B

123456789101112131415161718192021
  1. {
  2. "overrides": [
  3. {
  4. "files": ["src/**/*.{ts,tsx}"],
  5. "rules": {
  6. "@typescript-eslint/no-restricted-imports": [
  7. "error",
  8. {
  9. "patterns": [
  10. {
  11. "group": ["../../excalidraw", "../../../packages/excalidraw", "@excalidraw/excalidraw"],
  12. "message": "Do not import from '@excalidraw/excalidraw' package anything but types, as this package must be independent.",
  13. "allowTypeImports": true
  14. }
  15. ]
  16. }
  17. ]
  18. }
  19. }
  20. ]
  21. }