mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-26 16:30:57 +01:00
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",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
];
|