sonar and other files
Some checks failed
Backend CI Pipeline / build-and-test (push) Has been cancelled
Some checks failed
Backend CI Pipeline / build-and-test (push) Has been cancelled
This commit is contained in:
7
.env.example
Normal file
7
.env.example
Normal 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
15
.eslintrc.json
Normal 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
14
sonar-project.properties
Normal 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
|
||||
Reference in New Issue
Block a user