Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit f241f8d

Browse files
committed
Keep only one ESLint config at the root
1 parent a35e937 commit f241f8d

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"build": "lerna run build",
66
"clean": "lerna run clean",
77
"link": "lerna run link && jupyter labextension install jupyterlab-topbar-extension",
8-
"lint": "lerna run eslint && jlpm run prettier",
9-
"lint:check": "lerna run eslint:check && jlpm run prettier:check",
8+
"lint": "jlpm run eslint && jlpm run prettier",
9+
"lint:check": "jlpm run eslint:check && jlpm run prettier:check",
10+
"eslint": "eslint . --ext .ts,.tsx --fix",
11+
"eslint:check": "eslint . --ext .ts,.tsx",
1012
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
1113
"prettier:check": "prettier --list-different \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\""
1214
},
@@ -21,8 +23,15 @@
2123
}
2224
},
2325
"devDependencies": {
24-
"lerna": "^3.20.2",
26+
"@typescript-eslint/eslint-plugin": "^2.21.0",
27+
"@typescript-eslint/parser": "^2.21.0",
28+
"eslint": "^6.8.0",
29+
"eslint-config-prettier": "^6.10.0",
30+
"eslint-plugin-jsdoc": "^22.0.0",
31+
"eslint-plugin-prettier": "^3.1.2",
32+
"eslint-plugin-react": "^7.18.3",
2533
"husky": "^3.0.0",
34+
"lerna": "^3.20.2",
2635
"lint-staged": "^10.0.8",
2736
"prettier": "^2.0.2",
2837
"rimraf": "^3.0.2",

packages/system-monitor-base/package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
"scripts": {
2828
"build": "tsc",
2929
"link": "jupyter labextension link . --no-build",
30-
"eslint": "eslint . --ext .ts,.tsx --fix",
31-
"eslint:check": "eslint . --ext .ts,.tsx",
3230
"clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
3331
"prepare": "npm run clean && npm run build",
3432
"watch": "tsc -w"
@@ -44,13 +42,6 @@
4442
"@types/react": "~16.9.0",
4543
"@types/react-dom": "~16.9.0",
4644
"@types/react-sparklines": "^1.7.0",
47-
"@typescript-eslint/eslint-plugin": "^2.21.0",
48-
"@typescript-eslint/parser": "^2.21.0",
49-
"eslint": "^6.8.0",
50-
"eslint-config-prettier": "^6.10.0",
51-
"eslint-plugin-jsdoc": "^22.0.0",
52-
"eslint-plugin-prettier": "^3.1.2",
53-
"eslint-plugin-react": "^7.18.3",
5445
"rimraf": "^2.6.1",
5546
"typescript": "~3.8.1"
5647
}

packages/system-monitor/package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
"scripts": {
2828
"build": "tsc",
2929
"link": "jupyter labextension link . --no-build",
30-
"eslint": "eslint . --ext .ts,.tsx --fix",
31-
"eslint:check": "eslint . --ext .ts,.tsx",
3230
"clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
3331
"prepare": "npm run clean && npm run build",
3432
"watch": "tsc -w"
@@ -41,13 +39,6 @@
4139
"jupyterlab-system-monitor-base": "^0.5.0"
4240
},
4341
"devDependencies": {
44-
"@typescript-eslint/eslint-plugin": "^2.21.0",
45-
"@typescript-eslint/parser": "^2.21.0",
46-
"eslint": "^6.8.0",
47-
"eslint-config-prettier": "^6.10.0",
48-
"eslint-plugin-jsdoc": "^22.0.0",
49-
"eslint-plugin-prettier": "^3.1.2",
50-
"eslint-plugin-react": "^7.18.3",
5142
"rimraf": "^2.6.1",
5243
"typescript": "~3.8.1"
5344
},

0 commit comments

Comments
 (0)