-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into renovate-updates
- Loading branch information
Showing
67 changed files
with
1,746 additions
and
917 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -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> |
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,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 | ||
); |
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.