eslint-plugin
eslint-plugin copied to clipboard
[feature] Support ESLint v9
Do u have an approximately deadline to solve it?
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 },
],
},
},
)
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