Skip to content

Commit b737d50

Browse files
committed
configure eslint
1 parent 5f5f17f commit b737d50

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed

eslint.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// eslint.config.mjs
2+
import js from "@eslint/js";
3+
import ts from "@typescript-eslint/eslint-plugin";
4+
import tsParser from "@typescript-eslint/parser";
5+
import prettier from "eslint-plugin-prettier";
6+
import prettierConfig from "eslint-config-prettier";
7+
import globals from "globals";
8+
9+
10+
export default [
11+
js.configs.recommended,
12+
{
13+
files : ["**/*.ts"],
14+
languageOptions: {
15+
parser: tsParser,
16+
ecmaVersion: "latest",
17+
sourceType: "module",
18+
globals: {
19+
...globals.node
20+
}
21+
},
22+
plugins: {
23+
"@typescript-eslint": ts,
24+
prettier,
25+
},
26+
rules: {
27+
},
28+
},
29+
prettierConfig,
30+
];

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"packages/*"
66
],
77
"dependencies": {
8-
"cosmiconfig": "^9.0.0"
8+
"cosmiconfig": "^9.0.0",
9+
"globals": "^15.15.0"
910
},
1011
"devDependencies": {
1112
"@typescript-eslint/eslint-plugin": "^8.24.0",

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,16 +2205,11 @@ dotenv-expand@~11.0.6:
22052205
dependencies:
22062206
dotenv "^16.4.5"
22072207

2208-
dotenv@^16.4.5, dotenv@~16.4.5:
2208+
dotenv@^16.4.5, dotenv@^16.4.7, dotenv@~16.4.5:
22092209
version "16.4.7"
22102210
resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz"
22112211
integrity sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==
22122212

2213-
dotenv@^16.4.7:
2214-
version "16.4.7"
2215-
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.7.tgz#0e20c5b82950140aa99be360a8a5f52335f53c26"
2216-
integrity sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==
2217-
22182213
dunder-proto@^1.0.1:
22192214
version "1.0.1"
22202215
resolved "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz"
@@ -2881,6 +2876,11 @@ globals@^14.0.0:
28812876
resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e"
28822877
integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==
28832878

2879+
globals@^15.15.0:
2880+
version "15.15.0"
2881+
resolved "https://registry.yarnpkg.com/globals/-/globals-15.15.0.tgz#7c4761299d41c32b075715a4ce1ede7897ff72a8"
2882+
integrity sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==
2883+
28842884
globby@11.1.0:
28852885
version "11.1.0"
28862886
resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz"

0 commit comments

Comments
 (0)