sonar and other files
Some checks failed
Backend CI Pipeline / build-and-test (push) Has been cancelled

This commit is contained in:
2026-02-06 17:06:39 +00:00
parent 6775a97909
commit a06c9c9057
3 changed files with 36 additions and 0 deletions

7
.env.example Normal file
View File

@@ -0,0 +1,7 @@
# Backend Service Environment Variables
PORT=3000
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=rootpass
DB_NAME=inventory

15
.eslintrc.json Normal file
View File

@@ -0,0 +1,15 @@
{
"env": {
"node": true,
"es2021": true,
"jest": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-console": "off"
}
}

14
sonar-project.properties Normal file
View File

@@ -0,0 +1,14 @@
sonar.projectKey=inventory-backend
sonar.projectName=Inventory Backend Service
sonar.projectVersion=1.0
# Source and test paths
sonar.sources=src
sonar.tests=tests
sonar.javascript.lcov.reportPaths=coverage/lcov.info
# Exclusions
sonar.exclusions=node_modules/**,coverage/**,tests/**
# Quality gate
sonar.qualitygate.wait=true