Add environment example, update .gitignore, and switch license to AGPL v3. Introduce error handling classes, ESLint config, and main modules for database, logging, certificate management, and utility functions. Add authentication routes, schemas, and service layer for a modular REST API. Update README and set up repository structure for further development.
28 lines
711 B
JavaScript
28 lines
711 B
JavaScript
const js = require("@eslint/js")
|
|
const globals = require("globals")
|
|
|
|
module.exports = [
|
|
{
|
|
ignores: ["node_modules", "logs", "coverage", ".env", "*.log"],
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "commonjs",
|
|
globals: {
|
|
...globals.node,
|
|
...globals.jest,
|
|
},
|
|
},
|
|
rules: {
|
|
"no-unused-vars": "warn",
|
|
"no-undef": "error",
|
|
"eqeqeq": "error",
|
|
"indent": ["error", 4],
|
|
"quotes": ["error", "double"],
|
|
"semi": ["error", "never"],
|
|
"no-console": "warn",
|
|
},
|
|
},
|
|
] |