Skip to content

Commit

Permalink
chore: configure Prettier for code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-kashkoush committed Nov 8, 2024
1 parent 7649ef7 commit 3e48e6b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
}
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore all build and dependency folders
node_modules
build
dist

# Ignore specific files
package-lock.json
11 changes: 10 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{}
{
"singleQuote": true,
"trailingComma": "es5",
"jsxSingleQuote": true,
"semi": true,
"tabWidth": 2,
"printWidth": 80,
"bracketSpacing": true,
"arrowParens": "always"
}

0 comments on commit 3e48e6b

Please sign in to comment.