PSScriptAnalyzerSettings.psd1

# PSScriptAnalyzerSettings.psd1
# Settings for PSScriptAnalyzer invocation.
# All default rules are also enabled.
@{
    Rules = @{
        PSUseCompatibleSyntax = @{
            # This turns the rule on (setting it to false will turn it off)
            Enable = $true

            # Simply list the targeted versions of PowerShell here
            TargetVersions = @(
                '4.0',
                '5.1',
                '6.2',
                '7.0'
            )
        }
    }
}