-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
3,698 additions
and
3,638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,90 @@ | ||
/*eslint-env node*/ | ||
/*eslint no-console:0*/ | ||
"use strict"; | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: "eslint:recommended", | ||
rules: { | ||
"valid-jsdoc": ["warn", { requireReturn: false }], | ||
"accessor-pairs": "warn", | ||
"array-callback-return": "warn", | ||
"block-scoped-var": "warn", | ||
complexity: ["warn", { max: 25 }], | ||
"consistent-return": "warn", | ||
"default-case": "warn", | ||
"dot-notation": "warn", | ||
eqeqeq: ["warn", "allow-null"], | ||
"guard-for-in": "warn", | ||
"no-alert": "warn", | ||
"no-caller": "error", | ||
"no-div-regex": "warn", | ||
"no-else-return": "warn", | ||
"no-empty-function": "warn", | ||
"no-eval": "error", | ||
"no-extend-native": "warn", | ||
"no-extra-bind": "warn", | ||
"no-extra-label": "warn", | ||
"no-floating-decimal": "warn", | ||
"no-implicit-coercion": "warn", | ||
"no-implicit-globals": "warn", | ||
"no-implied-eval": "error", | ||
"no-iterator": "error", | ||
"no-labels": "warn", | ||
"no-lone-blocks": "warn", | ||
"no-loop-func": "error", | ||
"no-magic-numbers": ["warn", { ignore: [-1, 0, 1] }], | ||
"no-multi-str": "warn", | ||
"no-native-reassign": "error", | ||
"no-new": "warn", | ||
"no-new-func": "error", | ||
"no-new-wrappers": "warn", | ||
"no-octal-escape": "error", | ||
"no-proto": "warn", | ||
"no-return-assign": "error", | ||
"no-script-url": "warn", | ||
"no-self-compare": "error", | ||
"no-sequences": "warn", | ||
"no-throw-literal": "warn", | ||
"no-unmodified-loop-condition": "warn", | ||
"no-unused-expressions": "error", | ||
"no-unsafe-finally": "error", | ||
"no-useless-call": "warn", | ||
"no-useless-computed-key": "warn", | ||
"no-useless-concat": "warn", | ||
"no-warning-comments": [ | ||
"warn", | ||
{ terms: ["todo", "bug"], location: "start" } | ||
], | ||
"no-with": "error", | ||
radix: "warn", | ||
yoda: "warn", | ||
strict: ["warn", "safe"], | ||
"no-catch-shadow": "error", | ||
"no-restricted-globals": ["warn", "event"], | ||
"no-shadow": "warn", | ||
"no-shadow-restricted-names": "error", | ||
"no-undef": "error", | ||
"no-use-before-define": "error", | ||
"no-useless-constructor": "warn", | ||
"no-var": "warn", | ||
"object-shorthand": "warn", | ||
"prefer-arrow-callback": "warn", | ||
"prefer-const": "warn", | ||
"prefer-rest-params": "warn", | ||
"prefer-spread": "warn", | ||
"prefer-template": "warn", | ||
"require-yield": "warn", | ||
"no-duplicate-imports": "warn", | ||
"max-statements-per-line": ["warn", { max: 2 }], | ||
"no-useless-escape": "warn" | ||
}, | ||
env: { | ||
node: true, | ||
es6: true | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: "module" | ||
}, | ||
root: true | ||
extends: 'eslint:recommended', | ||
rules: { | ||
'valid-jsdoc': ['warn', { requireReturn: false }], | ||
'accessor-pairs': 'warn', | ||
'array-callback-return': 'warn', | ||
'block-scoped-var': 'warn', | ||
complexity: ['warn', { max: 25 }], | ||
'consistent-return': 'warn', | ||
'default-case': 'warn', | ||
'dot-notation': 'warn', | ||
eqeqeq: ['warn', 'allow-null'], | ||
'guard-for-in': 'warn', | ||
'no-alert': 'warn', | ||
'no-caller': 'error', | ||
'no-div-regex': 'warn', | ||
'no-else-return': 'warn', | ||
'no-empty-function': 'warn', | ||
'no-eval': 'error', | ||
'no-extend-native': 'warn', | ||
'no-extra-bind': 'warn', | ||
'no-extra-label': 'warn', | ||
'no-floating-decimal': 'warn', | ||
'no-implicit-coercion': 'warn', | ||
'no-implicit-globals': 'warn', | ||
'no-implied-eval': 'error', | ||
'no-iterator': 'error', | ||
'no-labels': 'warn', | ||
'no-lone-blocks': 'warn', | ||
'no-loop-func': 'error', | ||
'no-magic-numbers': ['warn', { ignore: [-1, 0, 1] }], | ||
'no-multi-str': 'warn', | ||
'no-native-reassign': 'error', | ||
'no-new': 'warn', | ||
'no-new-func': 'error', | ||
'no-new-wrappers': 'warn', | ||
'no-octal-escape': 'error', | ||
'no-proto': 'warn', | ||
'no-return-assign': 'error', | ||
'no-script-url': 'warn', | ||
'no-self-compare': 'error', | ||
'no-sequences': 'warn', | ||
'no-throw-literal': 'warn', | ||
'no-unmodified-loop-condition': 'warn', | ||
'no-unused-expressions': 'error', | ||
'no-unsafe-finally': 'error', | ||
'no-useless-call': 'warn', | ||
'no-useless-computed-key': 'warn', | ||
'no-useless-concat': 'warn', | ||
'no-warning-comments': [ | ||
'warn', | ||
{ terms: ['todo', 'bug'], location: 'start' }, | ||
], | ||
'no-with': 'error', | ||
radix: 'warn', | ||
yoda: 'warn', | ||
strict: ['warn', 'safe'], | ||
'no-catch-shadow': 'error', | ||
'no-restricted-globals': ['warn', 'event'], | ||
'no-shadow': 'warn', | ||
'no-shadow-restricted-names': 'error', | ||
'no-undef': 'error', | ||
'no-use-before-define': 'error', | ||
'no-useless-constructor': 'warn', | ||
'no-var': 'warn', | ||
'object-shorthand': 'warn', | ||
'prefer-arrow-callback': 'warn', | ||
'prefer-const': 'warn', | ||
'prefer-rest-params': 'warn', | ||
'prefer-spread': 'warn', | ||
'prefer-template': 'warn', | ||
'require-yield': 'warn', | ||
'no-duplicate-imports': 'warn', | ||
'max-statements-per-line': ['warn', { max: 2 }], | ||
'no-useless-escape': 'warn', | ||
}, | ||
env: { | ||
node: true, | ||
es6: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
}, | ||
root: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "07:00" | ||
timezone: "America/Chicago" | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "07:00" | ||
timezone: "America/Chicago" | ||
{ | ||
"version": 2, | ||
"updates": [ | ||
{ | ||
"package-ecosystem": "npm", | ||
"directory": "/", | ||
"schedule": { | ||
"interval": "daily", | ||
"time": "07:00", | ||
"timezone": "America/Chicago" | ||
} | ||
}, | ||
{ | ||
"package-ecosystem": "github-actions", | ||
"directory": "/", | ||
"schedule": { | ||
"interval": "daily", | ||
"time": "07:00", | ||
"timezone": "America/Chicago" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x, 18.x] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test | ||
{ | ||
"name": "Node.js CI", | ||
"on": { | ||
"push": { "branches": ["master"] }, | ||
"pull_request": { "branches": ["master"] } | ||
}, | ||
"jobs": { | ||
"build": { | ||
"runs-on": "ubuntu-latest", | ||
"strategy": { | ||
"matrix": { "node-version": ["14.x", "16.x", "18.x"] } | ||
}, | ||
"steps": [ | ||
{ "uses": "actions/[email protected]" }, | ||
{ | ||
"name": "Use Node.js ${{ matrix.node-version }}", | ||
"uses": "actions/[email protected]", | ||
"with": { | ||
"node-version": "${{ matrix.node-version }}", | ||
"cache": "npm" | ||
} | ||
}, | ||
{ "run": "npm ci" }, | ||
{ "run": "npm run build --if-present" }, | ||
{ "run": "npm test" } | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,41 @@ | ||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | ||
|
||
name: Node.js Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
- run: npm ci | ||
- run: npm test | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
{ | ||
"name": "Node.js Package", | ||
"on": { "release": { "types": ["created"] } }, | ||
"jobs": { | ||
"build": { | ||
"runs-on": "ubuntu-latest", | ||
"steps": [ | ||
{ "uses": "actions/[email protected]" }, | ||
{ | ||
"uses": "actions/[email protected]", | ||
"with": { | ||
"node-version": 18 | ||
} | ||
}, | ||
{ "run": "npm ci" }, | ||
{ "run": "npm test" } | ||
] | ||
}, | ||
"publish-npm": { | ||
"needs": "build", | ||
"runs-on": "ubuntu-latest", | ||
"steps": [ | ||
{ "uses": "actions/[email protected]" }, | ||
{ | ||
"uses": "actions/[email protected]", | ||
"with": { | ||
"node-version": 18, | ||
"registry-url": "https://registry.npmjs.org/" | ||
} | ||
}, | ||
{ "run": "npm ci" }, | ||
{ | ||
"run": "npm publish", | ||
"env": { | ||
"NODE_AUTH_TOKEN": "${{secrets.npm_token}}" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.