2024-02-17 03:17:38 -08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: { browser: true, es2020: true },
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:react-hooks/recommended',
|
|
|
|
],
|
|
|
|
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['react-refresh'],
|
|
|
|
rules: {
|
|
|
|
'react-refresh/only-export-components': [
|
|
|
|
'warn',
|
|
|
|
{ allowConstantExport: true },
|
|
|
|
],
|
2024-07-21 14:55:08 -07:00
|
|
|
'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
|
|
|
|
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
|
2024-02-17 03:17:38 -08:00
|
|
|
},
|
|
|
|
}
|