diff --git a/.eslintignore b/.eslintignore
index a547bf3..8bf8d19 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,4 +1,3 @@
-# Logs
logs
*.log
npm-debug.log*
@@ -12,7 +11,6 @@ dist
dist-ssr
*.local
-# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
new file mode 100644
index 0000000..2118117
--- /dev/null
+++ b/.eslintrc.cjs
@@ -0,0 +1,19 @@
+module.exports = {
+ root: true,
+ env: { browser: true, es2020: true, node: true },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:react-hooks/recommended',
+ 'plugin:prettier/recommended',
+ ],
+ ignorePatterns: ['dist', '.eslintrc.cjs'],
+ parser: '@typescript-eslint/parser',
+ plugins: ['react-refresh'],
+ rules: {
+ 'react-refresh/only-export-components': [
+ 'warn',
+ { allowConstantExport: true },
+ ],
+ },
+};
diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 7fb6708..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// .eslintrc.js
-module.exports = {
- env: {
- browser: true,
- es2021: true,
- node: true,
- },
- extends: [
- 'eslint:recommended',
- 'plugin:react/recommended',
- 'plugin:prettier/recommended',
- ],
- settings: {
- react: {
- version: 'detect',
- },
- },
- parserOptions: {
- ecmaFeatures: {
- jsx: true,
- },
- ecmaVersion: 'latest',
- sourceType: 'module',
- },
- plugins: ['react'],
- rules: {
- 'react/react-in-jsx-scope': 'off',
- },
-};
diff --git a/.npmignore b/.npmignore
deleted file mode 100644
index b1261e5..0000000
--- a/.npmignore
+++ /dev/null
@@ -1,14 +0,0 @@
-public
-src
-.eslintignore
-.eslintrc.js
-.prettierignore
-.prettierrc
-CODE_OF_CONDUCT.md
-CONTRIBUTING.md
-gitprofile.config.js
-index.html
-library.config.js
-tailwind.config.mjs
-vite.config.js
-stats.html
diff --git a/.prettierignore b/.prettierignore
index a547bf3..8bf8d19 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,4 +1,3 @@
-# Logs
logs
*.log
npm-debug.log*
@@ -12,7 +11,6 @@ dist
dist-ssr
*.local
-# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
diff --git a/README.md b/README.md
index 2a201e3..60af29a 100644
--- a/README.md
+++ b/README.md
@@ -30,9 +30,6 @@
-
-
-
@@ -49,18 +46,18 @@
-
+
-
+
-
-
-
-
-
+
-
+
{props.title}
+ Please provide correct config in gitprofile.config.ts.
+
+ Oh no, you hit the{' '} + + rate limit + + ! Try again later{` ${resetTime}`}. +
+ ), + }; +}; + +export const INVALID_GITHUB_USERNAME_ERROR: CustomError = { + status: 404, + title: 'Invalid GitHub Username!', + subTitle: ( +
+ Please provide correct github username in{' '}
+ gitprofile.config.ts.
+
- Oh no, you hit the{' '} - - rate limit - - ! Try again later{` ${reset}`}. -
- ), - }; -}; - -export const notFoundError = { - status: 404, - title: 'The Github Username is Incorrect.', - subTitle: ( -
- Please provide correct github username in{' '}
- gitprofile.config.js.
-