mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 10:49:14 +01:00
* fix(deps): update dependency eslint-plugin-react-hooks to v5 * fix: lint issues after reenabling hook rules * fix: format issues --------- Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
23 lines
509 B
JavaScript
23 lines
509 B
JavaScript
import reactPlugin from "eslint-plugin-react";
|
|
import hooksPlugin from "eslint-plugin-react-hooks";
|
|
|
|
/** @type {Awaited<import('typescript-eslint').Config>} */
|
|
export default [
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
plugins: {
|
|
react: reactPlugin,
|
|
"react-hooks": hooksPlugin,
|
|
},
|
|
rules: {
|
|
...reactPlugin.configs["jsx-runtime"].rules,
|
|
...hooksPlugin.configs.recommended.rules,
|
|
},
|
|
languageOptions: {
|
|
globals: {
|
|
React: "writable",
|
|
},
|
|
},
|
|
},
|
|
];
|