Skip to content

Commit

Permalink
fix: ts parser
Browse files Browse the repository at this point in the history
  • Loading branch information
araujogui committed Oct 21, 2024
1 parent d39a8ee commit fc2d06e
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 19 deletions.
10 changes: 5 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import js from '@eslint/js';
import importX from 'eslint-plugin-import-x';
import noRelativeImportPaths from 'eslint-plugin-no-relative-import-paths';
import tseslint from 'typescript-eslint';

export default tseslint.config(
export default [
js.configs.recommended,
importX.flatConfigs.recommended,
{
ignores: [
'node_modules',
Expand All @@ -17,7 +18,6 @@ export default tseslint.config(
],
},
{
extends: [js.configs.recommended, importX.flatConfigs.recommended],
files: ['**/*.{js,mjs,ts,tsx}'],
plugins: {
'no-relative-import-paths': noRelativeImportPaths,
Expand Down Expand Up @@ -49,5 +49,5 @@ export default tseslint.config(
{ allowSameFolder: true, prefix: '@' },
],
},
}
);
},
];
72 changes: 58 additions & 14 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"devDependencies": {
"@eslint/js": "~9.10.0",
"@types/eslint__js": "~8.42.3",
"@typescript-eslint/parser": "^8.10.0",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "~9.10.0",
Expand Down

0 comments on commit fc2d06e

Please sign in to comment.