hypnagaga/eslint.config.js
2024-08-20 21:11:47 +01:00

24 lines
485 B
JavaScript

import { svelte } from '@reuters-graphics/yaks-eslint';
import reactPlugin from 'eslint-plugin-react';
/**
* @type {import("eslint").Linter.Config[]}
*/
export default [
{
files: ['src/**/*.{js,ts,svelte,jsx,tsx}', '.storybook/**/*'],
ignores: ['node_modules', 'docs/**/*'],
},
...svelte,
reactPlugin.configs.flat.recommended,
{
rules: {
'react/prop-types': [
'error',
{
skipUndeclared: true,
},
],
},
},
];