Skip to content

Commit

Permalink
Merge branch 'main' into renovate-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsingh-007 committed Nov 4, 2024
2 parents 238284f + 3bfd961 commit 52b6023
Show file tree
Hide file tree
Showing 67 changed files with 1,746 additions and 917 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ jobs:
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
vercel env pull .env --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Lint
run: pnpm lint

- name: Building
run: pnpm build
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Cards
<p align="center">
<img src="https://track-cards.vercel.app/favicon.ico">
</p>
<h1 align="center">
Cards
</h1>

Cards is an application that helps you track your credit card bill payments.
Cards is an application that helps you track your credit card bill payments and view historical data.

<h3>
⚠️ NOTE: Currently not open for new signups. Please selfhost this app to use it.
</h3>
91 changes: 91 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import { fixupPluginRules } from '@eslint/compat';
import eslint from '@eslint/js';
import gitignore from 'eslint-config-flat-gitignore';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
import reactJsxRuntime from 'eslint-plugin-react/configs/jsx-runtime.js';
import reactRecommended from 'eslint-plugin-react/configs/recommended.js';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
gitignore(),
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: ['**/*.js'],
...tseslint.configs.disableTypeChecked,
},
{
ignores: ['**/*.js', '**/*.mjs', '**/*.cjs', 'src/components/ui/'],
},
eslintPluginUnicorn.configs['flat/recommended'],
// react eslint config
{
files: ['**/*.{ts,tsx}'],
...reactRecommended,
...reactJsxRuntime,
languageOptions: {
...reactRecommended.languageOptions,
globals: {
...globals.serviceworker,
...globals.browser,
...globals.webextensions,
},
},
},
// react hooks eslint config
{
plugins: {
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
},
rules: {
...eslintPluginReactHooks.configs.recommended.rules,
},
},
// configure & override all rules
{
rules: {
'@typescript-eslint/no-unnecessary-condition': 'warn',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
'@typescript-eslint/no-base-to-string': [
'error',
{
ignoredTypeNames: ['TRPCError'],
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
args: 'after-used',
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
},
],
'unicorn/prevent-abbreviations': 'off',
'unicorn/no-null': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/explicit-length-check': 'off',
'unicorn/no-useless-undefined': 'off',
},
},
// ? NOTE: always keep this at last; prettier eslint config.
eslintPluginPrettierRecommended
);
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "cards",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "pnpm build && next start",
"lint": "next lint",
"lint": "eslint .",
"deploy:preview": "vercel",
"env": "vercel env pull .env"
},
Expand Down Expand Up @@ -47,14 +48,23 @@
"zod": "3.23.8"
},
"devDependencies": {
"@eslint/compat": "1.2.0",
"@types/node": "22.8.7",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"eslint": "8.57.1",
"eslint-config-flat-gitignore": "0.3.0",
"eslint-config-next": "14.2.16",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.1",
"eslint-plugin-react-hooks": "5.0.0",
"eslint-plugin-unicorn": "56.0.0",
"globals": "15.11.0",
"postcss": "8.4.47",
"tailwindcss": "3.4.14",
"typescript": "5.6.3",
"typescript-eslint": "8.8.1",
"vercel": "37.14.0"
}
}
Loading

0 comments on commit 52b6023

Please sign in to comment.