* Add lint-fix npm target * Sync eslint+plugins with backend * Add prettier * Ignore no-explicit-any lint rule for now * Silence eslint react warning * Format frontend via prettier * Lint frontend. --------- Co-authored-by: antanst <>
23 lines
525 B
JavaScript
23 lines
525 B
JavaScript
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import pluginReact from "eslint-plugin-react";
|
|
|
|
|
|
export default [
|
|
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
|
|
{languageOptions: { globals: globals.browser }},
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off"
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: "18"
|
|
}
|
|
}
|
|
}
|
|
];
|