Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

57 changes: 13 additions & 44 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,76 +6,45 @@ module.exports = {
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
'prettier'
],
plugins: [
'react',
'@typescript-eslint',
'react-hooks',
'eslint-plugin-import-helpers',
'testing-library'
],
overrides: [
// Only uses Testing Library lint rules in test files
{
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react']
}
'prettier',
],
plugins: ['react', '@typescript-eslint', 'react-hooks'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
jsx: true,
},
ecmaVersion: 11,
sourceType: 'module'
sourceType: 'module',
},
settings: {
react: {
version: 'detect'
}
version: 'detect',
},
},
env: {
es6: true,
browser: true,
jest: true,
node: true
node: true,
},
rules: {
'react-hooks/rules-of-hooks': 2,
'react-hooks/exhaustive-deps': 1,
'newline-before-return': 2,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'import-helpers/order-imports': [
2,
{
newlinesBetween: 'always',
groups: [
['/^next/', 'module'],
'/^@/styles/',
'/^@/components/',
'/^@/lib/',
['parent', 'sibling', 'index']
],
alphabetize: {
order: 'asc',
ignoreCase: true
}
}
],
'@typescript-eslint/no-unused-vars': [
2,
{
argsIgnorePattern: '^_'
}
argsIgnorePattern: '^_',
},
],
'no-console': [
2,
{
allow: ['warn', 'error']
}
]
}
allow: ['warn', 'error'],
},
],
},
};
3 changes: 2 additions & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
run: |
${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
118 changes: 118 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,121 @@
# Created by https://www.toptal.com/developers/gitignore/api/webstorm
# Edit at https://www.toptal.com/developers/gitignore?templates=webstorm

### WebStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### WebStorm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
# https://plugins.jetbrains.com/plugin/7973-sonarlint
.idea/**/sonarlint/

# SonarQube Plugin
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
.idea/**/sonarIssues.xml

# Markdown Navigator plugin
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator-enh.xml
.idea/**/markdown-navigator/

# Cache file creation bug
# See https://youtrack.jetbrains.com/issue/JBR-2257
.idea/$CACHE_FILE$

# CodeStream plugin
# https://plugins.jetbrains.com/plugin/12206-codestream
.idea/codestream.xml

# Azure Toolkit for IntelliJ plugin
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
.idea/**/azureSettings.xml

# End of https://www.toptal.com/developers/gitignore/api/webstorm

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

/.cache
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 furudbat
Copyright (c) 2025 furudbat

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Build your own digimon-partner digivolution line.

- Select your starter Digimon (Child- or Adult-Level)
- Select the next/prev. Level from the line
- Chose from a huge library of Digimon (over 1300 Digimons), thanks to [wikimon](https://wikimon.net)
- Chose from a huge library of Digimon (over 1400 Digimon), thanks to [wikimon](https://wikimon.net)


### Limitations
Expand Down Expand Up @@ -44,7 +44,7 @@ pnpm start

## License

Licensed under the MIT License, Copyright © 2024
Licensed under the MIT License, Copyright © 2025

See [LICENSE](LICENSE) for more information.

Expand All @@ -55,6 +55,6 @@ Digimon and other media relating to the franchise are registered trademarks by [

- https://wikimon.net/
- https://digimon-api.com/
- https://github.com/tvanantwerp/scraper-example
- https://www.youtube.com/watch?v=nwgzHrkBZis
- [Digimon-Partner Baukasten](https://www.youtube.com/watch?v=nwgzHrkBZis)
- https://www.grindosaur.com/
- https://digimon.fandom.com/wiki/Digimon_Wiki
73 changes: 73 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// eslint.config.js
import js from '@eslint/js';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import reactPlugin from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import prettierPlugin from 'eslint-plugin-prettier';

export default [
js.configs.recommended,

{
files: ['**/*.{js,jsx,ts,tsx,mjs}'],

languageOptions: {
parser: tsParser,
ecmaVersion: 11,
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.node,
...globals.jest,
},
},

plugins: {
react: reactPlugin,
'@typescript-eslint': tsPlugin,
'react-hooks': reactHooks,
prettier: prettierPlugin,
},

settings: {
react: {
version: 'detect',
},
},

rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'newline-before-return': 'error',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',

'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],

'no-console': ['error', { allow: ['warn', 'error'] }],

'prettier/prettier': 'error',
},
},

{
ignores: [
'**/node_modules/*',
'**/out/*',
'**/.next/*',
'**/coverage',
'src/styles/globals.css',
'dist',
'build',
'out',
],
},
];
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
1 change: 0 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import './src/lib/env/env.mjs';
const nextConfig = {
basePath: '/digimon-partner-kit',
assetPrefix: process.env.NODE_ENV === 'production' ? '/digimon-partner-kit/' : '',
output: 'export',
reactStrictMode: true,
images: {
unoptimized: true,
Expand Down
Loading
Loading