1
0
mirror of synced 2026-01-07 09:01:31 -05:00

eslint check the .github/actions-scripts/* files too (#23698)

* eslint check the .github/actions-scripts/* files too

* but ignore node_modules/.bin/*

* fix errors

* last one

* feedbacked
This commit is contained in:
Peter Bengtsson
2021-12-15 12:35:34 -05:00
committed by GitHub
parent 0faa5ce618
commit bf5c7353d2
6 changed files with 8 additions and 5 deletions

View File

@@ -134,8 +134,8 @@ async function run() {
// Exclude existing items going forward.
// Until we have a way to check from a PR whether the PR is in a project,
// this is how we (roughly) avoid overwriting PRs that are already on the board
let newItemIDs = []
let newItemAuthors = []
const newItemIDs = []
const newItemAuthors = []
itemIDs.forEach((id, index) => {
if (!existingItemIDs.includes(id)) {
newItemIDs.push(id)

View File

@@ -85,8 +85,8 @@ async function run() {
// - affected docs sets (not considering changes to data/assets)
let numFiles = 0
let numChanges = 0
let features = new Set([])
const files = data.item.files.nodes.forEach((node) => {
const features = new Set([])
data.item.files.nodes.forEach((node) => {
numFiles += 1
numChanges += node.additions
numChanges += node.deletions

View File

@@ -18,6 +18,7 @@ on:
- '**.yaml'
- '**.yml'
- '**.scss'
- .eslintrc.js
# In case something like eslint or tsc or prettier upgrades
- 'package-lock.json'
# Ultimately, for debugging this workflow itself