requirePaddingNewLinesAfterUseStrict

Requires a blank line after 'use strict'; statements

Values:

  • true for default behavior (require blank line after 'use strict' statements)
  • Object:
    • 'allExcept' array of exceptions:
      • 'require' allows 'require' statements to occur immediately after 'use strict'

Example

"requirePaddingNewLinesAfterUseStrict": true
Valid
'use strict';

// code
Invalid
'use strict';
// code
Rule source
Test source