feature: add concurrently linting
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"trailingComma": "all",
|
"trailingComma": "all",
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
# Next.js + Feature-Sliced Design | Pure Template
|
# Next.js + Feature-Sliced Design | Pure Template
|
||||||
|
|
||||||
## IMPORTANT
|
## IMPORTANT
|
||||||
Do not delete the pages* folder even if you are using App Router, deleting the pages folder
|
|
||||||
|
Do not delete the pages\* folder even if you are using App Router, deleting the pages folder
|
||||||
will result in a [build error](https://t.me/feature_sliced/1/107414).
|
will result in a [build error](https://t.me/feature_sliced/1/107414).
|
||||||
|
|
||||||
## ADDITIONAL SOLUTION TO THE PROBLEM
|
## ADDITIONAL SOLUTION TO THE PROBLEM
|
||||||
|
|
||||||
If you don't like the empty "pages" folder in the project root, you can rename the pages layer (./src/pages)
|
If you don't like the empty "pages" folder in the project root, you can rename the pages layer (./src/pages)
|
||||||
for example to "pagesLayer" and then delete the pages folder from the project root.
|
for example to "pagesLayer" and then delete the pages folder from the project root.
|
||||||
|
|
||||||
@@ -15,9 +17,9 @@ for example to "pagesLayer" and then delete the pages folder from the project ro
|
|||||||
## Folders description
|
## Folders description
|
||||||
|
|
||||||
| Folder | Description |
|
| Folder | Description |
|
||||||
|--------------|-----------------------------------------------------------------------------------------------------------------|
|
| ------------ | --------------------------------------------------------------------------------------------------------------- |
|
||||||
| app | Next App folder for [App Routing](https://nextjs.org/docs/app/building-your-application/routing#the-app-router) |
|
| app | Next App folder for [App Routing](https://nextjs.org/docs/app/building-your-application/routing#the-app-router) |
|
||||||
| pages * | Next Pages folder for [Pages Routing](https://nextjs.org/docs/pages) |
|
| pages \* | Next Pages folder for [Pages Routing](https://nextjs.org/docs/pages) |
|
||||||
| public | Public files |
|
| public | Public files |
|
||||||
| src/app | App FSD Layer |
|
| src/app | App FSD Layer |
|
||||||
| src/pages | Pages FSD Layer |
|
| src/pages | Pages FSD Layer |
|
||||||
|
|||||||
+3
-1
@@ -11,7 +11,8 @@
|
|||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "concurrently \"yarn lint:es\" \"yarn lint:prettier\"",
|
||||||
|
"lint:es": "next lint",
|
||||||
"lint:prettier": "prettier . --write",
|
"lint:prettier": "prettier . --write",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watch"
|
"test:watch": "jest --watch"
|
||||||
@@ -30,6 +31,7 @@
|
|||||||
"@types/node": "^20",
|
"@types/node": "^20",
|
||||||
"@types/react": "^18",
|
"@types/react": "^18",
|
||||||
"@types/react-dom": "^18",
|
"@types/react-dom": "^18",
|
||||||
|
"concurrently": "^8.2.2",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "14.2.3",
|
"eslint-config-next": "14.2.3",
|
||||||
"eslint-import-resolver-typescript": "^3.6.1",
|
"eslint-import-resolver-typescript": "^3.6.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user