From 7120733dc422790bd931cb66e8451c0d7a913a9c Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Tue, 3 Mar 2026 14:29:34 +0000 Subject: [PATCH 1/2] fix: react components should now be function-declarations and this resolves the conflict with no-restricted-syntax --- src/configs/eslint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configs/eslint.ts b/src/configs/eslint.ts index ee8d38c..ad524d2 100644 --- a/src/configs/eslint.ts +++ b/src/configs/eslint.ts @@ -96,7 +96,7 @@ const config = [ 'react/jsx-no-leaked-render': ['error', { validStrategies: ['ternary'] }], 'react/function-component-definition': [ 'warn', - { namedComponents: 'arrow-function' }, + { namedComponents: 'function-declaration' }, ], 'react/jsx-key': [ 'error', From 5ee6be58e556dd6068e32c3e49671d87581106b0 Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Tue, 3 Mar 2026 14:29:40 +0000 Subject: [PATCH 2/2] 0.4.10 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0d4c73f..f845bdc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@matrixai/lint", - "version": "0.4.9", + "version": "0.4.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@matrixai/lint", - "version": "0.4.9", + "version": "0.4.10", "license": "Apache-2.0", "dependencies": { "@eslint/compat": "^1.2.5", diff --git a/package.json b/package.json index 05e2609..0d7fc06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@matrixai/lint", - "version": "0.4.9", + "version": "0.4.10", "author": "Roger Qiu", "description": "Org wide custom eslint rules", "license": "Apache-2.0",