Skip to content

Commit

Permalink
Update Linting and Dependencies (#31)
Browse files Browse the repository at this point in the history
* Update Linting and Dependencies

* Update Linting and Dependencies

* Eslint

* Update eslint comment
  • Loading branch information
smashedr authored Jul 7, 2024
1 parent 523164a commit 828fdc2
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 72 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"sourceType": "module"
},
"rules": {
"no-extra-semi": "off",
"no-undef": "off"
"no-undef": "off",
"no-extra-semi": "off"
}
}
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
node-version: 20

- name: "Update Manifest Version"
uses: cssnr/update-json-value-action@v1
if: ${{ github.event_name == 'release' }}
uses: cssnr/update-json-value-action@v1

- name: "Build All"
run: |
Expand All @@ -36,6 +36,7 @@ jobs:
path: web-ext-artifacts/

- name: "Upload to Release"
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Test"

on:
push:
branches: ["master"]
paths:
- "src/**"
pull_request:
branches: ["master"]
paths:
- "src/**"
workflow_dispatch:

jobs:
test:
name: "Test"
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ !contains(github.event.head_commit.message, '#notest') }}

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20

- name: "Install"
run: |
npm install
- name: "Lint"
run: |
npm run lint
4 changes: 2 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"singleQuote": true,
"overrides": [
{
"files": ["**/*.html", "**/*.yaml"],
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
"options": {
"singleQuote": false
}
},
{
"files": ["**/*.json", "**/*.yaml"],
"files": ["**/*.json", "**/*.yaml", "**/*.yml"],
"options": {
"tabWidth": 2
}
Expand Down
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
[![Chrome Web Store Version](https://img.shields.io/chrome-web-store/v/efahmjakjnnmleokcaomicgfhobabdkc?label=chrome&logo=googlechrome)](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[![Mozilla Add-on Version](https://img.shields.io/amo/v/open-links-in-new-tab?label=firefox&logo=firefox)](https://addons.mozilla.org/addon/open-links-in-new-tab)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/open-links-in-new-tab?logo=github)](https://github.com/cssnr/open-links-in-new-tab/releases/latest)
[![Build](https://github.com/cssnr/open-links-in-new-tab/actions/workflows/build.yaml/badge.svg)](https://github.com/cssnr/open-links-in-new-tab/actions/workflows/build.yaml)
[![Build](https://img.shields.io/github/actions/workflow/status/cssnr/open-links-in-new-tab/build.yaml?logo=github&logoColor=white&label=build)](https://github.com/cssnr/open-links-in-new-tab/actions/workflows/build.yaml)
[![Test](https://img.shields.io/github/actions/workflow/status/cssnr/open-links-in-new-tab/test.yaml?logo=github&logoColor=white&label=test)](https://github.com/cssnr/open-links-in-new-tab/actions/workflows/test.yaml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_open-links-in-new-tab&metric=alert_status&label=quality)](https://sonarcloud.io/summary/overall?id=cssnr_open-links-in-new-tab)
[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da)](https://discord.gg/wXy6m2X8wY)
# Open Links in New Tab
Expand All @@ -16,6 +17,7 @@ Modern Chrome Web Extension and Firefox Browser Addon to Open Links in New Tabs
* [Features](#features)
* [Known Issues](#known-issues)
* [Configuration](#configuration)
* [Support](#support)
* [Development](#development)
- [Building](#building)

Expand Down Expand Up @@ -77,7 +79,24 @@ You can pin the Addon by clicking the `Puzzle Piece`, find the Web Extension ico

To open the options, click on the icon (from above) then click `Open Options`.

Documentation: https://open-links-in-new-tab.cssnr.com/docs/
# Support

For help using the web extension, utilize any these resources:

- Documentation: https://open-links-in-new-tab.cssnr.com/docs/
- Q&A Discussion: https://github.com/cssnr/open-links-in-new-tab/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/open-links-in-new-tab/discussions/categories/feature-requests

If you are experiencing an issue/bug or getting unexpected results, use:

- Report an Issue: https://github.com/cssnr/open-links-in-new-tab/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide Anonymous Feedback: https://cssnr.github.io/feedback

Logs can be found inspecting the page (Ctrl+Shift+I), clicking on the Console, and;
Firefox: toggling Debug logs, Chrome: toggling Verbose from levels dropdown.

Note: When providing anonymous feedback there is no way to follow up and get more information unless you provide a contact method.

# Development

Expand Down
Loading

0 comments on commit 828fdc2

Please sign in to comment.