Skip to content

Commit

Permalink
chore: address list
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Apr 2, 2024
1 parent 7c27dce commit f479288
Show file tree
Hide file tree
Showing 7 changed files with 238 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/lint-schemas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Lint schemas

on: pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Set up pnpm
uses: pnpm/action-setup@v3

- run: pnpm lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# lists
# Lists
4 changes: 4 additions & 0 deletions address.darklist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "0.1",
"darklist": []
}
25 changes: 25 additions & 0 deletions address.darklist.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["version", "darklist"],
"properties": {
"version": {
"type": "string"
},
"darklist": {
"type": "array",
"items": {
"type": "object",
"required": ["address", "comment"],
"properties": {
"address": {
"type": "string"
},
"comment": {
"type": "string"
}
}
}
}
}
}
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "lists",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "npx ajv-cli validate -s address.darklist.schema.json -d address.darklist.json"
},
"keywords": [],
"author": "",
"license": "ISC"
}
176 changes: 176 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f479288

Please sign in to comment.