Skip to content

Commit 23add29

Browse files
committed
lib: Install common ts/eslint config
1 parent 6ddad8e commit 23add29

File tree

2 files changed

+45
-37
lines changed

2 files changed

+45
-37
lines changed

package-lock.json

Lines changed: 39 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"version": "0.0.0-semantic-release",
44
"description": "Monaco Editor React component",
55
"scripts": {
6-
"build": "tsc",
7-
"lint": "npx eslint src/**"
6+
"build": "npm run lint && npm run compile",
7+
"compile": "tsc",
8+
"lint": "npx eslint --ext .ts src"
89
},
910
"repository": {
1011
"type": "git",
@@ -30,6 +31,8 @@
3031
"@babel/preset-react": "7.17.12",
3132
"@babel/preset-typescript": "7.17.12",
3233
"@babel/runtime": "7.18.3",
34+
"@codingame/eslint-config": "^1.1.2",
35+
"@codingame/tsconfig": "^1.0.5",
3336
"@types/deep-equal": "^1.0.1",
3437
"@types/react": "18.0.8",
3538
"@typescript-eslint/eslint-plugin": "5.27.1",
@@ -43,8 +46,7 @@
4346
"eslint-plugin-node": "11.1.0",
4447
"eslint-plugin-promise": "6.0.0",
4548
"eslint-plugin-react": "7.30.0",
46-
"eslint-plugin-react-hooks": "4.5.0",
47-
"eslint-plugin-standard": "5.0.0",
49+
"eslint-plugin-react-hooks": "^4.5.0",
4850
"eslint-plugin-unused-imports": "2.0.0",
4951
"typescript": "4.7.3"
5052
},

0 commit comments

Comments
 (0)