Skip to content

Update package.json - #49

Open
sabway wants to merge 1 commit into
Eclipse-Laboratories-Inc:mainfrom
sabway:patch-2
Open

sabway wants to merge 1 commit into
Eclipse-Laboratories-Inc:mainfrom
sabway:patch-2

Conversation

@sabway

@sabway sabway commented Dec 28, 2024

Copy link
Copy Markdown

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