Skip to content

Commit

Permalink
update deps, fix some issues, disable eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
blefnk committed Jan 11, 2024
1 parent 0b6b3fc commit b1dcc93
Show file tree
Hide file tree
Showing 36 changed files with 2,075 additions and 3,618 deletions.
4 changes: 3 additions & 1 deletion .github/translations/readme/polish.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<!-- https://github.com/blefnk/relivator#readme -->

🌐 [Запустити демо-версію Relivator](https://relivator.bleverse.com)
🌐 [Relivator Demo](https://relivator.bleverse.com)

<!-- **TŁUMACZENIE NIE JEST AKTUALNE Z v1.2.3 [WERSJI ANGLOJĘZYCZNEJ README.MD](https://github.com/blefnk/relivator#readme)!** -->

**Uwaga: Poniższy tekst jest w większości maszynowym tłumaczeniem pliku [README.md](https://github.com/blefnk/relivator#readme). Aktywnie pracujemy nad jego ulepszeniem. Prosimy o zapoznanie się z oryginałem, jeśli niektóre fragmenty tekstu są niejasne.**

Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Relivator 1.2.2: The Most Feature-Rich Next.js 14 Starter
# Relivator 1.2.3: The Most Feature-Rich Next.js 14 Starter

<!-- https://github.com/blefnk/relivator#readme -->

Expand Down Expand Up @@ -233,6 +233,14 @@ In the release of Relivator v1.1.0, we made our best efforts to provide simultan

By default we ensure that every database system has everything the same by using `NEXT_PUBLIC_DB_PROVIDER` env variable and by exporting things in the `src/data/db/index.ts` file. When you decide which database provider is best suit your needs, you can safely comment out or remove unneeded providers in the `switch-case` of this file, then related schema files can be removed as well; note that some small additional work may be also required.

### Product Categories and Subcategories

To edit product categories, please refer to the [MySQL](https://github.com/blefnk/relivator/blob/main/src/data/db/schema/mysql.ts#L167C5-L174) or [PostgreSQL](https://github.com/blefnk/relivator/blob/main/src/data/db/schema/pgsql.ts#L24-L29) schema.

After editing these files, don't forget to run `pnpm mysql:push` or `pnpm pg:push` to apply the changes.

Then, simply update the category names and subcategories in the [products file](https://github.com/blefnk/relivator/blob/main/src/server/config/products.ts#L23) accordingly.

### Additional Notes About Stripe

The Stripe webhook API route does not need to be invoked explicitly within your application, such as after a user selects a subscription plan or makes a purchase. Webhooks operate independently of user actions on the frontend and serve as a means for Stripe to relay events directly to your server.
Expand Down Expand Up @@ -476,7 +484,7 @@ Check out [our other free Next.js 14 starter](https://github.com/blefnk/relivers

[bleverse-discord]: https://discord.gg/Pb8uKbwpsJ

---
<!-- ---
<details>
<summary>Relivator v1.2.0: Table of Dependencies</summary>
Expand Down Expand Up @@ -649,3 +657,4 @@ Check out [our other free Next.js 14 starter](https://github.com/blefnk/relivers
| 269. xo | | | | | |
</details>
-->
20 changes: 11 additions & 9 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Project Changelog

Please check the roadmap checklist on README.md instead reading this OUTDATED file.

## v0.0.0-v1.2.0 Features

- [x] Utilized [Next.js 14](https://nextjs.org), [React 18](https://react.dev), [TailwindCSS](https://tailwindcss.com), and [TypeScript](https://typescriptlang.org) serve as the project's core technologies.
Expand Down Expand Up @@ -30,15 +32,15 @@

## v0.0.0-v1.0.0 Commits

- 1. [🌱 feat(app): initial deploy](https://github.com/blefnk/relivator/commit/4099c7c7e444b3e5782487355a508fdfdb3a14cd)
- 2. [💎 feat(app): initial update](https://github.com/blefnk/relivator/commit/67a68f4cb93f76937b307fc056ba99a9675ba700)
- 3. [🌅 upd(app): global update](https://github.com/blefnk/relivator/commit/6247d5cda5a5dc5dea19940b64b39a5ab9aa6ce7)
- 4. [🦫 feat(db): add drizzle config](https://github.com/blefnk/relivator/commit/4dbcf8d6682530955913ec088051c63798807d1e)
- 5. [✅ feat(app): configure the app](https://github.com/blefnk/relivator/commit/fc941ef5061662a0dc8052641ab010cc45e66c60)
- 6. [☘️ feat(app): improve env styling](https://github.com/blefnk/relivator/commit/e75ed0ec2413110b0fcd75f778d63eba9d88faea)
- 7. [☘️ feat(store): init app store types](https://github.com/blefnk/relivator/commit/73b00c0ce0f3656bddbe9b71c19631c352ab89b2)
- 8. [☘️ feat(store): add more store things](https://github.com/blefnk/relivator/commit/146f9c451544112a18a734b12622f913dd3c8298)
- 9. [🧹 feat(app): temporary remove image](https://github.com/blefnk/relivator/commit/f3ce181f3d9844ba718a3aef7fadcd03776fdffe)
- 1. [🌱 feat(app): initial deploy](https://github.com/blefnk/relivator/commit/4099c7c7e444b3e5782487355a508fdfdb3a14cd)
- 2. [💎 feat(app): initial update](https://github.com/blefnk/relivator/commit/67a68f4cb93f76937b307fc056ba99a9675ba700)
- 3. [🌅 upd(app): global update](https://github.com/blefnk/relivator/commit/6247d5cda5a5dc5dea19940b64b39a5ab9aa6ce7)
- 4. [🦫 feat(db): add drizzle config](https://github.com/blefnk/relivator/commit/4dbcf8d6682530955913ec088051c63798807d1e)
- 5. [✅ feat(app): configure the app](https://github.com/blefnk/relivator/commit/fc941ef5061662a0dc8052641ab010cc45e66c60)
- 6. [☘️ feat(app): improve env styling](https://github.com/blefnk/relivator/commit/e75ed0ec2413110b0fcd75f778d63eba9d88faea)
- 7. [☘️ feat(store): init app store types](https://github.com/blefnk/relivator/commit/73b00c0ce0f3656bddbe9b71c19631c352ab89b2)
- 8. [☘️ feat(store): add more store things](https://github.com/blefnk/relivator/commit/146f9c451544112a18a734b12622f913dd3c8298)
- 9. [🧹 feat(app): temporary remove image](https://github.com/blefnk/relivator/commit/f3ce181f3d9844ba718a3aef7fadcd03776fdffe)
- 10. [🌿 feat(app): improve header and footer](https://github.com/blefnk/relivator/commit/d178f653844cd259db5095022bfe4a1de9ebd070)
- 11. [🌳 feat(app): add many new store things](https://github.com/blefnk/relivator/commit/b25ea4665975d055310a5f172d658464633d451e)
- 12. [🌄 feat(app): add payments & store actions](https://github.com/blefnk/relivator/commit/639093c454bd758f0536215ce9830daabf466852)
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
"postgresjs",
"postgresql",
"preact",
"preinstall",
"prettyful",
"proxying",
"PSCALE",
Expand Down
38 changes: 23 additions & 15 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default antfu(
"max-len": "off",
"@stylistic/max-len": [
// https://eslint.style/rules/default/max-len
"error",
"off",
{
"code": 1000,
"ignoreComments": true,
Expand All @@ -122,12 +122,12 @@ export default antfu(
],
"@stylistic/max-statements-per-line": [
// https://eslint.style/rules/default/max-statements-per-line
"error",
"off",
{ "max": 1 },
],
"@stylistic/keyword-spacing": [
// https://eslint.style/rules/default/keyword-spacing
"error",
"off",
{ "before": true, "after": true },
],
"@stylistic/semi": "off",
Expand All @@ -147,11 +147,11 @@ export default antfu(
"@stylistic/multiline-ternary": "off",
"@stylistic/spaced-comment": "off",
"@stylistic/eol-last": "off",
"max-lines-per-function": ["error", 437],
"max-nested-callbacks": ["error", 4],
"max-statements": ["error", 76],
"max-params": ["error", 5],
"complexity": ["error", 63],
"max-lines-per-function": ["off", 437],
"max-nested-callbacks": ["off", 4],
"max-statements": ["off", 76],
"max-params": ["off", 5],
"complexity": ["off", 63],
"computed-property-spacing": [
"off",
"never",
Expand Down Expand Up @@ -217,12 +217,20 @@ export default antfu(
"comma-spacing": ["off", { "before": false, "after": true }],
"comma-style": ["off", "last"],
"consistent-return": "off",
"style/quotes": "off",
"curly": "off",
"style/jsx-indent-props": "off",
"@stylistic/jsx-indent-props": "off",
"default-case-last": "off",
"default-case": "off",
"@stylistic/no-trailing-spaces": "off",
"@stylistic/no-multiple-empty-lines": "off",
"default-param-last": ["off"],
"dot-location": ["off", "property"],
"dot-notation": "off",
"style/semi": "off",
"style/comma-dangle": "off",
"@stylistic/comma-dangle": "off",
"eol-last": ["off", "always"],
"eqeqeq": ["off", "always"],
"eslint-plugin-jsx-a11y/blob": "off",
Expand Down Expand Up @@ -315,7 +323,7 @@ export default antfu(
"no-whitespace-before-property": "off",
"node/prefer-global/process": "off",
"nonblock-statement-body-position": "off",
"object-curly-newline": ["off", { "consistent": true }],
"object-curly-newline": ["off", { consistent: true }],
"object-curly-spacing": ["off", "always"],
"object-shorthand": "off",
"one-var": "off",
Expand Down Expand Up @@ -351,7 +359,7 @@ export default antfu(
"react/jsx-boolean-value": "off",
"react/jsx-curly-brace-presence": "off",
"react/jsx-fragments": "off",
"react/jsx-max-depth": ["error", { max: 7 }],
"react/jsx-max-depth": ["off", { max: 7 }],
"react/jsx-no-bind": "off",
"react/jsx-no-constructed-context-values": "off",
"react/jsx-no-leaked-render": ["off", { validStrategies: ["ternary"] }],
Expand Down Expand Up @@ -381,7 +389,7 @@ export default antfu(
"rules/anchor-is-valid": "off",
"semi-spacing": "off",
"semi-style": ["off", "last"],
"semi": "off",
semi: "off",
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-all-duplicated-branches": "off",
"sonarjs/no-duplicate-string": "off",
Expand Down Expand Up @@ -489,9 +497,9 @@ export default antfu(
},
],
"@limegrass/import-alias/import-alias": "off",
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "error",
"@tanstack/query/stable-query-client": "error",
"@tanstack/query/exhaustive-deps": "off",
"@tanstack/query/no-rest-destructuring": "off",
"@tanstack/query/stable-query-client": "off",
"deprecation/deprecation": "off",
"drizzle/enforce-delete-with-where": "off",
"drizzle/enforce-update-with-where": "off",
Expand Down Expand Up @@ -528,7 +536,7 @@ export default antfu(
"sonarjs/no-nested-template-literals": "off",
"sonarjs/prefer-immediate-return": "off",
// ========= dup
"test/consistent-test-it": "error",
"test/consistent-test-it": "off",
"ts/array-type": ["off", { "default": "array" }],
"ts/ban-ts-comment": "off",
"ts/brace-style": ["off", "1tbs", { "allowSingleLine": true }],
Expand Down
Loading

0 comments on commit b1dcc93

Please sign in to comment.