Skip to content

Commit 308e239

Browse files
authored
chore: move CLI test tools to root level and update package.json files (#650)
1 parent b66adb9 commit 308e239

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
]
2323
},
2424
"devDependencies": {
25+
"c8": "^10.1.3",
2526
"eslint": "^9.11.1",
2627
"eslint-config-eslint": "^11.0.0",
2728
"eslint-plugin-chai-friendly": "^1.0.0",
2829
"globals": "^15.1.0",
2930
"got": "^14.4.1",
3031
"lint-staged": "^15.2.0",
32+
"mocha": "^11.1.0",
3133
"yorkie": "^2.0.0"
3234
}
3335
}

packages/eslint-scope/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
"engines": {
1616
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1717
},
18-
"repository": "eslint/js",
18+
"repository": {
19+
"type": "git",
20+
"url": "https://github.com/eslint/js.git",
21+
"directory": "packages/eslint-scope"
22+
},
1923
"funding": "https://opencollective.com/eslint",
24+
"keywords": ["eslint"],
2025
"bugs": {
2126
"url": "https://github.com/eslint/js/issues"
2227
},
@@ -45,12 +50,10 @@
4550
},
4651
"devDependencies": {
4752
"@typescript-eslint/parser": "^8.7.0",
48-
"c8": "^7.7.3",
4953
"chai": "^4.3.4",
5054
"eslint-release": "^3.2.0",
5155
"eslint-visitor-keys": "^4.2.0",
5256
"espree": "^10.3.0",
53-
"mocha": "^9.0.1",
5457
"npm-license": "^0.3.3",
5558
"rollup": "^2.52.7",
5659
"shelljs": "^0.8.5",

packages/eslint-visitor-keys/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@
2929
"@types/estree": "^0.0.51",
3030
"@types/estree-jsx": "^0.0.1",
3131
"@typescript-eslint/parser": "^8.7.0",
32-
"c8": "^7.11.0",
33-
"chai": "^4.3.6",
3432
"eslint-release": "^3.2.0",
3533
"esquery": "^1.4.0",
3634
"json-diff": "^0.7.3",
37-
"mocha": "^9.2.1",
3835
"opener": "^1.5.2",
3936
"rollup": "^4.22.4",
4037
"rollup-plugin-dts": "^6.1.1",
@@ -55,9 +52,13 @@
5552
"test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html",
5653
"test:types": "tsd"
5754
},
58-
"repository": "eslint/js",
55+
"repository": {
56+
"type": "git",
57+
"url": "https://github.com/eslint/js.git",
58+
"directory": "packages/eslint-visitor-keys"
59+
},
5960
"funding": "https://opencollective.com/eslint",
60-
"keywords": [],
61+
"keywords": ["eslint"],
6162
"author": "Toru Nagashima (https://github.com/mysticatea)",
6263
"license": "Apache-2.0",
6364
"bugs": {

packages/espree/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"engines": {
2626
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
2727
},
28-
"repository": "eslint/js",
28+
"repository": {
29+
"type": "git",
30+
"url": "https://github.com/eslint/js.git",
31+
"directory": "packages/espree"
32+
},
2933
"bugs": {
3034
"url": "https://github.com/eslint/js/issues"
3135
},
@@ -40,10 +44,8 @@
4044
"@rollup/plugin-commonjs": "^28.0.0",
4145
"@rollup/plugin-json": "^6.1.0",
4246
"@rollup/plugin-node-resolve": "^15.3.0",
43-
"c8": "^7.11.0",
4447
"eslint-release": "^3.2.0",
4548
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
46-
"mocha": "^9.2.2",
4749
"npm-run-all2": "^6.2.2",
4850
"rollup": "^2.79.1",
4951
"shelljs": "^0.8.5"
@@ -70,6 +72,6 @@
7072
"release:publish": "eslint-publish-release",
7173
"test": "npm-run-all -s test:*",
7274
"test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs",
73-
"test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'"
75+
"test:esm": "c8 mocha --color --reporter progress --timeout 30000 tests/lib/**/*.js"
7476
}
7577
}

0 commit comments

Comments
 (0)