31 lines
725 B
JavaScript
31 lines
725 B
JavaScript
|
module.exports = {
|
||
|
root: true,
|
||
|
env: { browser: true, es2020: true },
|
||
|
extends: [
|
||
|
'airbnb-base',
|
||
|
'plugin:react/recommended',
|
||
|
'plugin:react/jsx-runtime',
|
||
|
'plugin:react-hooks/recommended',
|
||
|
],
|
||
|
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
||
|
parserOptions: { ecmaVersion: 12, sourceType: 'module' },
|
||
|
settings: { react: { version: '18.2' } },
|
||
|
plugins: ['react-refresh'],
|
||
|
rules: {
|
||
|
"import/extensions": [
|
||
|
"error",
|
||
|
{
|
||
|
"js": "ignorePackages"
|
||
|
}
|
||
|
],
|
||
|
'react-refresh/only-export-components': [
|
||
|
'warn',
|
||
|
{ allowConstantExport: true },
|
||
|
],
|
||
|
'indent': 'off',
|
||
|
'no-console': 'off',
|
||
|
'arrow-body-style': 'off',
|
||
|
'implicit-arrow-linebreak': 'off',
|
||
|
},
|
||
|
}
|