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", 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',