Move to super-linter @master, enable powershell lint, add dependabot (#305)

* Try Super Linter 3.3.0
* Add dependabot - build SL v 3.3.0
* Try master
* Remove elsint, powershell rcs and test powershell
This commit is contained in:
Gene Hoffman 2020-07-06 14:22:05 -07:00
parent b5e10cb3a2
commit f9900fbd14
4 changed files with 47 additions and 61 deletions

45
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,45 @@
# Basic dependabot.yml file with
# minimum configuration for two package managers
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "electron-react "
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "weekly"
day: "tuesday"
target-branch: "dev"
pull-request-branch-name:
# Separate sections of the branch name with a hyphen
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1`
separator: "-"
# Enable version updates for Python
- package-ecosystem: "pip"
# Look for a `Dockerfile` in the `root` directory
directory: "/"
# Check for updates once a week
schedule:
interval: "weekly"
day: "tuesday"
target-branch: "dev"
pull-request-branch-name:
# Separate sections of the branch name with a hyphen
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1`
separator: "-"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates once a week
schedule:
interval: "weekly"
day: "tuesday"
target-branch: "dev"
pull-request-branch-name:
# Separate sections of the branch name with a hyphen
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1`
separator: "-"

View File

@ -1,41 +0,0 @@
---
#############################
#############################
## JavaScript Linter rules ##
#############################
#############################
############
# Env Vars #
############
env:
browser: true
es6: true
jest: true
###############
# Global Vars #
###############
globals:
Atomics: readonly
SharedArrayBuffer: readonly
###############
# Parser vars #
###############
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2018
sourceType: module
###########
# Plugins #
###########
plugins:
- '@typescript-eslint'
#########
# Rules #
#########
rules: {}

View File

@ -1,18 +0,0 @@
#Documentation: https://github.com/PowerShell/PSScriptAnalyzer/blob/master/docs/markdown/Invoke-ScriptAnalyzer.md#-settings
@{
#CustomRulePath='path\to\CustomRuleModule.psm1'
#RecurseCustomRulePath='path\of\customrules'
#Severity = @(
# 'Error'
# 'Warning'
#)
#IncludeDefaultRules=$true
#ExcludeRules = @(
# 'PSAvoidUsingWriteHost',
# 'MyCustomRuleName'
#)
#IncludeRules = @(
# 'PSAvoidUsingWriteHost',
# 'MyCustomRuleName'
#)
}

View File

@ -44,7 +44,7 @@ jobs:
# Run Linter against code base #
################################
- name: Lint Code Base
uses: docker://github/super-linter:v3.1.1
uses: github/super-linter@master
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: master
@ -59,7 +59,7 @@ jobs:
VALIDATE_TYPESCRIPT_ES: true
VALIDATE_DOCKER: true
VALIDATE_GO: true
VALIDATE_POWERSHELL: false
VALIDATE_POWERSHELL: true
VALIDATE_CSS: false
VALIDATE_ENV: true
DISABLE_ERRORS: false