From 768b537946da0abd89949648b803d625542c8a7d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 21 Mar 2026 01:41:17 +0100 Subject: qol ceda --- eslint.config.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 eslint.config.js (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..9415508 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,24 @@ +const js = require('@eslint/js'); +const globals = require('globals'); + +module.exports = [ + { + ignores: ['node_modules/**'], + }, + js.configs.recommended, + { + files: ['**/*.js'], + languageOptions: { + ecmaVersion: 'latest', + sourceType: 'commonjs', + globals: { + ...globals.node, + }, + }, + rules: { + 'no-console': 'off', + 'no-empty': ['error', { allowEmptyCatch: true }], + 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }], + }, + }, +]; \ No newline at end of file -- cgit v1.2.3