Skip to content

Commit f903b9e

Browse files
committed
ci: clean up and conventions
1 parent 4ac37de commit f903b9e

File tree

13 files changed

+406
-122
lines changed

13 files changed

+406
-122
lines changed

.github/ISSUE_TEMPLATE/bug-remote.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 🐛 Bug Report
2+
description: File a bug report.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thanks for taking the time to fill out this bug report!
9+
- type: textarea
10+
id: what-happened
11+
attributes:
12+
label: What happened?
13+
description: Also tell us, what did you expect to happen?
14+
placeholder: Tell us what you see!
15+
value: "A bug happened!"
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: logs
20+
attributes:
21+
label: Relevant log output
22+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
23+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💡 Have an idea for a new feature?
4+
url: https://github.com/jef/zap2xml/discussions
5+
about: Create a new idea discussion!
6+
- name: 🙇 Need help?
7+
url: https://github.com/jef/zap2xml/discussions
8+
about: Create a new help discussion if it hasn't been asked before!

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/pr-lint.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull Request Title Linter
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
- synchronize
10+
11+
jobs:
12+
pr_lint:
13+
name: Lint pull request title
14+
runs-on: ubuntu-latest
15+
permissions:
16+
pull-requests: write
17+
steps:
18+
- name: Lint pull request title
19+
uses: jef/conventional-commits-pr-action@v1

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
dist/
2-
node_modules/
1+
.idea
2+
.vscode
3+
4+
node_modules
5+
dist
36

4-
compose.yaml
57

8+
compose.yaml
69
xmltv.xml

.prettierignore

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

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

eslint.config.mjs

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
// @ts-check
2-
3-
import eslint from "@eslint/js";
1+
import { defineConfig } from "eslint/config";
2+
import js from "@eslint/js";
3+
import globals from "globals";
44
import tseslint from "typescript-eslint";
5-
import prettierConfig from "eslint-plugin-prettier/recommended";
5+
import eslintConfigPrettier from "eslint-config-prettier/flat";
66

7-
export default tseslint.config(
8-
eslint.configs.recommended,
9-
tseslint.configs.strict,
10-
tseslint.configs.stylistic,
11-
prettierConfig,
7+
export default defineConfig([
8+
{
9+
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
10+
plugins: { js },
11+
extends: ["js/recommended"],
12+
},
13+
{
14+
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
15+
languageOptions: { globals: globals.browser },
16+
},
17+
tseslint.configs.recommended,
18+
eslintConfigPrettier,
1219
{
13-
ignores: ["dist/**", "node_modules/**"],
20+
ignores: ["dist"],
1421
},
15-
);
22+
]);

0 commit comments

Comments
 (0)