-
Notifications
You must be signed in to change notification settings - Fork 17
Refactor admin #14
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
base: main
Are you sure you want to change the base?
Refactor admin #14
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||||
| /.vscode | ||||||||
| /node_modules | ||||||||
| ./dist | ||||||||
| *. env | ||||||||
| .env | ||||||||
| .env .* | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Security Issue: Typo in ignore pattern Confidence: 5/5 Suggested Fix
Suggested change
Remove the space between Prompt for AICopy this prompt to your AI IDE to fix this issue locally: |
||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "singleQuote": false, | ||
| "bracketSpacing": true, | ||
| "tabWidth": 2, | ||
| "trailingComma": "es5", | ||
| "semi": true, | ||
| "plugins": [ | ||
| "prettier-plugin-tailwindcss", | ||
| "@trivago/prettier-plugin-sort-imports" | ||
| ], | ||
| "importOrder": [ | ||
| "^react", | ||
| "^next", | ||
| "<THIRD_PARTY_MODULES>", | ||
| "^@/(.*)$", | ||
| "^[./]" | ||
| ], | ||
| "importOrderSeparation": true, | ||
| "importOrderSortSpecifiers": true, | ||
| "importOrderGroupNamespaceSpecifiers": true, | ||
| "importOrderCaseInsensitive": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import nextCoreWebVitals from "eslint-config-next/core-web-vitals"; | ||
| import nextTypescript from "eslint-config-next/typescript"; | ||
|
|
||
| const eslintConfig = [ | ||
| ...nextCoreWebVitals, | ||
| ...nextTypescript, | ||
| { | ||
| ignores: [ | ||
| "node_modules/**", | ||
| ".next/**", | ||
| "out/**", | ||
| "build/**", | ||
| "next-env.d.ts", | ||
| ], | ||
| rules: { | ||
| "@typescript-eslint/no-explicit-any": "off", | ||
| }, | ||
| }, | ||
| ]; | ||
|
|
||
| export default eslintConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security Issue: Typo in ignore pattern
*. env(space between*and.env) will NOT match.envfiles. This defeats the purpose of ignoring environment files that typically contain sensitive credentials and secrets. Environment files could be formatted by Prettier and potentially exposed in version control.Confidence: 5/5
Suggested Fix
Remove the space between
*and.envto properly match all.envfiles.Prompt for AI
Copy this prompt to your AI IDE to fix this issue locally: