feature: add concurrently linting
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"trailingComma": "all",
|
"trailingComma": "all",
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
**Use what you like best <3**
|
**Use what you like best <3**
|
||||||
@@ -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 |
|
||||||
|
|||||||
+52
-50
@@ -1,52 +1,54 @@
|
|||||||
{
|
{
|
||||||
"name": "fsd-nest-template",
|
"name": "fsd-nest-template",
|
||||||
"description": "Pure Next.js FSD template with stylelint, prettier and eslint",
|
"description": "Pure Next.js FSD template with stylelint, prettier and eslint",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "@yunglocokid (Dmitriy Bratchikov)",
|
"name": "@yunglocokid (Dmitriy Bratchikov)",
|
||||||
"url": "https://github.com/yunglocokid"
|
"url": "https://github.com/yunglocokid"
|
||||||
},
|
},
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"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:prettier": "prettier . --write",
|
"lint:es": "next lint",
|
||||||
"test": "jest",
|
"lint:prettier": "prettier . --write",
|
||||||
"test:watch": "jest --watch"
|
"test": "jest",
|
||||||
},
|
"test:watch": "jest --watch"
|
||||||
"dependencies": {
|
},
|
||||||
"next": "14.2.3",
|
"dependencies": {
|
||||||
"normalize.css": "^8.0.1",
|
"next": "14.2.3",
|
||||||
"react": "^18",
|
"normalize.css": "^8.0.1",
|
||||||
"react-dom": "^18"
|
"react": "^18",
|
||||||
},
|
"react-dom": "^18"
|
||||||
"devDependencies": {
|
},
|
||||||
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
"devDependencies": {
|
||||||
"@testing-library/jest-dom": "^6.4.5",
|
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
||||||
"@testing-library/react": "^15.0.7",
|
"@testing-library/jest-dom": "^6.4.5",
|
||||||
"@types/jest": "^29.5.12",
|
"@testing-library/react": "^15.0.7",
|
||||||
"@types/node": "^20",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/react": "^18",
|
"@types/node": "^20",
|
||||||
"@types/react-dom": "^18",
|
"@types/react": "^18",
|
||||||
"eslint": "^8",
|
"@types/react-dom": "^18",
|
||||||
"eslint-config-next": "14.2.3",
|
"concurrently": "^8.2.2",
|
||||||
"eslint-import-resolver-typescript": "^3.6.1",
|
"eslint": "^8",
|
||||||
"eslint-plugin-boundaries": "^4.2.1",
|
"eslint-config-next": "14.2.3",
|
||||||
"eslint-plugin-react-hooks": "^4.6.2",
|
"eslint-import-resolver-typescript": "^3.6.1",
|
||||||
"eslint-plugin-react-refresh": "^0.4.7",
|
"eslint-plugin-boundaries": "^4.2.1",
|
||||||
"jest": "^29.7.0",
|
"eslint-plugin-react-hooks": "^4.6.2",
|
||||||
"jest-environment-jsdom": "^29.7.0",
|
"eslint-plugin-react-refresh": "^0.4.7",
|
||||||
"prettier": "^3.2.5",
|
"jest": "^29.7.0",
|
||||||
"sass": "^1.77.1",
|
"jest-environment-jsdom": "^29.7.0",
|
||||||
"stylelint": "^16.5.0",
|
"prettier": "^3.2.5",
|
||||||
"stylelint-config-standard": "^36.0.0",
|
"sass": "^1.77.1",
|
||||||
"stylelint-config-standard-scss": "^13.1.0",
|
"stylelint": "^16.5.0",
|
||||||
"stylelint-order": "^6.0.4",
|
"stylelint-config-standard": "^36.0.0",
|
||||||
"stylelint-order-config-standard": "^0.1.3",
|
"stylelint-config-standard-scss": "^13.1.0",
|
||||||
"ts-node": "^10.9.2",
|
"stylelint-order": "^6.0.4",
|
||||||
"typescript": "^5",
|
"stylelint-order-config-standard": "^0.1.3",
|
||||||
"typescript-eslint": "^7.10.0"
|
"ts-node": "^10.9.2",
|
||||||
}
|
"typescript": "^5",
|
||||||
|
"typescript-eslint": "^7.10.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user