rick-and-morty/eslint.config.mjs

26 lines
762 B
JavaScript
Raw Permalink Normal View History

2024-05-18 13:26:01 +03:00
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"]
2024-11-23 15:04:50 +03:00
},
{
ignores: ['stubs/**/*']
2024-05-18 13:26:01 +03:00
}
];