Skip to content

Commit

Permalink
Feature: UI - Last Fetch and Keyboard-Shortcuts-Hook (#16)
Browse files Browse the repository at this point in the history
* refactor: better soc & feat: keyboard shortcuts

* chore: more linting

* feat: show "last fetch"-column on connections-table

* fix: linting errors

* fix: rebasing
  • Loading branch information
levinkerschberger authored Nov 27, 2024
1 parent d46ab4d commit 7c041f3
Show file tree
Hide file tree
Showing 26 changed files with 884 additions and 337 deletions.
62 changes: 38 additions & 24 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,62 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import react from 'eslint-plugin-react'
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import react from "eslint-plugin-react";
import importPlugin from "eslint-plugin-import";

export default tseslint.config(
{ ignores: ['dist'] },
{ ignores: ["dist", "coverage", "src/**/shadcn/**"] },
{
settings: {
react: {
version: '18.3',
}
version: "detect",
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: [
"./tsconfig.app.json",
"./tsconfig.node.json",
"./tsconfig.json",
],
},
},
"import/core-modules": ["react"],
},
extends: [
js.configs.recommended,
...tseslint.configs.strictTypeChecked
importPlugin.flatConfigs.recommended,
...tseslint.configs.strictTypeChecked,
],
files: ['**/*.{ts,tsx}'],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
'react': react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
react: react,
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
...react.configs["jsx-runtime"].rules,
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
'react/prop-types': [2, { ignore: ['className', 'orientation'] }],
'@typescript-eslint/no-confusing-void-expression': 'off',
"react/prop-types": [2, { ignore: ["className", "orientation"] }],
"@typescript-eslint/no-confusing-void-expression": "off",
},
ignores: ['src/**/shadcn/**']

},
)
}
);
Loading

0 comments on commit 7c041f3

Please sign in to comment.