From c2e1d301535e8e89633f303d84f091a360bdc485 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 3 Jul 2025 16:29:50 +0200 Subject: [PATCH] Add backend ESLint configuration --- backend/.eslintrc.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 backend/.eslintrc.js diff --git a/backend/.eslintrc.js b/backend/.eslintrc.js new file mode 100644 index 0000000..5b22df9 --- /dev/null +++ b/backend/.eslintrc.js @@ -0,0 +1,23 @@ +module.exports = { + env: { + browser: false, + es2021: true, + node: true, + jest: true + }, + extends: [ + 'eslint:recommended' + ], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module' + }, + rules: { + 'indent': ['error', 2], + 'linebreak-style': ['error', 'unix'], + 'quotes': ['error', 'single'], + 'semi': ['error', 'always'], + 'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }], + 'no-console': ['warn', { allow: ['warn', 'error'] }] + } +};