diff --git a/coral/.eslintrc.cjs b/coral/.eslintrc.cjs index c348ade65f..a001ceae13 100644 --- a/coral/.eslintrc.cjs +++ b/coral/.eslintrc.cjs @@ -70,7 +70,7 @@ module.exports = { "plugins": [ "react", "@typescript-eslint", - "no-relative-import-paths" + "no-relative-import-paths", ], "settings": { "react": { @@ -81,6 +81,9 @@ module.exports = { "no-relative-import-paths/no-relative-import-paths": [ "error" ], - "no-restricted-imports": strip_ids_from_no_restricted_imports(NO_RESTRICTED_IMPORTS_RULES) + "no-unused-vars": "off", + "no-restricted-imports": strip_ids_from_no_restricted_imports(NO_RESTRICTED_IMPORTS_RULES), + "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/no-explicit-any": "error" } } diff --git a/coral/docs/directory-structure.md b/coral/docs/directory-structure.md index 3565103d2a..d27c5f7aa0 100644 --- a/coral/docs/directory-structure.md +++ b/coral/docs/directory-structure.md @@ -65,9 +65,10 @@ The structure is inspired in big parts by: │ │ ├── ... │ │ ├── index.ts │ │── pages/ - │ │ ├── page-one - │ │ ├── ... - │ │ └── index.ts + │ │ ├── index.tsx + │ │ ├── Login.tsx + │ │ ├── Users.tsx + │ │ └── ... │ └── router.tsx ├── domain/ │ ├── name-of-domain-one/ @@ -127,7 +128,7 @@ In this directory, we group similar code together based on one feature. The stru #### `pages` -Contains every page of the application, one file per page. The structure in this folder should mirror the structure of the web apps views and routing. If there is a link to a "dashboard" page in the web app, there should be a `Dashboard` page inside `pages`. +Contains every page of the application, one file per page. The structure in this folder should mirror the structure of the web apps views and routing. If there is a link to a "dashboard" page in the web app, there should be a `Dashboard` page inside `pages`. The files don't need to have a `Page` pre- or postfix since the directory already gives that information. #### `services` diff --git a/coral/index.html b/coral/index.html index 6ebc58fd0a..7610416fff 100644 --- a/coral/index.html +++ b/coral/index.html @@ -8,6 +8,6 @@
- +