diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..eea1664 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,84 @@ +# NHS Notify Code Owners + +* @NHSDigital/nhs-notify-iam-webauth + +/.github/ @NHSDigital/nhs-notify-iam-admins +*.code-workspace @NHSDigital/nhs-notify-iam-admins +/docs/ @NHSDigital/nhs-notify-iam-webauth +/docs/testing/ @NHSDigital/nhs-notify-iam-webauth-testers +/tests/test-team/ @NHSDigital/nhs-notify-iam-webauth-testers + +# Codeowners must be final check +/.github/CODEOWNERS @NHSDigital/nhs-notify-code-owners +/CODEOWNERS @NHSDigital/nhs-notify-code-owners + + +# Each NHS Notify repository should have clear code owners set. +# Do not use GitHub team names, instead use the GitHub usernames +# of the people who are responsible for the code maintenance. + +# This is a comment. +# Each line is a file pattern followed by one or more owners. + +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +# @global-owner1 and @global-owner2 will be requested for +# review when someone opens a pull request. +# * @global-owner1 @global-owner2 + +# Order is important; the last matching pattern takes the most +# precedence. When someone opens a pull request that only +# modifies JS files, only @js-owner and not the global +# owner(s) will be requested for a review. +# *.js @js-owner #This is an inline comment. + +# You can also use email addresses if you prefer. They'll be +# used to look up users just like we do for commit author +# emails. +# *.go docs@example.com + +# Teams can be specified as code owners as well. Teams should +# be identified in the format @org/team-name. Teams must have +# explicit write access to the repository. In this example, +# the octocats team in the octo-org organization owns all .txt files. +# *.txt @octo-org/octocats + +# In this example, @doctocat owns any files in the build/logs +# directory at the root of the repository and any of its +# subdirectories. +# /build/logs/ @doctocat + +# The `docs/*` pattern will match files like +# `docs/getting-started.md` but not further nested files like +# `docs/build-app/troubleshooting.md`. +# docs/* docs@example.com + +# In this example, @octocat owns any file in an apps directory +# anywhere in your repository. +# apps/ @octocat + +# In this example, @doctocat owns any file in the `/docs` +# directory in the root of your repository and any of its +# subdirectories. +# /docs/ @doctocat + +# In this example, any change inside the `/scripts` directory +# will require approval from @doctocat or @octocat. +# /scripts/ @doctocat @octocat + +# In this example, @octocat owns any file in a `/logs` directory such as +# `/build/logs`, `/scripts/logs`, and `/deeply/nested/logs`. Any changes +# in a `/logs` directory will require approval from @octocat. +# **/logs @octocat + +# In this example, @octocat owns any file in the `/apps` +# directory in the root of your repository except for the `/apps/github` +# subdirectory, as its owners are left empty. +# /apps/ @octocat +# /apps/github + +# In this example, @octocat owns any file in the `/apps` +# directory in the root of your repository except for the `/apps/github` +# subdirectory, as this subdirectory has its own owner @doctocat +# /apps/ @octocat +# /apps/github @doctocat diff --git a/.vscode/settings.json b/.vscode/settings.json index 423458c..5ba3f48 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,9 @@ "MD013": false, "MD024": { "siblings_only": true }, "MD033": false - } + }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "eslint.codeActionsOnSave.mode": "problems" } diff --git a/package-lock.json b/package-lock.json index 393248e..16a2e74 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9398,15 +9398,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-timeout": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-4.1.0.tgz", - "integrity": "sha512-+/wmHtzJuWii1sXn3HCuH/FTwGhrp4tmJTxSKJbfS+vkipci6osxXM5mY0jUiRzWKMTgUT8l7HFbeSwZAynqHw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -9503,30 +9494,6 @@ "lodash": "^4.17.14" } }, - "node_modules/pa11y-ci/node_modules/axe-core": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.2.4.tgz", - "integrity": "sha512-9AiDKFKUCWEQm1Kj4lcq7KFavLqSXdf2m/zJo+NVh4VXlW5iwXRJ6alkKmipCyYorsRnqsICH9XLubP1jBF+Og==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/pa11y-ci/node_modules/bfj": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.0.2.tgz", - "integrity": "sha512-+e/UqUzwmzJamNF50tBV6tZPTORow7gQ96iFow+8b562OdMpEK0BcJEq2OSPEDmAbSMBQ7PKZ87ubFkgxpYWgw==", - "dev": true, - "dependencies": { - "bluebird": "^3.5.5", - "check-types": "^11.1.1", - "hoopy": "^0.1.4", - "tryer": "^1.0.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, "node_modules/pa11y-ci/node_modules/commander": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", @@ -9542,18 +9509,6 @@ "integrity": "sha512-VvlVYY+VDJe639yHs5PHISzdWTLL3Aw8rO4cvUtwvoxFd6FHbE4OpHHcde52M6096uYYazAmd4l0o5VuFRO2WA==", "dev": true }, - "node_modules/pa11y-ci/node_modules/envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", - "dev": true, - "bin": { - "envinfo": "dist/cli.js" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/pa11y-ci/node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -9600,52 +9555,6 @@ "node": ">=6" } }, - "node_modules/pa11y-ci/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/pa11y-ci/node_modules/pa11y": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/pa11y/-/pa11y-6.2.3.tgz", - "integrity": "sha512-69JoUlfW2QVmrgQAm+17XBxIvmd1u0ImFBYIHPyjC61CzAkmxO3kkbqDVxIcl0OKLvAMYSMbvfCH8kMFE9xsbg==", - "dev": true, - "dependencies": { - "axe-core": "~4.2.1", - "bfj": "~7.0.2", - "commander": "~8.0.0", - "envinfo": "~7.8.1", - "html_codesniffer": "~2.5.1", - "kleur": "~4.1.4", - "mustache": "~4.2.0", - "node.extend": "~2.0.2", - "p-timeout": "~4.1.0", - "puppeteer": "~9.1.1", - "semver": "~7.3.5" - }, - "bin": { - "pa11y": "bin/pa11y.js" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/pa11y-ci/node_modules/pa11y/node_modules/commander": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.0.0.tgz", - "integrity": "sha512-Xvf85aAtu6v22+E5hfVoLHqyul/jyxh91zvqk/ioJTQuJR7Z78n7H558vMPKanPSRgIEeZemT92I2g9Y8LPbSQ==", - "dev": true, - "engines": { - "node": ">= 12" - } - }, "node_modules/pa11y-ci/node_modules/puppeteer": { "version": "9.1.1", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-9.1.1.tgz", @@ -9671,21 +9580,6 @@ "node": ">=10.18.1" } }, - "node_modules/pa11y-ci/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/pa11y-ci/node_modules/tar-fs": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", @@ -9735,12 +9629,6 @@ } } }, - "node_modules/pa11y-ci/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/pa11y-reporter-html-plus": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pa11y-reporter-html-plus/-/pa11y-reporter-html-plus-2.0.1.tgz", diff --git a/project.code-workspace b/project.code-workspace index ff84143..7e68977 100644 --- a/project.code-workspace +++ b/project.code-workspace @@ -1,7 +1,7 @@ { "folders": [ { - "name": "NHS Notify Repo Template", + "name": "NHS Notify Web IAM", "path": "." } ]