generated from Klectr/KTemplate
28 lines
599 B
JavaScript
28 lines
599 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: ["./src/**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
|
|
{ plugins: { react: pluginReact } },
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
globals: globals.browser,
|
|
},
|
|
},
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
{
|
|
rules: {
|
|
"react/react-in-jsx-scope": "off",
|
|
},
|
|
},
|
|
]
|