mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 17:10:08 +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/**
|
||||
cypress/**
|
||||
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/**
|
||||
.eslintrc.js
|
||||
.eslintrc.front.js
|
||||
|
@ -72,6 +72,7 @@ const useRBAC = (pluginPermissions, permissions) => {
|
||||
return () => {
|
||||
abortController.abort();
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [permissionNames, currentUserPermissions]);
|
||||
|
||||
// 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';
|
||||
|
||||
const init = permissionsNames => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user