mcp-stream-workflow-status/@packages/lilith-ui/.eslintrc.cjs
2025-12-27 19:07:52 -08:00

35 lines
1.1 KiB
JavaScript

module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
plugins: ['@typescript-eslint', 'react', 'react-hooks'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
settings: {
react: {
version: 'detect',
},
},
ignorePatterns: ['vite.config.ts', 'vitest.config.ts', 'dist', 'node_modules', 'showcase', '__tests__', '*.stories.tsx', '*.stories.ts', 'stories'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'no-unused-vars': 'off',
'prefer-const': 'error',
},
}