Skip to content

Commit 43532f0

Browse files
authored
cleanups (#6)
1 parent a26f289 commit 43532f0

File tree

8 files changed

+13
-33
lines changed

8 files changed

+13
-33
lines changed

.eslintrc.cjs

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

.eslintrc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
env:
2+
browser: true
3+
es2020: true
4+
node: true
15
extends:
26
- eslint:recommended
37
- "plugin:json/recommended"
48
- "plugin:@typescript-eslint/recommended"
59
plugins:
610
- json
711
ignorePatterns:
8-
- node_modules
12+
- dist,
13+
- cache
14+
- node_modules
915
root: true
1016
parser: "@typescript-eslint/parser"
1117
rules:

.hadolint.yaml

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

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# @idrinth/api-bench/mindmap
1+
# @idrinth-api-bench/mindmap
22

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

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

89
Node can contain five elements: text, description, URL, image and children.
910
Text is required to actually be able to display the node, while all other

data.yml renamed to src/data.yml

File renamed without changes.
File renamed without changes.

tools/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
const FIRST = 0;
2929
const SECOND = 1;
3030
const cwd = process.cwd();
31-
const data = parse(readFileSync(`${ cwd }/data.yml`, 'utf8',),);
31+
const data = parse(readFileSync(`${ cwd }/src/data.yml`, 'utf8',),);
3232
const attributes = 'rel=noreferrer target=_blank';
3333
// eslint-disable-next-line complexity
3434
const convert = (node,) => {

tools/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const check = (prefix, index, node,) => {
8787
};
8888

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

0 commit comments

Comments
 (0)