mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-22 09:46:42 +02:00
fix: eslint ignore, type definition
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
dist/**
|
|
||||||
.github/**
|
|
||||||
docs/Setup.md
|
|
||||||
cypress.config.js
|
|
||||||
cypress/plugins/index.js
|
|
||||||
coverage
|
|
||||||
*.json
|
|
||||||
node_modules
|
|
||||||
|
|
||||||
# autogenereated by langium-cli
|
|
||||||
generated/
|
|
1
.eslintignore
Symbolic link
1
.eslintignore
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
.gitignore
|
@@ -53,7 +53,7 @@ module.exports = {
|
|||||||
'@typescript-eslint/no-floating-promises': 'error',
|
'@typescript-eslint/no-floating-promises': 'error',
|
||||||
'@typescript-eslint/no-misused-promises': 'error',
|
'@typescript-eslint/no-misused-promises': 'error',
|
||||||
'@typescript-eslint/no-unused-vars': 'warn',
|
'@typescript-eslint/no-unused-vars': 'warn',
|
||||||
'@typescript-eslint/consistent-type-definitions': 'warn',
|
'@typescript-eslint/consistent-type-definitions': 'error',
|
||||||
'@typescript-eslint/ban-ts-comment': [
|
'@typescript-eslint/ban-ts-comment': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
@@ -25,8 +25,8 @@
|
|||||||
"dev:vite": "tsx .vite/server.ts",
|
"dev:vite": "tsx .vite/server.ts",
|
||||||
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite",
|
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite",
|
||||||
"release": "pnpm build",
|
"release": "pnpm build",
|
||||||
"lint": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content --ignore-path .gitignore . && pnpm lint:jison && prettier --cache --check .",
|
"lint": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content . && pnpm lint:jison && prettier --cache --check .",
|
||||||
"lint:fix": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content --fix --ignore-path .gitignore . && prettier --write . && tsx scripts/fixCSpell.ts",
|
"lint:fix": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content --fix . && prettier --write . && tsx scripts/fixCSpell.ts",
|
||||||
"lint:jison": "tsx ./scripts/jison/lint.mts",
|
"lint:jison": "tsx ./scripts/jison/lint.mts",
|
||||||
"contributors": "tsx scripts/updateContributors.ts",
|
"contributors": "tsx scripts/updateContributors.ts",
|
||||||
"cypress": "cypress run",
|
"cypress": "cypress run",
|
||||||
|
@@ -138,7 +138,7 @@ export interface ClassNote {
|
|||||||
text: string;
|
text: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ClassRelation = {
|
export interface ClassRelation {
|
||||||
id1: string;
|
id1: string;
|
||||||
id2: string;
|
id2: string;
|
||||||
relationTitle1: string;
|
relationTitle1: string;
|
||||||
@@ -152,7 +152,7 @@ export type ClassRelation = {
|
|||||||
type2: number;
|
type2: number;
|
||||||
lineType: number;
|
lineType: number;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
export interface NamespaceNode {
|
export interface NamespaceNode {
|
||||||
id: string;
|
id: string;
|
||||||
|
@@ -17,7 +17,10 @@ function textSanitizer(text: string) {
|
|||||||
return sanitizeText(text.trim(), config);
|
return sanitizeText(text.trim(), config);
|
||||||
}
|
}
|
||||||
|
|
||||||
type LexTextObj = { text: string; type: 'text' | 'markdown' };
|
interface LexTextObj {
|
||||||
|
text: string;
|
||||||
|
type: 'text' | 'markdown';
|
||||||
|
}
|
||||||
|
|
||||||
const quadrantBuilder = new QuadrantBuilder();
|
const quadrantBuilder = new QuadrantBuilder();
|
||||||
|
|
||||||
|
@@ -19,12 +19,12 @@ import { InfoTokenBuilder } from './tokenBuilder.js';
|
|||||||
/**
|
/**
|
||||||
* Declaration of `Info` services.
|
* Declaration of `Info` services.
|
||||||
*/
|
*/
|
||||||
type InfoAddedServices = {
|
interface InfoAddedServices {
|
||||||
parser: {
|
parser: {
|
||||||
TokenBuilder: InfoTokenBuilder;
|
TokenBuilder: InfoTokenBuilder;
|
||||||
ValueConverter: CommonValueConverter;
|
ValueConverter: CommonValueConverter;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Union of Langium default services and `Info` services.
|
* Union of Langium default services and `Info` services.
|
||||||
|
@@ -19,12 +19,12 @@ import { PacketTokenBuilder } from './tokenBuilder.js';
|
|||||||
/**
|
/**
|
||||||
* Declaration of `Packet` services.
|
* Declaration of `Packet` services.
|
||||||
*/
|
*/
|
||||||
type PacketAddedServices = {
|
interface PacketAddedServices {
|
||||||
parser: {
|
parser: {
|
||||||
TokenBuilder: PacketTokenBuilder;
|
TokenBuilder: PacketTokenBuilder;
|
||||||
ValueConverter: CommonValueConverter;
|
ValueConverter: CommonValueConverter;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Union of Langium default services and `Packet` services.
|
* Union of Langium default services and `Packet` services.
|
||||||
|
@@ -19,12 +19,12 @@ import { PieValueConverter } from './valueConverter.js';
|
|||||||
/**
|
/**
|
||||||
* Declaration of `Pie` services.
|
* Declaration of `Pie` services.
|
||||||
*/
|
*/
|
||||||
type PieAddedServices = {
|
interface PieAddedServices {
|
||||||
parser: {
|
parser: {
|
||||||
TokenBuilder: PieTokenBuilder;
|
TokenBuilder: PieTokenBuilder;
|
||||||
ValueConverter: PieValueConverter;
|
ValueConverter: PieValueConverter;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Union of Langium default services and `Pie` services.
|
* Union of Langium default services and `Pie` services.
|
||||||
|
Reference in New Issue
Block a user