-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enhance ESLint and Prettier configurations for consistent code…
… style and add linting scripts
- Loading branch information
Showing
3 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
{ | ||
"extends": [ | ||
"next/core-web-vitals" // Use next/core-web-vitals for best Next.js defaults | ||
], | ||
"extends": ["next/core-web-vitals"], | ||
"rules": { | ||
"unused-imports/no-unused-imports": "error", | ||
"no-empty-function": "off", // Only if absolutely necessary | ||
"no-empty-function": "error", | ||
"object-shorthand": ["error", "always"], | ||
"quotes": ["error", "single"], | ||
"no-unused-vars": "warn", // Use "warn" instead of turning off completely | ||
"no-unused-vars": "error", | ||
"semi": ["warn", "always"], | ||
"indent": ["error", 2], | ||
"comma-dangle": ["warn", "always-multiline"], | ||
"prefer-const": "error", | ||
"arrow-parens": ["error", "as-needed"], | ||
"eol-last": ["error", "always"], | ||
"react/display-name": "off", | ||
"react/no-unknown-property": "off", | ||
"react/prop-types": "off" | ||
"react/no-unknown-property": "off", | ||
"react/prop-types": "off", | ||
"jsx-quotes": ["error", "prefer-double"], | ||
"react/self-closing-comp": [ | ||
"error", | ||
{ | ||
"component": true, | ||
"html": true | ||
} | ||
] | ||
}, | ||
"plugins": ["unused-imports"], | ||
"settings": { | ||
"react": { | ||
"version": "detect" // Automatically detect React version | ||
"version": "detect" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"semi": true, | ||
"tabWidth": 2, | ||
"printWidth": 120, | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid", | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters