Skip to content

Commit

Permalink
try configuring eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Feb 10, 2025
1 parent b6b7f20 commit ea46965
Show file tree
Hide file tree
Showing 5 changed files with 7,553 additions and 2,135 deletions.
36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { ESLint } from 'eslint';

export default [
{
// Extend recommended rules and React app configuration
extends: [
'eslint:recommended',
'react-app',
],
settings: {
react: {
// Automatically detect the React version
version: 'detect',
},
// Configure import resolver for custom paths and extensions
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
// Add custom rules here if needed
},
},
{
// Note: there should be no other properties in this object
ignores: [
"node_modules/",
"dist/",
"eslint.config.js",
"env.d.ts",
]
}
];
Loading

0 comments on commit ea46965

Please sign in to comment.