factuges_2025/packages/eslint-config/react-internal.js

35 lines
657 B
JavaScript
Raw Normal View History

2025-05-02 11:22:10 +00:00
import globals from "globals";
import tseslint from "typescript-eslint";
2025-04-27 20:47:47 +00:00
2025-05-02 11:22:10 +00:00
import baseConfig from "./base.js";
2025-04-27 20:47:47 +00:00
2025-05-02 11:22:10 +00:00
/** @type {import("eslint").Linter.Config[]} */
export default [
...baseConfig,
{
languageOptions: {
globals: {
...globals.browser,
JSX: true,
React: true,
},
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": tseslint.plugin,
},
rules: {
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
},
settings: {
react: {
version: "detect",
2025-04-27 20:47:47 +00:00
},
},
},
2025-05-02 11:22:10 +00:00
];