packages/eslint-plugin-internal/padded-blocks.js
function requirePaddingFor(node) {
      switch (node.type) {
        case 'BlockStatement':
          return options.blocks;

        case 'SwitchStatement':
          return options.switches;

        case 'ClassBody':
          return options.classes;

        /* istanbul ignore next */
        default:
          throw new Error('unreachable');
      }
    }
function requirePaddingFor(node) {
      switch (node.type) {
        case 'BlockStatement':
          return options.blocks;

        case 'SwitchStatement':
          return options.switches;

        case 'ClassBody':
          return options.classes;

        /* istanbul ignore next */
        default:
          throw new Error('unreachable');
      }
    }
function requirePaddingFor ( node ) { switch ( node . type ) { case 'BlockStatement' : return options . blocks ; case 'SwitchStatement' : return options . switches ; case 'ClassBody' : return options . classes ; /* istanbul ignore next */ default : throw new Error ( 'unreachable' ) ; } }
Checks if a node should be padded, according to the rule config.
@param {ASTNode} node The AST node to check.
@returns {boolean} True if the node should be padded, false otherwise.
Checks if a node should be padded according to the rule config .