Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package.json #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sabway
Copy link

@sabway sabway commented Dec 28, 2024

Changed versions to the more flexible “react: “^18.0.0.0” to support updates within the major version. (This allows you to get bug fixes and improvements without having to manually update dependencies)

Added development tools

  • Prettier: for automatic code formatting
  • Husky and lint-staged for checking and fixing code before commits
  • npm audit to check for vulnerabilities

Updating scripts

  • “lint" to test the code with ESLint
  • “format" to format the code using Prettier
  • “audit" to check for dependency vulnerabilities

Improved structuring added sections for Husky and lint-staged

"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write",
"eslint --fix",
"git add"
]
}

Changed versions to the more flexible “react: “^18.0.0.0” to support updates within the major version. (This allows you to get bug fixes and improvements without having to manually update dependencies)

Added development tools
- Prettier: for automatic code formatting
- Husky and lint-staged for checking and fixing code before commits
- npm audit to check for vulnerabilities

Updating scripts
- “lint" to test the code with ESLint
- “format" to format the code using Prettier
- “audit" to check for dependency vulnerabilities

Improved structuring added sections for Husky and lint-staged

"husky": {
  "hooks": {
    "pre-commit": "lint-staged"
  }
},
"lint-staged": {
  "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
    "prettier --write",
    "eslint --fix",
    "git add"
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant