-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dhruvpatidar359:master' into feature/pan-Using-Space-key
- Loading branch information
Showing
73 changed files
with
8,864 additions
and
4,784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module.exports = { | ||
root: true, | ||
ignorePatterns: ["node_modules/**", "dist/**"], | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
"plugin:react/recommended", | ||
"plugin:react/jsx-runtime", | ||
"next", | ||
"prettier", | ||
], | ||
overrides : [ | ||
{ plugins: ["react", "@typescript-eslint"], | ||
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"], | ||
parser: "@typescript-eslint/parser", | ||
|
||
|
||
rules: { | ||
"react/no-direct-mutation-state": [ | ||
"error", // Keep the default as error | ||
{ | ||
ignoreCallbacks: true, // Allow mutation within callbacks (optional) | ||
mutators: ["this.setState"], // Allow mutation using this.setState (optional) | ||
}, | ||
], | ||
"react/no-unescaped-entities": "off", | ||
"@next/next/no-page-custom-font": "off", | ||
},}], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
sourceType: "module", | ||
}, | ||
}; | ||
// eslint-disable-next-line no-undef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
### Description | ||
A clear and concise description of what the PR does. | ||
- This PR does the following: | ||
- Adds ... | ||
- Fixes ... | ||
- Updates ... | ||
|
||
### Related Issues | ||
Link any related issues using the format `Fixes #issue_number`. | ||
This helps to automatically close related issues when the PR is merged. | ||
- Placeholder: "Fixes #123" | ||
|
||
### Changes | ||
List the detailed changes made in this PR. | ||
- Added a new feature to ... | ||
- Refactored the ... | ||
- Fixed a bug in ... | ||
|
||
### Testing Instructions | ||
Detailed instructions on how to test the changes. Include any setup needed and specific test cases. | ||
1. Pull this branch. | ||
2. Run `npm install` to install dependencies. | ||
3. Run `npm test` to execute the test suite. | ||
4. Verify that ... | ||
|
||
### Screenshots (if applicable) | ||
Add any screenshots that help explain or visualize the changes. | ||
|
||
### Additional Context | ||
Any additional context or information that reviewers should be aware of. | ||
- This PR is based on the following... | ||
|
||
### Checklist | ||
Make sure to check off all the items before submitting. Mark with [x] if done. | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] My changes generate no new warnings | ||
- [ ] I am working on this issue under GSSOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
# check jest standards | ||
npm run test || | ||
( | ||
echo 'Jest test failed. ' | ||
false; | ||
) | ||
# check prettier standards | ||
npm run check-format || | ||
( | ||
echo 'Prettier check Failed,Run npm run format, add changes and try commit again.' | ||
false; | ||
) | ||
|
||
#check ESLint standards | ||
npm run check-lint || | ||
( | ||
echo 'eslint check failed. ' | ||
false; | ||
) | ||
echo 'All Done I am committing this now' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist | ||
build | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "endOfLine": "lf", "printWidth": 80, "tabWidth": 2, "trailingComma": "es5" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.fixAll.format": "explicit" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.