diff --git a/.eslintignore b/.eslintignore
index a11511b7c..9d8891de0 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,2 +1,3 @@
dist/**
.github/**
+docs/Setup.md
diff --git a/.eslintrc.json b/.eslintrc.json
index fe19a4534..ef7c2d3c7 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -13,8 +13,8 @@
},
"sourceType": "module"
},
- "extends": ["eslint:recommended", "plugin:jsdoc/recommended", "plugin:markdown/recommended", "plugin:prettier/recommended"],
- "plugins": ["html", "jest", "jsdoc", "prettier"],
+ "extends": ["eslint:recommended", "plugin:jsdoc/recommended", "plugin:json/recommended", "plugin:markdown/recommended", "plugin:prettier/recommended"],
+ "plugins": ["html", "jest", "jsdoc", "json", "prettier"],
"rules": {
"no-prototype-builtins": "off",
"no-unused-vars": "off",
@@ -25,6 +25,7 @@
"jsdoc/newline-after-description": "off",
"jsdoc/tag-lines": "off",
"cypress/no-async-tests": "off",
+ "json/*": ["error", "allowComments"],
"no-empty": ["error", { "allowEmptyCatch": true }]
},
"overrides": [
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..176a458f9
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text=auto
diff --git a/.lintstagedrc.json b/.lintstagedrc.json
index f42adf44f..555f78ddb 100644
--- a/.lintstagedrc.json
+++ b/.lintstagedrc.json
@@ -1,5 +1,5 @@
{
- "*.{js,html,md}": [
+ "*.{js,json,html,md}": [
"yarn lint:fix"
]
}
\ No newline at end of file
diff --git a/docs/classDiagram.md b/docs/classDiagram.md
index ba5391709..4877b10ab 100644
--- a/docs/classDiagram.md
+++ b/docs/classDiagram.md
@@ -402,10 +402,8 @@ click Shape2 call callbackFunction() "This is a tooltip for a callback"
```html
```
```mermaid
@@ -454,15 +452,8 @@ Beginners tip, a full example using interactive links in an html context: