Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
liady committed Jan 20, 2025
1 parent 8f3f5ad commit 5176700
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 73 deletions.
19 changes: 10 additions & 9 deletions examples/express/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default [
},
},
plugins: {
'react': reactPlugin,
react: reactPlugin,
'react-hooks': reactHooksPlugin,
'jsx-a11y': jsxA11yPlugin,
},
Expand All @@ -35,8 +35,8 @@ export default [
},
formComponents: ['Form'],
linkComponents: [
{ name: 'Link', linkAttribute: 'to' },
{ name: 'NavLink', linkAttribute: 'to' },
{name: 'Link', linkAttribute: 'to'},
{name: 'NavLink', linkAttribute: 'to'},
],
'import/resolver': {
typescript: {},
Expand All @@ -55,7 +55,7 @@ export default [
files: ['**/*.{ts,tsx}'],
plugins: {
'@typescript-eslint': tsPlugin,
'import': importPlugin,
import: importPlugin,
},
languageOptions: {
parser: tsParser,
Expand All @@ -71,11 +71,12 @@ export default [
settings: {
'import/internal-regex': '^~/',
'import/resolver': {
node: {
extensions: ['.ts', '.tsx'],
},
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
node: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
},
},
},
Expand All @@ -100,11 +101,11 @@ export default [
},

{
files: ['**/*.mjs'], // For Node.js ESM files
files: ['**/*.mjs'], // For Node.js ESM files
languageOptions: {
globals: {
...globals.node,
},
},
},
];
];
129 changes: 65 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5176700

Please sign in to comment.