Skip to content

Commit

Permalink
chore: refactor some eslint rules and add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
omermorad committed Nov 9, 2023
1 parent cec6fd2 commit 960b9f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,9 @@
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": [
2,
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"endOfLine": "auto"
}
],
"no-useless-constructor": "off",
"react/forbid-prop-types": 0,
"no-unused-expressions": 0,
Expand All @@ -52,6 +41,7 @@
],
"global-require": 0,
"new-cap": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": 0,
Expand All @@ -63,6 +53,7 @@
"lines-between-class-members": "off"
},
"env": {
"node": true,
"jest": true
}
}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"endOfLine": "auto"
}

0 comments on commit 960b9f6

Please sign in to comment.