mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
fix command, info in readme
This commit is contained in:
parent
2745382283
commit
3ab276ea40
@ -1,7 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: 'next/core-web-vitals',
|
|
||||||
rules: {
|
|
||||||
// Turn off exhaustive-deps rule that's causing most of the warnings
|
|
||||||
'react-hooks/exhaustive-deps': 'off'
|
|
||||||
}
|
|
||||||
}
|
|
@ -119,6 +119,14 @@ PlebDevs is an open-source platform that combines educational content, community
|
|||||||
Now the database is running and the migrations are applied.
|
Now the database is running and the migrations are applied.
|
||||||
You can now run locally.
|
You can now run locally.
|
||||||
|
|
||||||
|
### Linting and Code Formatting
|
||||||
|
|
||||||
|
We use ESLint with Next.js configuration and Prettier for code formatting. We've kept the linting process simple with just two commands:
|
||||||
|
|
||||||
|
- `npm run lint` - Run ESLint to check for issues
|
||||||
|
- `npm run lint:fix` - Fix both ESLint and Prettier formatting issues in one command
|
||||||
|
|
||||||
|
Before submitting a PR, please run `npm run lint:fix` to ensure your code follows our standards.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
"build": "npx prisma generate && next build && npx prisma migrate deploy",
|
"build": "npx prisma generate && next build && npx prisma migrate deploy",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
|
"lint:fix": "next lint --fix && prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
|
||||||
"postinstall": "npx prisma generate"
|
"postinstall": "npx prisma generate"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -58,6 +59,7 @@
|
|||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "14.2.5",
|
"eslint-config-next": "14.2.5",
|
||||||
"postcss": "^8",
|
"postcss": "^8",
|
||||||
|
"prettier": "^3.2.5",
|
||||||
"tailwindcss": "^3.4.1"
|
"tailwindcss": "^3.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user