-
Notifications
You must be signed in to change notification settings - Fork 8
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
11 changed files
with
201 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
version: 2.1 | ||
orbs: | ||
snyk: snyk/[email protected] | ||
jobs: | ||
build-test-monitor: | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- checkout | ||
- run: npm install semantic-release @semantic-release/exec pkg --save-dev | ||
- run: npm install | ||
- run: npm test | ||
- snyk/scan: | ||
fail-on-issues: true | ||
monitor-on-build: true | ||
token-variable: SNYK_TOKEN | ||
- run: npx semantic-release | ||
build-test: | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- checkout | ||
- run: npm install | ||
- run: npm test | ||
- snyk/scan: | ||
fail-on-issues: true | ||
monitor-on-build: false | ||
token-variable: SNYK_TOKEN | ||
- run: npx tsc | ||
build-test-from-fork: | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- checkout | ||
- run: npm install | ||
- run: npm test | ||
- run: npx tsc | ||
workflows: | ||
version: 2 | ||
nightly: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
jobs: | ||
- build-test-monitor: | ||
context: SNYK | ||
|
||
build-test-monitor: | ||
jobs: | ||
- build-test-monitor: | ||
context: SNYK | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
build-test: | ||
jobs: | ||
- build-test: | ||
context: SNYK | ||
filters: | ||
branches: | ||
ignore: | ||
- master | ||
- /pull\/[0-9]+/ | ||
- build-test-from-fork: | ||
filters: | ||
branches: | ||
only: | ||
- /pull\/[0-9]+/ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/node_modules/ |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"prettier/@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"error", | ||
{ | ||
"allowExpressions": true, | ||
"allowTypedFunctionExpressions": true | ||
} | ||
], | ||
"no-var": "error", | ||
"prefer-arrow-callback": "error", | ||
"prefer-const": "error" | ||
} | ||
} |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Snyk Tech Services will be required for a review on every PR | ||
* @snyk-tech-services/snyk-tech-services | ||
|
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Contributing | ||
|
||
## Contributor Agreement | ||
A pull-request will only be considered for merging into the upstream codebase after you have signed our [contributor agreement](Contributor-Agreement.md), assigning us the rights to the contributed code and granting you a license to use it in return. If you submit a pull request, you will be prompted to review and sign the agreement with one click (we use [CLA assistant](https://cla-assistant.io/)). | ||
|
||
## Commit messages | ||
|
||
Commit messages must follow the [Angular-style](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format) commit format (but excluding the scope). | ||
|
||
i.e: | ||
|
||
```text | ||
fix: minified scripts being removed | ||
Also includes tests | ||
``` | ||
|
||
This will allow for the automatic changelog to generate correctly. | ||
|
||
### Commit types | ||
|
||
Must be one of the following: | ||
|
||
* **feat**: A new feature | ||
* **fix**: A bug fix | ||
* **docs**: Documentation only changes | ||
* **test**: Adding missing tests | ||
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation generation | ||
* **refactor**: A code change that neither fixes a bug nor adds a feature | ||
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | ||
* **perf**: A code change that improves performance | ||
|
||
To release a major you need to add `BREAKING CHANGE: ` to the start of the body and the detail of the breaking change. | ||
|
||
## Code standards | ||
|
||
Ensure that your code adheres to the included lint config by running `npm run lint`. | ||
|
||
## Sending pull requests | ||
|
||
- new command line options are generally discouraged unless there's a *really* good reason | ||
- add tests for newly added code (and try to mirror directory and file structure if possible) | ||
- spell check | ||
- PRs will not be code reviewed unless all tests are passing | ||
|
||
*Important:* when fixing a bug, please commit a **failing test** first so that Travis CI (or I can) can show the code failing. Once that commit is in place, then commit the bug fix, so that we can test *before* and *after*. | ||
|
||
Remember that you're developing for multiple platforms and versions of node, so if the tests pass on your Mac or Linux or Windows machine, it *may* not pass elsewhere. |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- [ ] Tests written and linted [ℹ︎](https://github.com/snyk-tech-services/general/wiki/Tests) | ||
- [ ] Documentation written in Wiki/[README](../README.md) | ||
- [ ] Commit history is tidy & follows Contributing guidelines [ℹ︎](./CONTRIBUTING.md#commit-messages) | ||
|
||
|
||
### What this does | ||
|
||
_Explain why this PR exists_ | ||
|
||
### Notes for the reviewer | ||
|
||
_Instructions on how to run this locally, background context, what to review, questions…_ | ||
|
||
### More information | ||
|
||
- [Link to documentation]() | ||
|
||
### Screenshots | ||
|
||
_Visuals that may help the reviewer_ |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_modules/ | ||
npm-debug.log | ||
.npmrc | ||
# output | ||
dist | ||
.DS_Store | ||
*.log | ||
package-lock.json | ||
yarn.lock | ||
.eslintcache |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
12 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/node_modules/ |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"arrowParens": "always", | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"htmlWhitespaceSensitivity": "ignore" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.13.5 | ||
ignore: {} | ||
# patches apply the minimum changes required to fix a vulnerability | ||
patch: | ||
SNYK-JS-LODASH-450202: | ||
- lodash: | ||
patched: '2019-07-05T10:44:37.780Z' |