mirror of
https://github.com/dpup/meshstream.git
synced 2026-03-28 17:42:37 +01:00
32 lines
952 B
JavaScript
32 lines
952 B
JavaScript
import js from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import eslintPluginReact from 'eslint-plugin-react';
|
|
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
|
import eslintPluginReactRefresh from 'eslint-plugin-react-refresh';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{ ignores: ['**/*.js', 'dist/**/*', 'node_modules/**/*'] },
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
plugins: {
|
|
'react': eslintPluginReact,
|
|
'react-hooks': eslintPluginReactHooks,
|
|
'react-refresh': eslintPluginReactRefresh,
|
|
},
|
|
rules: {
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react-hooks/rules-of-hooks': 'error',
|
|
'react-hooks/exhaustive-deps': 'warn',
|
|
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
},
|
|
];
|