mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 10:36:43 +02:00
style: fix @cspell/eslint warnings
Ignores some names of contributors, and adjusts some capitilization spacing to fix all cspell warnings.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @cspell/spellchecker */
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const { defineConfig } = require('cypress');
|
const { defineConfig } = require('cypress');
|
||||||
|
|
||||||
|
@@ -52,7 +52,13 @@
|
|||||||
"Ashish",
|
"Ashish",
|
||||||
"bbox",
|
"bbox",
|
||||||
"techn",
|
"techn",
|
||||||
"cytoscape"
|
"cytoscape",
|
||||||
|
"Lucida",
|
||||||
|
"Bilkent",
|
||||||
|
"cpettitt",
|
||||||
|
"antiscript",
|
||||||
|
"ts-nocheck",
|
||||||
|
"setupGraphViewbox"
|
||||||
],
|
],
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
@@ -21,7 +21,7 @@ describe('Git Graph diagram', () => {
|
|||||||
// // Call Open on eyes to initialize a test session
|
// // Call Open on eyes to initialize a test session
|
||||||
// cy.eyesOpen({
|
// cy.eyesOpen({
|
||||||
// appName: 'Demo App',
|
// appName: 'Demo App',
|
||||||
// testName: 'Ultrafast grid demo',
|
// testName: 'UltraFast grid demo',
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// // check the login page with fluent api, see more info here
|
// // check the login page with fluent api, see more info here
|
||||||
|
@@ -119,13 +119,11 @@ const config: Partial<MermaidConfig> = {
|
|||||||
/**
|
/**
|
||||||
* This option controls if the generated ids of nodes in the SVG are generated randomly or based
|
* This option controls if the generated ids of nodes in the SVG are generated randomly or based
|
||||||
* on a seed. If set to false, the IDs are generated based on the current date and thus are not
|
* on a seed. If set to false, the IDs are generated based on the current date and thus are not
|
||||||
// eslint-disable-next-line @cspell/spellchecker
|
* deterministic. This is the default behavior.
|
||||||
* deterministic. This is the default behaviour.
|
|
||||||
*
|
*
|
||||||
* **Notes**:
|
* **Notes**:
|
||||||
*
|
*
|
||||||
// eslint-disable-next-line @cspell/spellchecker
|
* This matters if your files are checked into source control e.g. git and should not change unless
|
||||||
* This matters if your files are checked into sourcecontrol e.g. git and should not change unless
|
|
||||||
* content is changed.
|
* content is changed.
|
||||||
*
|
*
|
||||||
* Default value: false
|
* Default value: false
|
||||||
@@ -636,8 +634,8 @@ const config: Partial<MermaidConfig> = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* | Parameter | Description | Type | Required | Values |
|
* | Parameter | Description | Type | Required | Values |
|
||||||
* | ---------- | --------------------------- | ---- | -------- | ---------------- |
|
* | ---------- | ---------------------------- | ---- | -------- | ---------------- |
|
||||||
* | axisFormat | Datetime format of the axis | 3 | Required | Date in yy-mm-dd |
|
* | axisFormat | Date/time format of the axis | 3 | Required | Date in yy-mm-dd |
|
||||||
*
|
*
|
||||||
* **Notes:**
|
* **Notes:**
|
||||||
*
|
*
|
||||||
|
@@ -130,7 +130,7 @@ Note right of Bob: Bob thinks
|
|||||||
Bob-->Alice: I am good thanks!`;
|
Bob-->Alice: I am good thanks!`;
|
||||||
|
|
||||||
mermaidAPI.parse(str);
|
mermaidAPI.parse(str);
|
||||||
diagram.renderer.draw(str, 'tst', '1.2.3', diagram); // needs to be rendered for the correct value of visibility autonumbers
|
diagram.renderer.draw(str, 'tst', '1.2.3', diagram); // needs to be rendered for the correct value of visibility auto numbers
|
||||||
expect(diagram.db.showSequenceNumbers()).toBe(false);
|
expect(diagram.db.showSequenceNumbers()).toBe(false);
|
||||||
});
|
});
|
||||||
it('should show sequence numbers when autonumber is enabled', function () {
|
it('should show sequence numbers when autonumber is enabled', function () {
|
||||||
@@ -142,7 +142,7 @@ Note right of Bob: Bob thinks
|
|||||||
Bob-->Alice: I am good thanks!`;
|
Bob-->Alice: I am good thanks!`;
|
||||||
|
|
||||||
mermaidAPI.parse(str);
|
mermaidAPI.parse(str);
|
||||||
diagram.renderer.draw(str, 'tst', '1.2.3', diagram); // needs to be rendered for the correct value of visibility autonumbers
|
diagram.renderer.draw(str, 'tst', '1.2.3', diagram); // needs to be rendered for the correct value of visibility auto numbers
|
||||||
expect(diagram.db.showSequenceNumbers()).toBe(true);
|
expect(diagram.db.showSequenceNumbers()).toBe(true);
|
||||||
});
|
});
|
||||||
it('should handle a sequenceDiagram definition with a title:', function () {
|
it('should handle a sequenceDiagram definition with a title:', function () {
|
||||||
@@ -1871,7 +1871,7 @@ Note right of Bob: Bob thinks
|
|||||||
Bob-->Alice: I am good thanks!`;
|
Bob-->Alice: I am good thanks!`;
|
||||||
|
|
||||||
mermaidAPI.parse(str1, diagram);
|
mermaidAPI.parse(str1, diagram);
|
||||||
diagram.renderer.draw(str1, 'tst', '1.2.3', diagram); // needs to be rendered for the correct value of visibility autonumbers
|
diagram.renderer.draw(str1, 'tst', '1.2.3', diagram); // needs to be rendered for the correct value of visibility auto numbers
|
||||||
expect(diagram.db.showSequenceNumbers()).toBe(true);
|
expect(diagram.db.showSequenceNumbers()).toBe(true);
|
||||||
|
|
||||||
const str2 = `
|
const str2 = `
|
||||||
|
Reference in New Issue
Block a user