19 lines
603 B
JavaScript
19 lines
603 B
JavaScript
|
|
/* eslint-env node */
|
||
|
|
module.exports = {
|
||
|
|
root: true,
|
||
|
|
env: { browser: true, es2022: true },
|
||
|
|
extends: [
|
||
|
|
'eslint:recommended',
|
||
|
|
'plugin:@typescript-eslint/recommended',
|
||
|
|
'plugin:react-hooks/recommended',
|
||
|
|
],
|
||
|
|
ignorePatterns: ['dist', '.eslintrc.cjs', 'node_modules'],
|
||
|
|
parser: '@typescript-eslint/parser',
|
||
|
|
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
||
|
|
plugins: ['react-refresh'],
|
||
|
|
rules: {
|
||
|
|
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
||
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||
|
|
},
|
||
|
|
};
|