Skip to content

Commit b9d7b6d

Browse files
committed
init commit
0 parents  commit b9d7b6d

File tree

260 files changed

+410814
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+410814
-0
lines changed

.eslintrc.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
module.exports = {
2+
extends: [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/strict-type-checked", // Enable type checking, max strictness
5+
"plugin:prettier/recommended" // prettier rules
6+
],
7+
8+
parser: "@typescript-eslint/parser",
9+
10+
parserOptions: {
11+
project: true,
12+
tsconfigRootDir: __dirname
13+
},
14+
15+
plugins: ["@typescript-eslint"],
16+
17+
root: true,
18+
19+
ignorePatterns: [
20+
".eslintrc.js",
21+
"*.spec.ts",
22+
"*.test.ts",
23+
"dist/",
24+
"coverage/",
25+
"lib/",
26+
"pnpm-lock.yaml",
27+
".pnpm-store/"
28+
], // ESLINT IGNORE
29+
30+
env: {
31+
// ESLINT ENV
32+
node: true,
33+
jest: true
34+
},
35+
36+
rules: {
37+
"no-else-return": ["error", { allowElseIf: false }],
38+
"consistent-return": "error",
39+
"no-console": "warn",
40+
"@typescript-eslint/typedef": [
41+
"error",
42+
{
43+
variableDeclaration: true,
44+
memberVariableDeclaration: true
45+
}
46+
],
47+
"@typescript-eslint/explicit-module-boundary-types": "error",
48+
"@typescript-eslint/naming-convention": [
49+
"error",
50+
{
51+
selector: "class",
52+
format: ["PascalCase"]
53+
}
54+
],
55+
"@typescript-eslint/prefer-readonly": "error",
56+
"@typescript-eslint/explicit-member-accessibility": [
57+
"error",
58+
{
59+
accessibility: "explicit",
60+
overrides: {
61+
accessors: "explicit",
62+
constructors: "no-public",
63+
methods: "explicit",
64+
properties: "explicit",
65+
parameterProperties: "explicit"
66+
}
67+
}
68+
]
69+
}
70+
};

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Continuous Integration
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
push:
9+
branches:
10+
- main
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
test-typescript:
17+
name: TypeScript Tests
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
id: checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Install pnpm
26+
id: setup-pnpm
27+
uses: pnpm/action-setup@v3
28+
29+
- name: Set node version
30+
id: setup-node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version-file: .node-version
34+
cache: "pnpm"
35+
36+
- name: Install Dependencies
37+
id: install
38+
run: pnpm install
39+
40+
- name: Check Format
41+
id: pnpm-format-check
42+
run: pnpm run format:check
43+
44+
- name: Lint
45+
id: pnpm-lint
46+
run: pnpm run lint
47+
48+
- name: Load Exiftool
49+
id: exiftool
50+
uses: ./
51+
52+
- name: Run Exiftool
53+
run: exiftool -ver
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CodeQL
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
# schedule:
11+
# - cron: "31 7 * * 3"
12+
13+
permissions:
14+
actions: read
15+
checks: write
16+
contents: read
17+
security-events: write
18+
19+
jobs:
20+
analyze:
21+
name: Analyze
22+
runs-on: ubuntu-latest
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language:
28+
- TypeScript
29+
30+
steps:
31+
- name: Checkout
32+
id: checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Initialize CodeQL
36+
id: initialize
37+
uses: github/codeql-action/init@v3
38+
with:
39+
languages: ${{ matrix.language }}
40+
source-root: src
41+
42+
- name: Autobuild
43+
id: autobuild
44+
uses: github/codeql-action/autobuild@v3
45+
46+
- name: Perform CodeQL Analysis
47+
id: analyze
48+
uses: github/codeql-action/analyze@v3

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dependency directory
2+
node_modules
3+
exiftool_git

.node-version

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

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package-manager-strict=false
2+
save=true
3+
save-exact=true

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.pnpm-store/
2+
dist/
3+
node_modules/
4+
coverage/
5+
__tests__/
6+
.devcontainer/
7+
.github/
8+
badges/
9+
script/
10+
pnpm-lock.yaml
11+
.eslintrc.js
12+
*.md
13+
exiftool

.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
9+
"trailingComma": "none",
10+
"bracketSpacing": true,
11+
"bracketSameLine": true,
12+
"arrowParens": "avoid",
13+
"proseWrap": "always",
14+
"htmlWhitespaceSensitivity": "css",
15+
"endOfLine": "lf"
16+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["cschleiden.vscode-github-actions", "redhat.vscode-yaml"]
3+
}

0 commit comments

Comments
 (0)