You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
629 B
JavaScript
16 lines
629 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 }],
|
|
'no-unused-vars': ['warn', { args: 'after-used', vars: 'all' }],
|
|
'react/prop-types': 'off',
|
|
'react-hooks/rules-of-hooks': 'warn',
|
|
},
|
|
};
|