mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 01:49:34 +00:00
Add linter for helper-plugin/hooks
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
07af68ab68
commit
d28d2bd7e8
@ -6,7 +6,10 @@ testApp/**
|
|||||||
examples/**
|
examples/**
|
||||||
cypress/**
|
cypress/**
|
||||||
packages/generators/plugin/files/admin/src/**
|
packages/generators/plugin/files/admin/src/**
|
||||||
packages/core/helper-plugin/**
|
packages/core/helper-plugin/build/**
|
||||||
|
packages/core/helper-plugin/lib/src/components/**
|
||||||
|
packages/core/helper-plugin/lib/src/testUtils/**
|
||||||
|
packages/core/helper-plugin/lib/src/utils/**
|
||||||
packages/plugins/users-permissions/admin/OLD/**
|
packages/plugins/users-permissions/admin/OLD/**
|
||||||
.eslintrc.js
|
.eslintrc.js
|
||||||
.eslintrc.front.js
|
.eslintrc.front.js
|
||||||
|
@ -72,6 +72,7 @@ const useRBAC = (pluginPermissions, permissions) => {
|
|||||||
return () => {
|
return () => {
|
||||||
abortController.abort();
|
abortController.abort();
|
||||||
};
|
};
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [permissionNames, currentUserPermissions]);
|
}, [permissionNames, currentUserPermissions]);
|
||||||
|
|
||||||
// This function is used to synchronise the hook when used in dynamic components
|
// This function is used to synchronise the hook when used in dynamic components
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { upperFirst } from 'lodash';
|
|
||||||
import generateAllowedActions from './utils/generateAllowedActions';
|
import generateAllowedActions from './utils/generateAllowedActions';
|
||||||
|
|
||||||
const init = permissionsNames => {
|
const init = permissionsNames => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user