Skip to content

Commit

Permalink
fix(eslint): imports/exports fields support in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecasar committed Jan 19, 2024
1 parent 109f77a commit 560e652
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-monkeys-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sngular/eslint-config': patch
---

imports/exports fields support in package.json
118 changes: 106 additions & 12 deletions package-lock.json

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

8 changes: 8 additions & 0 deletions packages/eslint/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ module.exports = {
ecmaVersion: 'latest',
sourceType: 'module',
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './',
},
},
},
rules: {
indent: ['error', 'tab'],
'import/order': [
Expand Down
5 changes: 3 additions & 2 deletions packages/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.0.0",
"eslint-plugin-html": "^7.0.0",
"eslint-plugin-import": "^2.0.0",
"eslint-plugin-jsdoc": "^46.0.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-config-prettier": "^9.1.0"
"eslint-plugin-markdown": "^3.0.0"
}
}

0 comments on commit 560e652

Please sign in to comment.