Skip to content

Commit

Permalink
fix: improve eslint padding rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Nomandes authored Dec 22, 2023
1 parent 5573e66 commit e57bd44
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ module.exports = {
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/triple-slash-reference": "off",
"prettier/prettier": "warn",
"padding-line-between-statements": [
"padding-line-between-statements": "off",
"@typescript-eslint/padding-line-between-statements": [
"warn",
{ blankLine: "always", prev: "block-like", next: "function" },
{ blankLine: "always", prev: "const", next: "function" },
{ blankLine: "always", prev: "function", next: "return" },
{
blankLine: "always",
prev: "*",
next: ["interface", "type", "function"],
},
],
"prettier/prettier": "warn",
},
};
1 change: 1 addition & 0 deletions packages/frontend/src/common/context/ColorThemeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ declare module "@mui/material/styles" {
highlightColorPrimary: string;
highlightColorSecondary: string;
}

interface Palette {
highlightColorPrimary: string;
highlightColorSecondary: string;
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/retro/components/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import { FlexBox } from "../../common/components/FlexBox";
import { TextInput } from "../../common/components/TextInput";
import IncrementTimerButton from "./buttons/IncrementTimerButton";

interface TimePickerProps {
minutes: string;
seconds: string;
Expand Down

0 comments on commit e57bd44

Please sign in to comment.