Skip to content

Commit 1a519c6

Browse files
committed
chore: init
0 parents  commit 1a519c6

32 files changed

+6793
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
9+
[*.js]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[{package.json,*.yml,*.cjson}]
14+
indent_style = space
15+
indent_size = 2

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.eslintrc.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
},
7+
parser: '@typescript-eslint/parser',
8+
parserOptions: {
9+
sourceType: 'module',
10+
},
11+
plugins: ['@typescript-eslint'],
12+
extends: [
13+
'plugin:@typescript-eslint/recommended',
14+
'eslint:recommended',
15+
'plugin:prettier/recommended',
16+
'prettier',
17+
],
18+
rules: {
19+
'@typescript-eslint/ban-ts-comment': 'off',
20+
'@typescript-eslint/ban-types': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/explicit-module-boundary-types': 'off',
23+
'@typescript-eslint/no-inferrable-types': 1,
24+
'@typescript-eslint/no-explicit-any': 'off',
25+
'no-unused-vars': 'off',
26+
'no-redeclare': 'off',
27+
},
28+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "\U0001F41B Bug report"
2+
description: Something's not working
3+
title: "fix: "
4+
labels: ["bug"]
5+
assignees: danielroe
6+
body:
7+
- type: textarea
8+
validations:
9+
required: true
10+
attributes:
11+
label: 🐛 The bug
12+
description: What isn't working? Describe what the bug is.
13+
- type: input
14+
validations:
15+
required: true
16+
attributes:
17+
label: 🛠️ To reproduce
18+
description: A reproduction of the bug via https://stackblitz.com/github/danielroe/magic-regexp/tree/main/playground
19+
placeholder: https://stackblitz.com/[...]
20+
- type: textarea
21+
validations:
22+
required: true
23+
attributes:
24+
label: 🌈 Expected behaviour
25+
description: What did you expect to happen? Is there a section in the docs about this?
26+
- type: textarea
27+
attributes:
28+
label: ℹ️ Additional context
29+
description: Add any other context about the problem here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "\U0001F4DA Documentation"
2+
description: How do I ... ?
3+
title: "docs: "
4+
labels: ["documentation"]
5+
assignees: danielroe
6+
body:
7+
- type: textarea
8+
validations:
9+
required: true
10+
attributes:
11+
label: 📚 Is your documentation request related to a problem?
12+
description: A clear and concise description of what the problem is.
13+
placeholder: I feel I should be able to [...] but I can't see how to do it from the docs.
14+
- type: textarea
15+
attributes:
16+
label: 🔍 Where should you find it?
17+
description: What page of the docs do you expect this information to be found on?
18+
- type: textarea
19+
attributes:
20+
label: ℹ️ Additional context
21+
description: Add any other context or information.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "\U0001F195 Feature suggestion"
2+
description: Suggest an idea
3+
title: "feat: "
4+
labels: ["enhancement"]
5+
assignees: danielroe
6+
body:
7+
- type: textarea
8+
validations:
9+
required: true
10+
attributes:
11+
label: 🆒 Your use case
12+
description: Add a description of your use case, and how this feature would help you.
13+
placeholder: When I do [...] I would expect to be able to do [...]
14+
- type: textarea
15+
validations:
16+
required: true
17+
attributes:
18+
label: 🆕 The solution you'd like
19+
description: Describe what you want to happen.
20+
- type: textarea
21+
attributes:
22+
label: 🔍 Alternatives you've considered
23+
description: Have you considered any alternative solutions or features?
24+
- type: textarea
25+
attributes:
26+
label: ℹ️ Additional info
27+
description: Is there any other context you think would be helpful to know?
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "\U0001F198 Help"
2+
description: I need help with ...
3+
title: "help: "
4+
labels: ["help"]
5+
assignees: danielroe
6+
body:
7+
- type: textarea
8+
validations:
9+
required: true
10+
attributes:
11+
label: 📚 What are you trying to do?
12+
description: A clear and concise description of your objective.
13+
placeholder: I'm not sure how to [...].
14+
- type: textarea
15+
attributes:
16+
label: 🔍 What have you tried?
17+
description: Have you looked through the docs? Tried different approaches? The more detail the better.
18+
- type: textarea
19+
attributes:
20+
label: ℹ️ Additional context
21+
description: Add any other context or information.

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- run: corepack enable
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
cache: "pnpm"
22+
23+
- name: 📦 Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: 🔠 Lint project
27+
run: pnpm run lint
28+
29+
test:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- run: corepack enable
35+
- uses: actions/setup-node@v3
36+
with:
37+
node-version: 16
38+
cache: "pnpm"
39+
40+
- name: 📦 Install dependencies
41+
run: pnpm install --frozen-lockfile
42+
43+
- name: 🛠 Build project
44+
run: pnpm run build
45+
46+
- name: 🧪 Test project
47+
run: pnpm run test -- --coverage
48+
49+
- name: 🟩 Coverage
50+
uses: codecov/codecov-action@v3

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
coverage

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpm exec lint-staged

0 commit comments

Comments
 (0)