mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-02-02 18:28:46 +08:00
14 lines
517 B
JavaScript
14 lines
517 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es2020: true },
|
|
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:react/jsx-runtime', 'plugin:react-hooks/recommended'],
|
|
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
|
settings: { react: { version: '18.2' } },
|
|
plugins: ['react-refresh'],
|
|
rules: {
|
|
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
|
'react/prop-types': 'off',
|
|
},
|
|
}
|