Files
labFusion/services/api-docs/.eslintrc.js
GSRN 60da5ea115
Some checks failed
API Docs (Node.js Express) / test (16) (push) Failing after 5m16s
API Docs (Node.js Express) / test (18) (push) Failing after 5m20s
API Docs (Node.js Express) / test (20) (push) Failing after 56s
API Docs (Node.js Express) / build (push) Has been skipped
API Docs (Node.js Express) / security (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 4m51s
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 4m59s
LabFusion CI/CD Pipeline / api-docs (push) Failing after 5m12s
LabFusion CI/CD Pipeline / frontend (push) Failing after 5m57s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
LabFusion CI/CD Pipeline / security-scan (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 33s
Docker Build and Push / security-scan (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 2m0s
Docker Build and Push / deploy-staging (push) Has been skipped
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / deploy-production (push) Has been skipped
Refactor ESLint configuration in API Docs service to improve code style enforcement by removing quotes and semi colons from array syntax
2025-09-12 13:15:13 +02:00

32 lines
709 B
JavaScript

module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
node: true,
jest: true
},
extends: [
'standard'
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
'no-console': 'off', // Allow console statements for API services
'no-unused-vars': 'warn',
'prefer-const': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'prefer-template': 'error',
'no-trailing-spaces': 'error',
semi: ['error', 'never'], // Enforce no semicolons
quotes: ['error', 'single'], // Enforce single quotes
'space-before-function-paren': ['error', 'always']
},
globals: {
process: 'readonly'
}
}