test: lint all js files and inline scripts in workflow (#2442)

* Lint all js files

Closes #2414

* Lint inline scripts in workflow

* Upgrade eslint-plugin-actions to 1.0.1

Test plan:
1. Add `console` statement to the script in `.github/workflows/ci.yml`
2. Check `no-console` error is shown in `eslint`
This commit is contained in:
ylemkimon
2020-08-30 10:09:47 +09:00
committed by GitHub
parent a71d053df9
commit a82d4c44e0
4 changed files with 23 additions and 3 deletions

View File

@@ -5,7 +5,8 @@
],
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
"plugin:flowtype/recommended",
"plugin:actions/recommended"
],
"rules": {
"arrow-spacing": 2,
@@ -101,6 +102,11 @@
"rules": {
"react/prop-types": 0
}
}, {
"files": [".github/workflows/*.{yaml,yml}/**/*.js"],
"rules": {
"indent-legacy": [2, 4, {"SwitchCase": 1, "outerIIFEBody": 0}],
}
}],
"root": true
}