Skip to content

Commit

Permalink
fix: remove unused + refactor flat config (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfrye authored Jan 31, 2025
1 parent 9c31082 commit 262606a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
10 changes: 0 additions & 10 deletions src/WebClient/app/components/Graveyard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ const useStyles = makeStyles({
margin: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalXL}`,
borderRadius: tokens.borderRadiusMedium,
},
title: {
fontSize: tokens.lineHeightBase400,
lineHeight: tokens.lineHeightBase500,
margin: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalNone}`,
},
lifeDates: {
color: tokens.colorBrandForeground2,
lineHeight: tokens.lineHeightBase200,
margin: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalNone}`,
},
});

const Graveyard = () => {
Expand Down
1 change: 0 additions & 1 deletion src/WebClient/app/components/Headstone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const useStyles = makeStyles({
},
lifeDates: {
color: tokens.colorBrandForeground2,
lineHeight: tokens.lineHeightBase200,
margin: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalNone}`,
},
});
Expand Down
18 changes: 7 additions & 11 deletions src/WebClient/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@ import prettier from 'eslint-plugin-prettier';
const config = tseslint.config(
{ ignores: ['dist', 'node_modules'] },
{
settings: {
react: {
version: 'detect',
},
},
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylisticTypeChecked,
],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
Expand All @@ -32,7 +26,6 @@ const config = tseslint.config(
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
prettier,
},
rules: {
...react.configs.recommended.rules,
Expand All @@ -42,17 +35,20 @@ const config = tseslint.config(
'warn',
{ allowConstantExport: true },
],
...prettier.configs.recommended.rules,
},
},
{
files: ['**/*.js'],
extends: [tseslint.configs.disableTypeChecked],
},
{
...js.configs.recommended,
settings: {
react: {
version: 'detect',
},
},
files: ['**/*.js'],
extends: [js.configs.recommended, tseslint.configs.disableTypeChecked],
files: ['**/*.{js,ts,tsx}'],
plugins: {
prettier,
},
Expand Down

0 comments on commit 262606a

Please sign in to comment.