Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanups #6

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .eslintrc.cjs

This file was deleted.

8 changes: 7 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
env:
browser: true
es2020: true
node: true
extends:
- eslint:recommended
- "plugin:json/recommended"
- "plugin:@typescript-eslint/recommended"
plugins:
- json
ignorePatterns:
- node_modules
- dist,
- cache
- node_modules
root: true
parser: "@typescript-eslint/parser"
rules:
Expand Down
14 changes: 0 additions & 14 deletions .hadolint.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# @idrinth/api-bench/mindmap
# @idrinth-api-bench/mindmap

This mindmap is hosted [here](https://mindmap.idrinth-api-ben.ch).

To add to or edit the mindmap, have a look at the data.yml file. It is made up
of nodes - the single elements - that all start from the root node.
To add to or edit the mindmap, have a look at the /src/data.yml file.
It is made up of nodes - the single elements - that all start from the
root node.

Node can contain five elements: text, description, URL, image and children.
Text is required to actually be able to display the node, while all other
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
const FIRST = 0;
const SECOND = 1;
const cwd = process.cwd();
const data = parse(readFileSync(`${ cwd }/data.yml`, 'utf8',),);
const data = parse(readFileSync(`${ cwd }/src/data.yml`, 'utf8',),);
const attributes = 'rel=noreferrer target=_blank';
// eslint-disable-next-line complexity
const convert = (node,) => {
Expand Down
2 changes: 1 addition & 1 deletion tools/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const check = (prefix, index, node,) => {
};

try {
const data = parse(readFileSync(process.cwd() + '/data.yml', 'utf8',),);
const data = parse(readFileSync(process.cwd() + '/src/data.yml', 'utf8',),);
if (Object.keys(data,).length !== TOP_LEVEL_PROPERTY_COUNT) {
console.error(
'You must have three elements at top level: text, $schema and children',
Expand Down
Loading