mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 12:31:54 +00:00
Add eslint-plugin-security and pre-commit hooks. (#5)
* feat: add eslint-plugin-security * chore: relocate devDependencies to the appropriate section in package.json * feat: add husky library for pre-commit hooks * feat: add husky library for pre-commit hooks * chore: improve prettierrc config
This commit is contained in:
@@ -9,6 +9,7 @@ module.exports = {
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:security/recommended-legacy",
|
||||
"prettier",
|
||||
],
|
||||
parserOptions: {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
npm run healthcheck
|
||||
+2
-2
@@ -5,5 +5,5 @@
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"semi": true,
|
||||
"printWidth": 120
|
||||
}
|
||||
"printWidth": 80
|
||||
}
|
||||
|
||||
Vendored
+9
-1
@@ -1,3 +1,11 @@
|
||||
{
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"prettier.printWidth": 80,
|
||||
"prettier.tabWidth": 2,
|
||||
"prettier.useTabs": false,
|
||||
"prettier.singleQuote": false,
|
||||
"prettier.trailingComma": "all",
|
||||
"prettier.semi": true,
|
||||
"prettier.bracketSpacing": true
|
||||
}
|
||||
|
||||
+17
-13
@@ -6,38 +6,41 @@
|
||||
"@nextui-org/theme": "2.2.5",
|
||||
"@react-aria/ssr": "3.9.4",
|
||||
"@react-aria/visually-hidden": "3.8.12",
|
||||
"clsx": "2.1.1",
|
||||
"framer-motion": "~11.1.1",
|
||||
"intl-messageformat": "^10.5.0",
|
||||
"next": "14.2.3",
|
||||
"next-themes": "^0.2.1",
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"swr": "^2.2.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "20.5.7",
|
||||
"@types/react": "18.3.3",
|
||||
"@types/react-dom": "18.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.10.0",
|
||||
"@typescript-eslint/parser": "^7.10.0",
|
||||
"autoprefixer": "10.4.19",
|
||||
"clsx": "2.1.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-next": "14.2.1",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-react": "^7.23.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-security": "^3.0.1",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
||||
"eslint-plugin-unused-imports": "^3.2.0",
|
||||
"framer-motion": "~11.1.1",
|
||||
"intl-messageformat": "^10.5.0",
|
||||
"next": "14.2.3",
|
||||
"next-themes": "^0.2.1",
|
||||
"husky": "^9.0.11",
|
||||
"lint-staged": "^15.2.7",
|
||||
"postcss": "8.4.38",
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"swr": "^2.2.5",
|
||||
"tailwind-variants": "0.1.20",
|
||||
"tailwindcss": "3.4.3",
|
||||
"typescript": "5.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1"
|
||||
},
|
||||
"name": "prowler-next-app",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
@@ -49,7 +52,8 @@
|
||||
"lint:check": "./node_modules/.bin/eslint ./app",
|
||||
"lint:fix": "eslint . --ext .ts,.tsx -c .eslintrc.cjs --fix",
|
||||
"format:check": "./node_modules/.bin/prettier --check ./app",
|
||||
"format:write": "./node_modules/.bin/prettier --config .prettierrc.json --write ./app"
|
||||
"format:write": "./node_modules/.bin/prettier --config .prettierrc.json --write ./app",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"version": "0.0.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user