mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
chore: Enfore consistent file-name casing on all backend packages (#15755)
This commit is contained in:
committed by
GitHub
parent
66d339c0d8
commit
3a2a70f193
@@ -1,10 +1,10 @@
|
||||
const sharedOptions = require('@n8n/eslint-config/shared');
|
||||
|
||||
/**
|
||||
* @type {import('@types/eslint').ESLint.ConfigData}
|
||||
*/
|
||||
/** @type {import('@types/eslint').ESLint.ConfigData} */
|
||||
module.exports = {
|
||||
extends: ['@n8n/eslint-config/base'],
|
||||
|
||||
...sharedOptions(__dirname),
|
||||
rules: {
|
||||
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -7,10 +7,10 @@ export * from './roles/all-roles';
|
||||
|
||||
export { projectRoleSchema } from './schemas.ee';
|
||||
|
||||
export { hasScope } from './utilities/hasScope.ee';
|
||||
export { hasGlobalScope } from './utilities/hasGlobalScope.ee';
|
||||
export { combineScopes } from './utilities/combineScopes.ee';
|
||||
export { rolesWithScope } from './utilities/rolesWithScope.ee';
|
||||
export { getGlobalScopes } from './utilities/getGlobalScopes.ee';
|
||||
export { getRoleScopes } from './utilities/getRoleScopes.ee';
|
||||
export { hasScope } from './utilities/has-scope.ee';
|
||||
export { hasGlobalScope } from './utilities/has-global-scope.ee';
|
||||
export { combineScopes } from './utilities/combine-scopes.ee';
|
||||
export { rolesWithScope } from './utilities/roles-with-scope.ee';
|
||||
export { getGlobalScopes } from './utilities/get-global-scopes.ee';
|
||||
export { getRoleScopes } from './utilities/get-role-scopes.ee';
|
||||
export * from './public-api-permissions.ee';
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
WORKFLOW_SHARING_SCOPE_MAP,
|
||||
} from './role-maps.ee';
|
||||
import type { AllRolesMap, AllRoleTypes, Scope } from '../types.ee';
|
||||
import { getRoleScopes } from '../utilities/getRoleScopes.ee';
|
||||
import { getRoleScopes } from '../utilities/get-role-scopes.ee';
|
||||
|
||||
const ROLE_NAMES: Record<AllRoleTypes, string> = {
|
||||
'global:owner': 'Owner',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Scope, ScopeLevels, MaskLevels } from '../../types.ee';
|
||||
import { combineScopes } from '../combineScopes.ee';
|
||||
import { combineScopes } from '../combine-scopes.ee';
|
||||
|
||||
describe('combineScopes', () => {
|
||||
describe('basic scope combining', () => {
|
||||
@@ -1,6 +1,6 @@
|
||||
import { GLOBAL_SCOPE_MAP } from '../../roles/role-maps.ee';
|
||||
import type { GlobalRole } from '../../types.ee';
|
||||
import { getGlobalScopes } from '../getGlobalScopes.ee';
|
||||
import { getGlobalScopes } from '../get-global-scopes.ee';
|
||||
|
||||
describe('getGlobalScopes', () => {
|
||||
test.each(['global:owner', 'global:admin', 'global:member'] as const)(
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { AllRoleTypes, Resource } from '../../types.ee';
|
||||
import { getRoleScopes, COMBINED_ROLE_MAP } from '../getRoleScopes.ee';
|
||||
import { getRoleScopes, COMBINED_ROLE_MAP } from '../get-role-scopes.ee';
|
||||
|
||||
describe('getRoleScopes', () => {
|
||||
describe('role scope retrieval', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GlobalRole, Scope } from '../../types.ee';
|
||||
import { hasGlobalScope } from '../hasGlobalScope.ee';
|
||||
import { hasGlobalScope } from '../has-global-scope.ee';
|
||||
|
||||
describe('hasGlobalScope', () => {
|
||||
describe('single scope checks', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Scope, ScopeLevels } from '../../types.ee';
|
||||
import { hasScope } from '../hasScope.ee';
|
||||
import { hasScope } from '../has-scope.ee';
|
||||
|
||||
describe('hasScope', () => {
|
||||
const userScopes: ScopeLevels = {
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GlobalRole, Scope } from '../../types.ee';
|
||||
import { rolesWithScope } from '../rolesWithScope.ee';
|
||||
import { rolesWithScope } from '../roles-with-scope.ee';
|
||||
|
||||
describe('rolesWithScope', () => {
|
||||
describe('global roles', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getGlobalScopes } from './getGlobalScopes.ee';
|
||||
import { hasScope } from './hasScope.ee';
|
||||
import { getGlobalScopes } from './get-global-scopes.ee';
|
||||
import { hasScope } from './has-scope.ee';
|
||||
import type { AuthPrincipal, Scope, ScopeOptions } from '../types.ee';
|
||||
|
||||
/**
|
||||
@@ -1,4 +1,4 @@
|
||||
import { combineScopes } from './combineScopes.ee';
|
||||
import { combineScopes } from './combine-scopes.ee';
|
||||
import type { Scope, ScopeLevels, ScopeOptions, MaskLevels } from '../types.ee';
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user