Skip to content

Commit

Permalink
chore: run prettier on all files & fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm committed Mar 16, 2022
1 parent c91a56f commit 0bb537c
Show file tree
Hide file tree
Showing 9 changed files with 479 additions and 468 deletions.
20 changes: 19 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
// Copyright 2021 Inrupt Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
// Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
module.exports = {
extends: ["@inrupt/eslint-config-lib","plugin:import/typescript"],
extends: ["@inrupt/eslint-config-lib", "plugin:import/typescript"],
rules: {
"import/prefer-default-export": 0,
"max-classes-per-file": 0,
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cd-packaging-tests/node/commonjs.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const {
sampleModuleFn,
} = require("@inrupt/solid-client-errors-js");
const { sampleModuleFn } = require("@inrupt/solid-client-errors-js");

console.log(sampleModuleFn());
36 changes: 18 additions & 18 deletions .github/workflows/cd-teardown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.ref_type == 'branch'
steps:
- name: Prepare for unpublication from npm
uses: actions/setup-node@v2.1.5
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Determine npm tag
# Remove non-alphanumeric characters
# See https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
run: echo "TAG_SLUG=$(echo "${{ github.event.ref }}" | tr -cd '[:alnum:]-')" >> $GITHUB_ENV
- name: Remove npm tag for the deleted branch
run: |
# Unfortunately GitHub Actions does not currently let us do something like
# if: secrets.NPM_TOKEN != ''
# so simply skip the command if the env var is not set:
if [ -n $NODE_AUTH_TOKEN ]; then npm dist-tag rm @inrupt/solid-client-errors-js $TAG_SLUG; fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: echo "Package tag [$TAG_SLUG] unpublished."
- name: Prepare for unpublication from npm
uses: actions/setup-node@v2.1.5
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- name: Determine npm tag
# Remove non-alphanumeric characters
# See https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
run: echo "TAG_SLUG=$(echo "${{ github.event.ref }}" | tr -cd '[:alnum:]-')" >> $GITHUB_ENV
- name: Remove npm tag for the deleted branch
run: |
# Unfortunately GitHub Actions does not currently let us do something like
# if: secrets.NPM_TOKEN != ''
# so simply skip the command if the env var is not set:
if [ -n $NODE_AUTH_TOKEN ]; then npm dist-tag rm @inrupt/solid-client-errors-js $TAG_SLUG; fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: echo "Package tag [$TAG_SLUG] unpublished."
Loading

0 comments on commit 0bb537c

Please sign in to comment.