Skip to content

Commit a46834a

Browse files
committed
first commit
0 parents  commit a46834a

Some content is hidden

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

51 files changed

+16477
-0
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 4
10+
max_line_length = 120
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
max_line_length = 240
15+
16+
[*.{yaml,yml,json,js,ts,html,css,toml}]
17+
indent_size = 2
18+
19+
[COMMIT_EDITMSG]
20+
max_line_length = 72

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/dist
2+
/lib
3+
/node_modules
4+
/jest.config.js

.eslintrc

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"plugins": [
3+
"jest",
4+
"@typescript-eslint"
5+
],
6+
"extends": [
7+
"plugin:github/recommended"
8+
],
9+
"parser": "@typescript-eslint/parser",
10+
"parserOptions": {
11+
"ecmaVersion": 9,
12+
"sourceType": "module",
13+
"project": "./tsconfig.json"
14+
},
15+
"rules": {
16+
"eslint-comments/no-use": "off",
17+
"import/no-namespace": "off",
18+
"no-unused-vars": "off",
19+
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used" }],
20+
"@typescript-eslint/explicit-member-accessibility": [
21+
"error",
22+
{
23+
"accessibility": "no-public"
24+
}
25+
],
26+
"@typescript-eslint/no-require-imports": "error",
27+
"@typescript-eslint/array-type": "error",
28+
"@typescript-eslint/await-thenable": "error",
29+
"@typescript-eslint/ban-ts-comment": "error",
30+
"camelcase": "off",
31+
"@typescript-eslint/consistent-type-assertions": "error",
32+
"@typescript-eslint/explicit-function-return-type": [
33+
"error",
34+
{
35+
"allowExpressions": true
36+
}
37+
],
38+
"@typescript-eslint/func-call-spacing": [
39+
"error",
40+
"never"
41+
],
42+
"@typescript-eslint/no-array-constructor": "error",
43+
"@typescript-eslint/no-empty-interface": "error",
44+
"@typescript-eslint/no-explicit-any": "error",
45+
"@typescript-eslint/no-extraneous-class": "error",
46+
"@typescript-eslint/no-for-in-array": "error",
47+
"@typescript-eslint/no-inferrable-types": "error",
48+
"@typescript-eslint/no-misused-new": "error",
49+
"@typescript-eslint/no-namespace": "error",
50+
"@typescript-eslint/no-non-null-assertion": "warn",
51+
"@typescript-eslint/no-unnecessary-qualifier": "error",
52+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
53+
"@typescript-eslint/no-useless-constructor": "error",
54+
"@typescript-eslint/no-var-requires": "error",
55+
"@typescript-eslint/prefer-for-of": "warn",
56+
"@typescript-eslint/prefer-function-type": "warn",
57+
"@typescript-eslint/prefer-includes": "error",
58+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
59+
"@typescript-eslint/promise-function-async": "error",
60+
"@typescript-eslint/require-array-sort-compare": "error",
61+
"@typescript-eslint/restrict-plus-operands": "error",
62+
"semi": "off",
63+
"@typescript-eslint/semi": [
64+
"error",
65+
"never"
66+
],
67+
"@typescript-eslint/type-annotation-spacing": "error",
68+
"@typescript-eslint/unbound-method": "error",
69+
"no-shadow": "off",
70+
"@typescript-eslint/no-shadow": ["error"]
71+
},
72+
"env": {
73+
"node": true,
74+
"es6": true,
75+
"jest/globals": true
76+
}
77+
}

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.github export-ignore
4+
5+
CHANGELOG.md merge=union
6+
7+
dist/** -diff linguist-generated=true

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: "2"
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/examples.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: "Examples"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
build:
10+
name: "Build examples/first"
11+
continue-on-error: true
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- uses: ./
17+
with:
18+
command: build
19+
args: --verbose
20+
manifest-path: examples/first
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
23+
code_style:
24+
name: "Code style examples/second"
25+
continue-on-error: true
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- uses: ./
31+
with:
32+
command: fmt
33+
args: --all -- --check
34+
manifest-path: examples/second
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
37+
lint:
38+
name: "Lint examples/second"
39+
continue-on-error: true
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
44+
- uses: ./
45+
with:
46+
command: clippy
47+
args: --all-features --all-targets -- -D warnings
48+
manifest-path: examples/second
49+
token: ${{ secrets.GITHUB_TOKEN }}
50+
51+
tests:
52+
name: "Test examples/second"
53+
continue-on-error: true
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v2
57+
58+
- uses: ./
59+
with:
60+
command: test
61+
args: --all-features --no-fail-fast --jobs 1
62+
manifest-path: examples/second
63+
token: ${{ secrets.GITHUB_TOKEN }}
64+
65+
audit:
66+
name: "Audit examples/second"
67+
continue-on-error: true
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v2
71+
72+
- uses: ./
73+
with:
74+
command: audit
75+
manifest-path: examples/second
76+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# project
2+
node_modules
3+
__tests__/runner/*
4+
lib/**/*
5+
raw-log.md
6+
7+
# JetBrains
8+
/.idea
9+
10+
# Visual Studio Code
11+
/.vscode
12+
13+
# macOS
14+
.DS_Store

.prettierignore

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

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"bracketSpacing": false,
9+
"arrowParens": "avoid"
10+
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]

0 commit comments

Comments
 (0)