Bump version and fix glob

This commit is contained in:
Alex
2024-12-01 17:51:52 -05:00
parent 78ed00fd21
commit 952914699b
9 changed files with 287 additions and 289 deletions

View File

@ -10,6 +10,7 @@ const reactRules: Partial<ReactRulesObject> = {
'@eslint-react/no-missing-component-display-name': off,
'@eslint-react/no-children-prop': error,
'@eslint-react/no-leaked-conditional-rendering': error,
'@eslint-react/prefer-read-only-props': off,
};
export async function react() {
@ -23,12 +24,12 @@ export async function react() {
a11y.flatConfigs.recommended,
{
name: 'eslint-rules/react',
files: ['*.tsx'],
files: ['**/*.tsx'],
rules: reactRules,
},
{
name: 'eslint-rules/react/test-files',
files: ['*.test.tsx'],
files: ['**/*.test.tsx'],
rules: {
'@eslint-react/no-clone-element': off,
'@eslint-react/no-create-ref': off,