Skip to content

Commit

Permalink
Meta: Initial commit.
Browse files Browse the repository at this point in the history
Pretty much just a boilerplate at this point.
Now let's get this up to speed. :^)
  • Loading branch information
filiphsps authored Aug 30, 2023
0 parents commit 55bae85
Show file tree
Hide file tree
Showing 20 changed files with 7,836 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .devcontainer /devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "latest"
},
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"installOhMyZshConfig": true,
"upgradePackages": true,
"username": "automatic",
"userUid": "automatic",
"userGid": "automatic"
}
},
"customizations": {
"vscode": {
"extensions": [
"amatiasq.sort-imports",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"medo64.render-crlf"
]
}
}
}
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": ["prettier"],
"rules": {
"consistent-return": "error",
"no-mixed-operators": 0,
"no-useless-constructor": 0,
"standard/computed-property-even-spacing": 0,
"import/first": 0,
"no-unused-vars": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"indent": "off",
"semi": ["error", "always"],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
]
}
}
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Learn how to add code owners here:
# https://help.github.com/en/articles/about-code-owners


* filiph@nordcom.io
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and publish
on:
release:
types: [published, edited]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}

- name: Setup Node
uses: actions/setup-node@v3

- uses: JasonEtco/build-and-tag-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build and test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}

- name: Setup Node
uses: actions/setup-node@v3

- name: Install deps
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# dependencies
node_modules/

# codecov
coverage/

# next.js
.next/
next.lock/
out/
dist/
public/sitemap*.xml*
public/robots.txt*

# production
build/

# misc
.DS_Store
.swc

# debug
npm-debug.log*

# typescript
*.tsbuildinfo
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
5 changes: 5 additions & 0 deletions .renovaterc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"github>NordcomInc/renovate-config"
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Nordcom Group Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Lint Commit RegExp
![Build and test](https://github.com/NordcomInc/lint-commit-regexp/actions/workflows/test.yml/badge.svg?branch=master)
![GitHub commit activity](https://img.shields.io/github/commit-activity/t/NordcomGroupInc/lint-commit-regexp)
![GitHub contributors](https://img.shields.io/github/contributors/NordcomGroupInc/lint-commit-regexp)
[![License](https://img.shields.io/github/license/NordcomInc/lint-commit-regexp.svg)](https://github.com/NordcomInc/lint-commit-regexp/blob/master/LICENSE)

Leverage the power of RegExp to standardize and enforce code acceptable submission style.
> Inspired by [SerenityOS](https://github.com/SerenityOS/serenity)' `lintcommits.yml` GitHub Actions workflow initially developed by [@IdanHo](https://github.com/SerenityOS/serenity/commit/fd68e606e707e4c932c75f1840452ec1424e5754).

## Usage
25 changes: 25 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Security

Nordcom Group Inc. takes the security of its software very seriously. Although, due to our size and being such a new and novel company, we do not accept and cannot offer any form of liability (legal or otherwise) as per the included license unless otherwise expressly specified.

If you believe you have found a security flaw or vulnerability, please report it to us in the manner that is described below.

## Reporting Security Concerns and Issues

**Please, do not report or disclose a potential security vulnerability through a publicly accessible forum like GitHub issues.** 

Instead, report any suspected security vulnerabilities and/or issues to **[opensource@nordcom.io](mailto:opensource@nordcom.io)**.

After which, we may reach out and request more information to help us triage faster.

You will then either hear from one of us as soon as a fix has been deployed, if possible, or in the form of a public disclosure with a workaround.

## Questions

For any questions or need for clarification, feel free to reach out to us on
[opensource@nordcom.io](mailto:opensource@nordcom.io) or [X / (Twitter)](https://x.com/NordcomInc).

## Policy

Nordcom Group Inc. tries to the best of its ability to follow Microsoft's principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).

13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Lint Commit RegExp"
description: "Leverage the power of RegExp to standardize and enforce code submission style"
author: "Filiph Siitam Sandström <filiph@nordcom.io>"
branding:
icon: "git-pull-request"
color: "gray-dark"
runs:
using: "node20"
main: "dist/index.js"
inputs:
github-token:
description: "GitHub token to a 'machine user' to enable commenting on PRs"
required: false
9 changes: 9 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
}
};
Loading

0 comments on commit 55bae85

Please sign in to comment.