Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update project setup #2

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
45 changes: 45 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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,

// Generated Files.
{
ignores: ['lib/**'],
},

// (CommonJS) JavaScript Files.
{
files: ['**/*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},

// Test Files.
{
files: ['tests/**/*.js'],
languageOptions: {
globals: {
document: true,
},
},
},

// Everything Else.
{
languageOptions: {
globals: {
__dirname: true,
console: true,
exports: true,
module: true,
require: true,
},
},
},
);
Loading