rick-and-morty/eslint.config.mjs
Primakov Alexandr Alexandrovich 30e5281b4a ijl -> brojs
2024-11-23 15:04:50 +03:00

26 lines
762 B
JavaScript

import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReactConfig,{
rules: {
'react/prop-types': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', caughtErrors: 'none' },
],
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
"@typescript-eslint/no-explicit-any": "off"
},
ignores: ["src/index.tsx"]
},
{
ignores: ['stubs/**/*']
}
];