Cheers. All fixed. Something funny with ESLint.
I’ve actually developed this idea a lot more and am really excited about how it works and provides structure.
My pattern is System, View, and App:
- System is all your error handling, database access, router, store, etc (anything behind the scenes and common to all apps)
- View is the theme, general site/app layout, minimalist pages (401, 404, Home), and functions like loading modals, error display
- App is effectively the home of all the modules. When the modules are installed, they feed things like menus to the View, and routes/stores to the System; as well as interact with each other (ie is the actual service/function of your site/app)
Once I’ve finished my current project using this structure I’m sure I’ll explain it more in another article.