eslint-plugin icon indicating copy to clipboard operation
eslint-plugin copied to clipboard

[feature] Support ESLint v9

Open Lonli-Lokli opened this issue 1 year ago • 3 comments

Lonli-Lokli avatar Oct 16 '24 12:10 Lonli-Lokli

Do u have an approximately deadline to solve it?

rtatarinov avatar Oct 28 '24 05:10 rtatarinov

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 },
      ],
    },
  },
)

StringKe avatar Dec 19 '24 04:12 StringKe

npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"7 || 8" from [email protected]
npm ERR! node_modules/eslint-plugin-effector
npm ERR!   dev eslint-plugin-effector@"*" from the root project

Grawl avatar Mar 27 '25 03:03 Grawl