Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions next/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.yarn*

# local env files
.env*.local


# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

!package-lock.json
2 changes: 2 additions & 0 deletions next/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.next
node_modules
9 changes: 9 additions & 0 deletions next/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bracketSpacing": true,
"printWidth": 140,
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf"
}
89 changes: 89 additions & 0 deletions next/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
import { fixupConfigRules } from '@eslint/compat';
import prettier from 'eslint-plugin-prettier';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import js from '@eslint/js';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
...fixupConfigRules(compat.extends('prettier')),

{
plugins: {
prettier,
react,
'react-hooks': reactHooks,
'jsx-a11y': jsxA11y
},

languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true
}
}
},

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

rules: {
'react/jsx-filename-extension': 'off',
'no-param-reassign': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/no-array-index-key': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 'off',
'import/order': 'off',
'no-console': 'off',
'no-shadow': 'off',
'import/no-cycle': 'off',
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/no-autofocus': 'off',
'react/jsx-uses-react': 'off',
'react/jsx-uses-vars': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-unused-vars': 'off',

'no-restricted-imports': [
'error',
{
patterns: ['@mui/*/*/*', '!@mui/material/test-utils/*']
}
],

'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none'
}
],

'prettier/prettier': 'warn'
}
},
{
ignores: ['node_modules/**'],
files: ['src/**/*.{js,jsx}']
}
];
34 changes: 34 additions & 0 deletions next/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"incremental": true,
"baseUrl": "src",
"downlevelIteration": true,
"allowSyntheticDefaultImports": true,
"noUnusedLocals": true,
"noImplicitAny": true,
"noFallthroughCasesInSwitch": true,
"noImplicitThis": true,
"strictNullChecks": true,
"typeRoots": ["../node_modules/@types", "../@types", "./types"],
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.js", "**/*.js", "**/*.jsx", ".next/types/**/*.js", ".next/dev/types/**/*.js"],
"exclude": ["node_modules"]
}
26 changes: 26 additions & 0 deletions next/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/** @type {import('next').NextConfig} */
const path = require('path');

const nextConfig = {
modularizeImports: {
'@mui/material': {
transform: '@mui/material/{{member}}'
},
'@mui/lab': {
transform: '@mui/lab/{{member}}'
}
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'flagcdn.com',
pathname: '**'
}
]
},

outputFileTracingRoot: path.join(__dirname, './')
};

module.exports = nextConfig;
Loading