/** * ESLint config for the shared esf/feed block editor workspace. * Mirrors other ESF dashboard workspaces (Jest globals + soft JSDoc). */ module.exports = { extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ], rules: { 'jsdoc/require-param': 'off', 'jsdoc/require-param-type': 'off', 'jsdoc/require-param-description': 'off', 'jsdoc/check-param-names': 'off', 'jsdoc/require-returns': 'off', 'jsdoc/require-returns-description': 'off', 'jsdoc/check-line-alignment': 'off', 'jsdoc/empty-tags': 'off', 'jsdoc/check-tag-names': 'off', 'jsdoc/no-undefined-types': 'off', 'no-nested-ternary': 'warn', 'react-hooks/exhaustive-deps': 'warn', }, overrides: [ { files: [ '**/*.test.js', '**/*.test.jsx', '**/__tests__/**', '**/__mocks__/**', '**/test-utils/**', '**/jest.setup.js', ], env: { jest: true, }, rules: { 'import/no-extraneous-dependencies': 'off', 'no-console': 'off', }, }, ], };