23 lines
598 B
JavaScript
23 lines
598 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es2020: true },
|
|
extends: [
|
|
'eslint:recommended',
|
|
'airbnb',
|
|
'plugin:react/recommended',
|
|
'plugin:react/jsx-runtime',
|
|
'plugin:react-hooks/recommended',
|
|
],
|
|
ignorePatterns: ['dist', '.eslintrc.cjs', 'vite.config.js'],
|
|
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
|
settings: { react: { version: '18.2' } },
|
|
plugins: ['react-refresh'],
|
|
rules: {
|
|
'react/jsx-no-target-blank': 'off',
|
|
'react-refresh/only-export-components': [
|
|
'warn',
|
|
{ allowConstantExport: true },
|
|
],
|
|
},
|
|
}
|