21 lines
763 B
JavaScript
21 lines
763 B
JavaScript
|
|
module.exports = {
|
||
|
|
root: true,
|
||
|
|
env: { browser: true, es2022: true, node: true },
|
||
|
|
parser: '@typescript-eslint/parser',
|
||
|
|
parserOptions: { ecmaVersion: 'latest', sourceType: 'module', ecmaFeatures: { jsx: true } },
|
||
|
|
settings: { react: { version: '18.3' } },
|
||
|
|
plugins: ['@typescript-eslint', 'react', 'react-hooks'],
|
||
|
|
extends: [
|
||
|
|
'eslint:recommended',
|
||
|
|
'plugin:@typescript-eslint/recommended',
|
||
|
|
'plugin:react/recommended',
|
||
|
|
'plugin:react-hooks/recommended',
|
||
|
|
],
|
||
|
|
rules: {
|
||
|
|
'react/react-in-jsx-scope': 'off',
|
||
|
|
'react/prop-types': 'off',
|
||
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||
|
|
},
|
||
|
|
ignorePatterns: ['dist', 'node_modules', 'coverage', '*.config.js', '*.config.cjs'],
|
||
|
|
};
|