The Wayback Machine - https://web.archive.org/web/20220319135457/https://github.com/github/docs/commit/bf5c7353d2b9f90f3a3de5c22d1fc23770da610c
Skip to content
Permalink
Browse files
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
  • Loading branch information
peterbe committed Dec 15, 2021
1 parent 0faa5ce commit bf5c7353d2b9f90f3a3de5c22d1fc23770da610c
@@ -13,7 +13,7 @@ module.exports = {
babelOptions: { configFile: './.babelrc' },
sourceType: 'module',
},
ignorePatterns: ['tmp/*'],
ignorePatterns: ['tmp/*', '!/.*', '/.next/'],
rules: {
'import/no-extraneous-dependencies': ['error', { packageDir: '.' }],
},
@@ -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)
@@ -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
@@ -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

Some generated files are not rendered by default. Learn more.

@@ -105,6 +105,7 @@
"@graphql-inspector/core": "^2.9.0",
"@graphql-tools/load": "^7.4.1",
"@jest/globals": "^27.3.1",
"@octokit/graphql": "4.8.0",
"@octokit/rest": "^18.12.0",
"@types/github-slugger": "^1.3.0",
"@types/imurmurhash": "^0.1.1",

0 comments on commit bf5c735

Please sign in to comment.