-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
28 lines (26 loc) · 898 Bytes
/
eslint.config.js
File metadata and controls
28 lines (26 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import { defineConfig } from "eslint/config";
export default defineConfig([
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
plugins: { js, '@typescript-eslint': tseslint.plugin, react: pluginReact },
extends: [
"js/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
languageOptions: { globals: globals.browser },
rules: {
// Desactiva la regla de React en JSX Scope para React 17+
"react/react-in-jsx-scope": "off",
"react/prop-types": "off", // Desactiva la validación de tipos de propiedades en componentes de clase
// Puedes agregar más reglas personalizadas aquí
},
settings: {
react: { version: "detect" }
}
}
]);