Taobin-Recipe-Manager/client-electron/.eslintrc.cjs
2024-02-20 15:01:43 +07:00

26 lines
733 B
JavaScript

module.exports = {
root: true,
env: {
es2021: true,
node: true,
browser: false
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier'
],
ignorePatterns: ['types/env.d.ts', 'node_modules/**', '**/dist/**', 'src/components/ui/**'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
plugins: ['react-refresh', '@typescript-eslint', '@tanstack/eslint-plugin-query'],
rules: {
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'@typescript-eslint/consistent-type-imports': 'error',
'react-hooks/exhaustive-deps': 'off'
}
}