Skip to content

Commit 2c598c7

Browse files
committed
chore: initialise from vidavidorra/[email protected]
Vidavidorra repo template release/tag: https://github.com/vidavidorra/repo-template/releases/tag/v1.0.16.
1 parent b6ddfe9 commit 2c598c7

20 files changed

+10751
-0
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.git/
2+
.vscode
3+
build/
4+
dist/
5+
coverage/
6+
LICENSE.md
7+
CHANGELOG.md
8+
modules/
9+
node_modules/

.eslintrc.js

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const defaultConfig = {
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:json/recommended',
5+
'plugin:prettier/recommended',
6+
],
7+
plugins: [],
8+
parserOptions: {
9+
sourceType: 'module',
10+
},
11+
env: {
12+
es2020: true,
13+
node: true,
14+
},
15+
rules: {
16+
'prettier/prettier': 'error',
17+
'sort-imports': 'error',
18+
},
19+
};
20+
21+
const config = defaultConfig;
22+
config.overrides = [
23+
{
24+
files: ['**/*.ts', '**/*.tsx'],
25+
/**
26+
* The Prettier recommended configuration must remain the configuration that
27+
* is extended last. Therefore, this overrides `extends` completely.
28+
*/
29+
extends: [
30+
'eslint:recommended',
31+
'plugin:@typescript-eslint/recommended',
32+
'prettier/@typescript-eslint',
33+
'plugin:prettier/recommended',
34+
],
35+
parser: '@typescript-eslint/parser',
36+
plugins: defaultConfig.plugins.concat(['@typescript-eslint']),
37+
},
38+
];
39+
40+
module.exports = config;

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/renovate.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"extends": [
3+
"config:base",
4+
":masterIssue",
5+
":pinDependencies",
6+
":timezone(Europe/Amsterdam)"
7+
],
8+
"ignorePresets": [":prHourlyLimit2"],
9+
"lockFileMaintenance": {
10+
"enabled": true,
11+
"masterIssueApproval": true
12+
},
13+
"major": {
14+
"stabilityDays": 3
15+
},
16+
"packageRules": [
17+
{
18+
"description": "Auto-merge devDependencies",
19+
"depTypeList": ["devDependencies"],
20+
"updateTypes": ["pin", "digest", "patch", "minor"],
21+
"automerge": true
22+
}
23+
],
24+
"prCreation": "not-pending"
25+
}

.github/workflows/build.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- 'renovate/**'
7+
- 'github-renovate/**'
8+
pull_request:
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 5
13+
steps:
14+
- name: Checkout
15+
uses: actions/[email protected]
16+
- name: Setup node
17+
uses: actions/[email protected]
18+
with:
19+
node-version: 12
20+
- name: Install project
21+
run: npm ci --ignore-scripts
22+
- name: Lint
23+
run: npm run lint-es
24+
- name: Check formatting
25+
run: npm run format:check
26+
release:
27+
needs: lint
28+
runs-on: ubuntu-latest
29+
# GitHub API requests can easy take a couple of seconds and the release can
30+
# make lots of API requests when a release has a lot of commits. If every
31+
# requests takes five seconds, which is on the high side for a request, this
32+
# could perform 180 requests. This should be enough for most use cases.
33+
timeout-minutes: 15
34+
steps:
35+
- name: Checkout
36+
uses: actions/[email protected]
37+
with:
38+
# Make sure the release step uses its own credentials.
39+
persist-credentials: false
40+
- name: Setup node
41+
uses: actions/[email protected]
42+
with:
43+
node-version: 12
44+
- name: Install project
45+
run: npm ci --ignore-scripts
46+
- name: Release
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
49+
GIT_AUTHOR_NAME: vidavidorra-release
50+
GIT_AUTHOR_EMAIL: [email protected]
51+
GIT_COMMITTER_NAME: vidavidorra-release
52+
GIT_COMMITTER_EMAIL: [email protected]
53+
run: npx --no-install semantic-release
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint commit messages
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- 'renovate/**'
7+
- 'github-renovate/**'
8+
pull_request:
9+
jobs:
10+
commitlint:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 5
13+
steps:
14+
- name: Checkout
15+
uses: actions/[email protected]
16+
with:
17+
fetch-depth: 0
18+
- name: Lint commit messages
19+
uses: wagoid/[email protected]
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)