-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: UI - Last Fetch and Keyboard-Shortcuts-Hook (#16)
* 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
1 parent
d46ab4d
commit 7c041f3
Showing
26 changed files
with
884 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**'] | ||
|
||
}, | ||
) | ||
} | ||
); |
Oops, something went wrong.