28 lines
949 B
JavaScript
28 lines
949 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es2022: true, node: true },
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
ecmaFeatures: { jsx: true },
|
|
},
|
|
plugins: ['@typescript-eslint', 'react', 'react-hooks'],
|
|
settings: { react: { version: 'detect' } },
|
|
ignorePatterns: ['dist', 'node_modules', '*.cjs', 'vite.config.ts', 'playwright.config.ts', 'vitest.config.ts', 'e2e/**'],
|
|
rules: {
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react/prop-types': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
'no-unused-vars': 'off',
|
|
'no-empty': ['warn', { allowEmptyCatch: true }],
|
|
},
|
|
};
|