chore: Enfore consistent file-name casing on all backend packages (#15755)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-05-27 16:45:50 +02:00
committed by GitHub
parent 66d339c0d8
commit 3a2a70f193
152 changed files with 309 additions and 279 deletions

View File

@@ -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' }],
},
};

View File

@@ -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';

View File

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

View File

@@ -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', () => {

View File

@@ -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)(

View File

@@ -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', () => {

View File

@@ -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', () => {

View File

@@ -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 = {

View File

@@ -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', () => {

View File

@@ -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';
/**

View File

@@ -1,4 +1,4 @@
import { combineScopes } from './combineScopes.ee';
import { combineScopes } from './combine-scopes.ee';
import type { Scope, ScopeLevels, ScopeOptions, MaskLevels } from '../types.ee';
/**