Skip to content

Commit 202949a

Browse files
New: Initial plugin draft
1 parent cc6a1ab commit 202949a

File tree

16 files changed

+8204
-0
lines changed

16 files changed

+8204
-0
lines changed

.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
"plugins": [
3+
"evelyn",
4+
],
5+
6+
"extends": [
7+
"plugin:evelyn/default",
8+
"plugin:evelyn/node",
9+
"plugin:evelyn/source",
10+
],
11+
12+
"rules": {
13+
"unicorn/prefer-module": "off", // Semantic release isn't ready for ESM
14+
},
15+
};

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
commit-message:
8+
prefix: "Upgrade(npm):"
9+
prefix-development: "Upgrade(dev):"
10+
reviewers:
11+
- "evelynhathaway"
12+
assignees:
13+
- "evelynhathaway"

.github/icon.png

15.3 KB
Loading

.github/workflows/nodejs.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: nodejs
2+
3+
on: push
4+
5+
jobs:
6+
testing:
7+
runs-on: ubuntu-latest
8+
env:
9+
CI: true
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js 16.x
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: 16.x
16+
17+
# From: https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
18+
- name: Cache node modules
19+
uses: actions/cache@v2
20+
env:
21+
cache-name: cache-node-modules
22+
with:
23+
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
24+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25+
restore-keys: |
26+
${{ runner.os }}-build-${{ env.cache-name }}-
27+
${{ runner.os }}-build-
28+
${{ runner.os }}-
29+
30+
- name: Install Dependencies
31+
run: npm ci
32+
33+
- name: Lint
34+
run: npm run lint
35+
36+
release:
37+
needs: testing
38+
runs-on: ubuntu-latest
39+
env:
40+
CI: true
41+
steps:
42+
- uses: actions/checkout@v2
43+
- name: Use Node.js 16.x
44+
uses: actions/setup-node@v2
45+
with:
46+
node-version: 16.x
47+
48+
# From: https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
49+
- name: Cache node modules
50+
uses: actions/cache@v2
51+
env:
52+
cache-name: cache-node-modules
53+
with:
54+
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
55+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
56+
restore-keys: |
57+
${{ runner.os }}-build-${{ env.cache-name }}-
58+
${{ runner.os }}-build-
59+
${{ runner.os }}-
60+
61+
- name: Install Dependencies
62+
run: npm ci
63+
64+
- name: Release
65+
run: npx semantic-release
66+
env:
67+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
68+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Node
2+
node_modules/
3+
4+
# IDE
5+
.idea/
6+
.vscode/*
7+
!.vscode/settings.json
8+
!.vscode/tasks.json
9+
!.vscode/launch.json
10+
!.vscode/extensions.json
11+
12+
# Built
13+
/dist
14+
15+
# Testing
16+
/coverage
17+
18+
# Other
19+
.cache
20+
/*.log
21+
*.lock
22+
.DS_Store

.husky/.gitignore

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

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.markdownlint.jsonc

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"heading-increment": true,
3+
"no-hard-tabs": false,
4+
"first-line-heading": false,
5+
"heading-style": {
6+
"style": "atx"
7+
},
8+
"ul-style": {
9+
"style": "dash"
10+
},
11+
"list-indent": true,
12+
"ul-indent": {
13+
"indent": 4,
14+
"start_indented": false
15+
},
16+
"no-trailing-spaces": {
17+
"strict": true,
18+
"br_spaces": 2
19+
},
20+
"no-reversed-links": true,
21+
"no-inline-html": false,
22+
"no-emphasis-as-heading": false,
23+
"no-multiple-blanks": {
24+
"maximum": 2
25+
},
26+
"line-length": false,
27+
"commands-show-output": true,
28+
"no-missing-space-atx": true,
29+
"no-multiple-space-atx": true,
30+
"blanks-around-headings": true,
31+
"heading-start-left": true,
32+
"no-duplicate-heading": {
33+
"siblings_only": true
34+
},
35+
"single-title": true,
36+
"no-trailing-punctuation": true,
37+
"no-multiple-space-blockquote": true,
38+
"no-blanks-blockquote": true,
39+
"ol-prefix": {
40+
"style": "one_or_ordered"
41+
},
42+
"list-marker-space": true,
43+
"blanks-around-fences": {
44+
"list_items": false
45+
},
46+
"blanks-around-lists": true,
47+
"no-bare-urls": true,
48+
"hr-style": {
49+
"style": "---"
50+
},
51+
"no-space-in-emphasis": true,
52+
"no-space-in-code": true,
53+
"no-space-in-links": true,
54+
"fenced-code-language": true,
55+
"no-empty-links": true,
56+
"proper-names": {
57+
"names": [
58+
"JavaScript",
59+
"TypeScript",
60+
"npm",
61+
"Node.js",
62+
"GitHub"
63+
]
64+
},
65+
"no-alt-text": true,
66+
"code-block-style": {
67+
"style": "fenced"
68+
},
69+
"single-trailing-newline": true,
70+
"code-fence-style": {
71+
"style": "backtick"
72+
}
73+
}

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"streetsidesoftware.code-spell-checker",
4+
"dbaeumer.vscode-eslint",
5+
"davidanson.vscode-markdownlint",
6+
"pflannery.vscode-versionlens",
7+
"wallabyjs.wallaby-vscode",
8+
"redhat.vscode-yaml",
9+
],
10+
}

0 commit comments

Comments
 (0)