A social knowledge tool for researchers built on ATProto

fix: add CommonJS globals configuration for JavaScript files in ESLint

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <aider@aider.chat>

+26
+26
eslint.config.mjs
··· 9 9 ignores: ['src/webapp/**', 'dist/**', 'node_modules/**', 'src/modules/atproto/infrastructure/lexicon/**'], 10 10 }, 11 11 { 12 + files: ['**/*.js'], 13 + languageOptions: { 14 + ecmaVersion: 2022, 15 + sourceType: 'script', 16 + globals: { 17 + console: 'readonly', 18 + process: 'readonly', 19 + Buffer: 'readonly', 20 + __dirname: 'readonly', 21 + __filename: 'readonly', 22 + module: 'readonly', 23 + require: 'readonly', 24 + exports: 'readonly', 25 + global: 'readonly', 26 + }, 27 + }, 28 + plugins: { 29 + prettier: prettierPlugin, 30 + }, 31 + rules: { 32 + 'prettier/prettier': 'error', 33 + 'no-unused-vars': 'warn', 34 + 'no-console': 'warn', 35 + }, 36 + }, 37 + { 12 38 files: ['**/*.ts'], 13 39 plugins: { 14 40 '@typescript-eslint': tseslint,