mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-30 07:37:39 +00:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
import reactPlugin from 'eslint-plugin-react';
|
|
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
|
import nextPlugin from '@next/eslint-plugin-next';
|
|
|
|
const eslintConfig = [
|
|
{
|
|
plugins: {
|
|
'react-hooks': reactHooksPlugin,
|
|
react: reactPlugin,
|
|
jsxA11y: jsxA11yPlugin,
|
|
'@next/next': nextPlugin,
|
|
},
|
|
rules: {
|
|
...reactHooksPlugin.configs.recommended.rules,
|
|
...reactPlugin.configs.recommended.rules,
|
|
...jsxA11yPlugin.configs.recommended.rules,
|
|
...nextPlugin.configs.recommended.rules,
|
|
'react/no-unknown-property': 'off',
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react/prop-types': 'off',
|
|
'@next/next/no-html-link-for-pages': 'off',
|
|
'@next/next/no-img-element': 'off',
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: '19.2',
|
|
},
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'react-hooks/set-state-in-effect': 'off',
|
|
'react-hooks/incompatible-library': 'off',
|
|
},
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|