Skip to content

Commit

Permalink
Adds prettier to pr check action and app
Browse files Browse the repository at this point in the history
  • Loading branch information
Florencia-97 committed Jun 28, 2024
1 parent 7308335 commit 911fd00
Show file tree
Hide file tree
Showing 82 changed files with 1,421 additions and 1,208 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ jobs:
- uses: actions/checkout@v2
- name: Install packages
run: npm install
- name: Prettier
run: npm run format
- name: Lint
run: npm run lint
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
singleQuote: true,
trailingComma: 'all',
printWidth: 100,
};
191 changes: 167 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint ."
"lint": "eslint .",
"format": "prettier --check ./src",
"format:fix": "prettier --write ./src"
},
"eslintConfig": {
"extends": [
Expand All @@ -52,8 +54,10 @@
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@eslint/js": "^9.5.0",
"ajv": "^7.2.4",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2"
"eslint-plugin-react-hooks": "^4.6.2",
"prettier": "^3.3.2"
}
}
Loading

0 comments on commit 911fd00

Please sign in to comment.