UNPKG

node-red-contrib-wger

Version:

Node-RED nodes for integrating with wger workout and fitness tracker API

41 lines (39 loc) 973 B
module.exports = { env: { node: true, es2022: true, mocha: true, browser: true // For Node-RED UI components }, extends: [ 'eslint:recommended' ], parserOptions: { ecmaVersion: 2022, sourceType: 'commonjs' }, rules: { // Code quality - Changed to warn to unblock CI 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^(should|BaseNodeHandler|_)$' // Allow should.js and temporary BaseNodeHandler }], 'no-console': 'warn', 'prefer-const': 'error', 'no-var': 'error', // Style 'indent': ['error', 2], 'quotes': ['error', 'single'], 'semi': ['error', 'always'], 'comma-dangle': ['error', 'never'], // Node-RED specific 'no-undef': 'error', 'no-case-declarations': 'error' }, globals: { // Node-RED globals 'RED': 'readonly', '$': 'readonly', // jQuery for UI components '_': 'readonly' // Lodash utilities } };