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

[feature] Support ESLint v9 #164

Open
Lonli-Lokli opened this issue Oct 16, 2024 · 2 comments
Open

[feature] Support ESLint v9 #164

Lonli-Lokli opened this issue Oct 16, 2024 · 2 comments

Comments

@Lonli-Lokli
Copy link
Contributor

No description provided.

@rtatarinov
Copy link

Do u have an approximately deadline to solve it?

@StringKe
Copy link

Interim Program Support ESLint v9

import { fixupPluginRules } from "@eslint/compat"
import js from '@eslint/js'
import effector from 'eslint-plugin-effector'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import globals from 'globals'
import tseslint from 'typescript-eslint'

export default tseslint.config(
  { ignores: ['dist'] },
  {
    extends: [js.configs.recommended, ...tseslint.configs.recommended],
    files: ['**/*.{ts,tsx}'],
    languageOptions: {
      ecmaVersion: 2020,
      globals: globals.browser,
    },
    plugins: {
      'react-hooks': reactHooks,
      'react-refresh': reactRefresh,
      effector: fixupPluginRules(effector),
    },
    rules: {
      ...reactHooks.configs.recommended.rules,
      ...effector.configs.recommended.rules,
      ...effector.configs.react.rules,
      ...effector.configs.future.rules,
      ...effector.configs.patronum.rules,
      'react-refresh/only-export-components': [
        'warn',
        { allowConstantExport: true },
      ],
    },
  },
)

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

No branches or pull requests

3 participants