Skip to content

Commit

Permalink
feat(eslint-config,tsconfig): update eslint and ts configs
Browse files Browse the repository at this point in the history
update base and cjs tsconfig

fix eslint config for ts target
  • Loading branch information
deopea-david committed Oct 16, 2023
1 parent b7fe6ed commit a48aa51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config: TSESLint.Linter.Config = {
"prettier",
],
env: {
[tsconfig.compilerOptions.module.toLowerCase()]: true,
[tsconfig.compilerOptions.target.toLowerCase()]: true,
"shared-node-browser": true,
},
parser: "@typescript-eslint/parser",
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Base",
"compilerOptions": {
"module": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2017",
"lib": ["ES2022"],
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"esModuleInterop": true
},

"exclude": []
"exclude": ["**/*.d.cts"]
}

0 comments on commit a48aa51

Please sign in to comment.