Skip to content

Commit

Permalink
remove old code #79
Browse files Browse the repository at this point in the history
remove old code
  • Loading branch information
yesyash authored Aug 4, 2024
2 parents d0e2593 + 4dffb12 commit e216e1c
Show file tree
Hide file tree
Showing 71 changed files with 168 additions and 2,326 deletions.
80 changes: 69 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,72 @@
{
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"],
"extends": ["eslint:recommended", "next", "next/core-web-vitals", "prettier"],
"env": {
"jest": true
},
"rules": {
"indent": ["error", 4],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error"
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier",
"next/core-web-vitals"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"react",
"@typescript-eslint",
"react-hooks",
"import"
],
"rules": {
"eol-last": [
"error",
"always"
],
"linebreak-style": [
"error",
"unix"
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "warn",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always",
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "@/*",
"group": "internal"
}
],
"pathGroupsExcludedImportTypes": [
"builtin",
"@/*"
]
}
]
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": [
"node_modules/",
".next/",
"out/"
]
}
5 changes: 3 additions & 2 deletions .github/workflows/pre-commit-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ jobs:
- name: Prettier check
run: yarn check-format

- name: Run tests
run: yarn test
# TODO : Uncomment the following lines after adding tests
# - name: Run tests
# run: yarn test
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

11 changes: 0 additions & 11 deletions __mocks__/db/common.ts

This file was deleted.

52 changes: 0 additions & 52 deletions __mocks__/db/endorsementDetails.json

This file was deleted.

25 changes: 0 additions & 25 deletions __mocks__/db/users.ts

This file was deleted.

35 changes: 0 additions & 35 deletions __mocks__/endorsements.js

This file was deleted.

5 changes: 0 additions & 5 deletions __mocks__/handler.ts

This file was deleted.

9 changes: 0 additions & 9 deletions __mocks__/handlers/endorsements.handler.js

This file was deleted.

18 changes: 0 additions & 18 deletions __mocks__/handlers/users.ts

This file was deleted.

Loading

0 comments on commit e216e1c

Please sign in to comment.