Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update packages #370

Open
Vandivier opened this issue Jan 4, 2025 · 4 comments
Open

update packages #370

Vandivier opened this issue Jan 4, 2025 · 4 comments
Labels

Comments

@Vandivier
Copy link
Owner

image

some unsupported packages

also prisma v6

@Vandivier
Copy link
Owner Author

glob depends on inflight
rimraf depends on glob
eslint > file-entry-cache > flat-cache > rimraf

@Vandivier
Copy link
Owner Author

Vandivier commented Jan 20, 2025

eslint upgrade blocked by:
typescript-eslint/typescript-eslint#10632

the above issue is invariant to eslint 8v9;

also did not upgrade trpc. other stuff upgraded (next+prisma)

@Vandivier
Copy link
Owner Author

react+next+trpc upgrade:

npm install @trpc/server@next @trpc/client@next @trpc/react-query@next @trpc/next@next @tanstack/react-query@latest @tanstack/react-query-devtools@latest next-auth@beta

also blocked by react-final-form@latest, which is 2 years old and not compatible w react 19

related #232

bc react compiler is included in the nextjs upgrade

make sure to use the codemod
https://nextjs.org/blog/next-15

@Vandivier
Copy link
Owner Author

here's an eslint.config.cjs i had to revert bc even having it unused broke scans:

const typescriptParser = require('@typescript-eslint/parser')
const typescriptPlugin = require('@typescript-eslint/eslint-plugin')
const tailwindPlugin = require('eslint-plugin-tailwindcss')
const nextPlugin = require('@next/eslint-plugin-next')

const config = [
  {
    files: ['**/*.{js,mjs,cjs,ts,mts,jsx,tsx}'],
    languageOptions: {
      ecmaVersion: 2022,
      sourceType: 'module',
      parser: typescriptParser,
      parserOptions: {
        project: true,
        tsconfigRootDir: __dirname,
      },
    },
    plugins: {
      '@typescript-eslint': typescriptPlugin,
      tailwindcss: tailwindPlugin,
      '@next/next': nextPlugin,
    },
    settings: {
      next: {
        rootDir: '.',
      },
    },
    rules: {
      ...typescriptPlugin.configs['recommended-type-checked'].rules,
      ...typescriptPlugin.configs['stylistic-type-checked'].rules,
      ...tailwindPlugin.configs.recommended.rules,
      ...nextPlugin.configs.recommended.rules,
      ...nextPlugin.configs['core-web-vitals'].rules,
      '@typescript-eslint/no-explicit-any': 'off',
      '@typescript-eslint/no-unsafe-assignment': 'warn',
      'tailwindcss/no-custom-classname': ['off'],
      '@typescript-eslint/array-type': 'off',
      '@typescript-eslint/consistent-type-definitions': 'off',
      '@typescript-eslint/consistent-type-imports': [
        'error',
        {
          prefer: 'type-imports',
          fixStyle: 'inline-type-imports',
        },
      ],
      '@typescript-eslint/no-unused-vars': [
        'warn',
        {
          argsIgnorePattern: '^_',
        },
      ],
      '@typescript-eslint/require-await': 'off',
      '@typescript-eslint/no-misused-promises': [
        'error',
        {
          checksVoidReturn: {
            attributes: false,
          },
        },
      ],
    },
  },
]

module.exports = config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant