Skip to content

Commit 36ae9dd

Browse files
committed
chore: manual lint fixes
1 parent 177373c commit 36ae9dd

File tree

10 files changed

+15
-37
lines changed

10 files changed

+15
-37
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import tseslint from "typescript-eslint";
44
import prettierlint from "eslint-plugin-prettier/recommended";
55

66
export default tseslint.config(
7-
{ ignores: ["**/dist/**", "rollup.config.mjs"] },
7+
{ ignores: ["**/dist/**"] },
88
{ languageOptions: { globals: globals.browser } },
99
{
1010
rules: {

example/gauge/.eslintrc.js

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

example/gauge/Components/InterfaceSample.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
import {
2-
ArraySubject,
3-
ComponentProps,
4-
DisplayComponent,
5-
EventBus,
6-
FSComponent,
7-
Subject,
8-
VNode,
9-
} from "@microsoft/msfs-sdk";
10-
import { NavigraphNavigationDataInterface } from "@navigraph/msfs-navigation-data-interface";
11-
import "./InterfaceSample.css";
12-
import { NavigationDataStatus } from "@navigraph/msfs-navigation-data-interface";
1+
import { ComponentProps, DisplayComponent, EventBus, FSComponent, Subject, VNode } from "@microsoft/msfs-sdk";
2+
import { NavigationDataStatus, NavigraphNavigationDataInterface } from "@navigraph/msfs-navigation-data-interface";
133
import { AuthPage } from "./Pages/Auth/Auth";
144
import { Dashboard } from "./Pages/Dashboard/Dashboard";
155
import { TestPage } from "./Pages/Test/Test";
166
import { InterfaceNavbar, InterfaceSwitch } from "./Utils";
7+
import "./InterfaceSample.css";
178

189
interface InterfaceSampleProps extends ComponentProps {
1910
bus: EventBus;

example/gauge/Components/List.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-expressions */
12
/* eslint-disable @typescript-eslint/no-redundant-type-constituents */
23
/* eslint-disable @typescript-eslint/no-unsafe-argument */
34
/* eslint-disable @typescript-eslint/no-explicit-any */
@@ -64,9 +65,7 @@ export class List extends DisplayComponent<ListProps> {
6465
case SubscribableArrayEventType.Removed:
6566
{
6667
if (Array.isArray(item)) {
67-
for (let i = 0; i < item.length; i++) {
68-
this.removeDomNode(index);
69-
}
68+
item.forEach(() => this.removeDomNode(index));
7069
} else {
7170
this.removeDomNode(index);
7271
}

example/gauge/Components/Pages/Auth/Auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentProps, DisplayComponent, FSComponent, Subscribable, VNode } from "@microsoft/msfs-sdk";
1+
import { ComponentProps, DisplayComponent, FSComponent, VNode } from "@microsoft/msfs-sdk";
22
import {
33
DownloadProgressPhase,
44
NavigationDataStatus,

example/gauge/MyInstrument.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/class-literal-property-style */
12
/// <reference types="@microsoft/msfs-types/Pages/VCockpit/Core/VCockpit" />
23

34
import { EventBus, FSComponent } from "@microsoft/msfs-sdk";

example/gauge/eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from "../../eslint.config.mjs";

example/gauge/postcss.config.js

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

example/gauge/rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import replace from "@rollup/plugin-replace";
33
import dotenv from "dotenv";
44
import copy from "rollup-plugin-copy";
55
import esbuild from "rollup-plugin-esbuild";
6-
// import css from "rollup-plugin-import-css"
6+
import autoprefixer from "autoprefixer";
7+
import tailwind from "tailwindcss";
78
import postcss from "rollup-plugin-postcss";
89

910
dotenv.config();
@@ -35,6 +36,8 @@ export default {
3536
postcss({
3637
extract: true,
3738
minimize: true,
39+
plugins: [tailwind, autoprefixer], // @ts-ignore
40+
use: { sass: { silenceDeprecations: ["legacy-js-api"] } },
3841
output: "MyInstrument.css",
3942
}),
4043
copy({

src/ts/types/ProcedureLeg/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ export interface ProcedureAuthorization {
123123
}
124124

125125
export enum Authorized {
126-
Authorized = "A",
127-
NotAuthorized = "N",
126+
"Authorized" = "A",
127+
"NotAuthorized" = "N",
128128
}
129129

130130
export interface ProcedureLegBase {

0 commit comments

Comments
 (0)