Skip to content

Commit

Permalink
Actually add the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Sep 7, 2024
1 parent ee49559 commit fd55dab
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import eslint from '@eslint/js';
import reactRefresh from 'eslint-plugin-react-refresh';
import tseslint from 'typescript-eslint';

export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
'react-refresh': reactRefresh
}
},
{
rules: {
"@typescript-eslint/no-explicit-any": "error",
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'no-loop-func': ['error'],
'no-console': ['error'],
'no-restricted-imports': [
'error',
{
patterns: ['@mui/*/*/*']
}
]
}
},
{
ignores: ['node_modules', 'dist', 'lib']
}
];

0 comments on commit fd55dab

Please sign in to comment.