mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-19 16:55:02 +02:00
31 lines
681 B
JavaScript
31 lines
681 B
JavaScript
import { defineConfig } from 'eslint/config';
|
|
import { backendConfig } from '@n8n/eslint-config/backend';
|
|
|
|
export default defineConfig(
|
|
backendConfig,
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/naming-convention': [
|
|
'error',
|
|
// Add exception for Docker Compose labels
|
|
{
|
|
selector: 'objectLiteralProperty',
|
|
format: null, // Allow any format
|
|
filter: {
|
|
regex: '^com\\.docker\\.',
|
|
match: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['services/keycloak.ts'],
|
|
// Test infrastructure that talks to a container it started itself,
|
|
// so the guarded client buys nothing here.
|
|
rules: {
|
|
'n8n-local-rules/no-uncentralized-http': 'off',
|
|
},
|
|
},
|
|
);
|