Skip to content

Commit

Permalink
chore: UNI-287 Set up linter and formatter (#291)
Browse files Browse the repository at this point in the history
* install prettier and add configs, uninstall eslint-plugin-prettier for backend

* move eslint to dev dependencies in frontend

* install and configure prettier and eslint-config-prettier

* install eslint for migration package

* install and configure prettier for migration package

* add lint command to package.json in migration
  • Loading branch information
adrianbalbs authored May 21, 2024
1 parent ead0099 commit 6c0cc63
Show file tree
Hide file tree
Showing 15 changed files with 5,217 additions and 1,239 deletions.
2 changes: 1 addition & 1 deletion backend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
},
extends: [
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
"prettier",
],
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
Expand Down
2 changes: 2 additions & 0 deletions backend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
coverage
5 changes: 5 additions & 0 deletions backend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all"
}
Loading

0 comments on commit 6c0cc63

Please sign in to comment.