Skip to content

Commit

Permalink
fix: eslint ignore, type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Apr 14, 2024
1 parent 7fa887b commit 5b6c5df
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 23 deletions.
11 changes: 0 additions & 11 deletions .eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/consistent-type-definitions': 'warn',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/ban-ts-comment': [
'error',
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"dev:vite": "tsx .vite/server.ts",
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite",
"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: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": "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 . && prettier --write . && tsx scripts/fixCSpell.ts",
"lint:jison": "tsx ./scripts/jison/lint.mts",
"contributors": "tsx scripts/updateContributors.ts",
"cypress": "cypress run",
Expand Down
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/class/classTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export interface ClassNote {
text: string;
}

export type ClassRelation = {
export interface ClassRelation {
id1: string;
id2: string;
relationTitle1: string;
Expand All @@ -152,7 +152,7 @@ export type ClassRelation = {
type2: number;
lineType: number;
};
};
}

export interface NamespaceNode {
id: string;
Expand Down
5 changes: 4 additions & 1 deletion packages/mermaid/src/diagrams/quadrant-chart/quadrantDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ function textSanitizer(text: string) {
return sanitizeText(text.trim(), config);
}

type LexTextObj = { text: string; type: 'text' | 'markdown' };
interface LexTextObj {
text: string;
type: 'text' | 'markdown';
}

const quadrantBuilder = new QuadrantBuilder();

Expand Down
4 changes: 2 additions & 2 deletions packages/parser/src/language/info/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import { InfoTokenBuilder } from './tokenBuilder.js';
/**
* Declaration of `Info` services.
*/
type InfoAddedServices = {
interface InfoAddedServices {
parser: {
TokenBuilder: InfoTokenBuilder;
ValueConverter: CommonValueConverter;
};
};
}

/**
* Union of Langium default services and `Info` services.
Expand Down
4 changes: 2 additions & 2 deletions packages/parser/src/language/packet/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import { PacketTokenBuilder } from './tokenBuilder.js';
/**
* Declaration of `Packet` services.
*/
type PacketAddedServices = {
interface PacketAddedServices {
parser: {
TokenBuilder: PacketTokenBuilder;
ValueConverter: CommonValueConverter;
};
};
}

/**
* Union of Langium default services and `Packet` services.
Expand Down
4 changes: 2 additions & 2 deletions packages/parser/src/language/pie/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import { PieValueConverter } from './valueConverter.js';
/**
* Declaration of `Pie` services.
*/
type PieAddedServices = {
interface PieAddedServices {
parser: {
TokenBuilder: PieTokenBuilder;
ValueConverter: PieValueConverter;
};
};
}

/**
* Union of Langium default services and `Pie` services.
Expand Down

0 comments on commit 5b6c5df

Please sign in to comment.