Skip to content

Commit 7aedb2c

Browse files
committed
merged upstream
2 parents e2e6596 + be01c4c commit 7aedb2c

74 files changed

Lines changed: 2481 additions & 2122 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const jsConfig = require("@ajv-validator/config/.eslintrc_js")
2+
const tsConfig = require("@ajv-validator/config/.eslintrc")
3+
4+
module.exports = {
5+
env: {
6+
es6: true,
7+
node: true,
8+
},
9+
overrides: [
10+
{
11+
...jsConfig,
12+
rules: {
13+
...jsConfig.rules,
14+
"no-console": "off",
15+
"no-invalid-this": "off",
16+
},
17+
},
18+
{
19+
...tsConfig,
20+
files: ["*.ts"],
21+
rules: {
22+
...tsConfig.rules,
23+
complexity: ["error", 15],
24+
"no-console": "off",
25+
"@typescript-eslint/no-explicit-any": "off",
26+
"@typescript-eslint/no-unsafe-assignment": "off",
27+
"@typescript-eslint/no-unsafe-call": "off",
28+
"@typescript-eslint/no-unsafe-member-access": "off",
29+
"@typescript-eslint/no-unsafe-return": "off",
30+
"@typescript-eslint/no-var-requires": "off",
31+
"@typescript-eslint/restrict-template-expressions": "off",
32+
},
33+
},
34+
],
35+
}

.eslintrc.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [10.x, 12.x, 14.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm install
24+
- run: npm test
25+
- name: Coveralls
26+
uses: coverallsapp/github-action@master
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 14
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm install
17+
- run: npm test
18+
- name: Publish beta version to npm
19+
if: "github.event.release.prerelease"
20+
run: npm publish --tag beta
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
- name: Publish to npm
24+
if: "!github.event.release.prerelease"
25+
run: npm publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ node_modules
1616

1717
.DS_Store
1818
package-lock.json
19+
dist

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage
2+
dist
3+
.nyc_output

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

0 commit comments

Comments
 (0)