Skip to content

Commit

Permalink
chore: update project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke committed Mar 12, 2024
1 parent bf48408 commit d846f53
Show file tree
Hide file tree
Showing 13 changed files with 599 additions and 607 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.js

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: '🐛 Bug report'
about: Report a bug found.
title: ''
labels: ''
assignees: ''
---

## The Problem

<!--
Briefly describe the issue you are experiencing.
Tell us what you were trying to do and what happened instead.
-->

## Environment

- Version that exhibits the issue:
- Last version that did not exhibit the issue (if applicable):
- Desktop OS/version:

## Code To Reproduce Issue [ Nice To Have ]

<!--
Please remember that with a code sample it's easier to reproduce the bug,
and it's much faster to fix it.
-->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 🤔 Documentation
url: https://docs.saucelabs.com/
about: Before filing an issue, please consult the documentation first. You just might find your answer right there!
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: 🚀 Feature Proposal
about: Submit a proposal for a new feature
---

## 🚀 Feature Proposal

A clear and concise description of what the feature is.

## Motivation

Please outline the motivation for the proposal.

## Example

Please provide an example for how this feature would be used.
22 changes: 0 additions & 22 deletions .github/workflows/lint.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install Dependencies
run: npm i

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm run test
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
npx pretty-quick --staged
npm run lint
37 changes: 37 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const ts = require('typescript-eslint');
const js = require('@eslint/js');
const prettier = require('eslint-config-prettier');

module.exports = ts.config(
js.configs.recommended,
...ts.configs.recommended,
prettier,
{
ignores: ['lib/**'],
},
{
files: ['**/*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['tests/**/*.js'],
languageOptions: {
globals: {
document: true,
},
},
},
{
languageOptions: {
globals: {
__dirname: true,
console: true,
exports: true,
module: true,
require: true,
},
},
},
);
Loading

0 comments on commit d846f53

Please sign in to comment.