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

Commit fdc8e7f

Browse files
committed
set dev tools at monorepo level
1 parent 7067671 commit fdc8e7f

File tree

6 files changed

+47
-28
lines changed

6 files changed

+47
-28
lines changed

.eslintrc.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const defaultExtends = [
88
];
99

1010
module.exports = {
11+
root: true,
1112
env: {
1213
commonjs: true,
1314
es6: true,
@@ -30,7 +31,8 @@ module.exports = {
3031
parserOptions: {
3132
ecmaVersion: 11,
3233
sourceType: "module",
33-
project: ['./tsconfig.eslint.json']
34+
tsconfigRootDir: __dirname,
35+
project: ['./packages/*/tsconfig.eslint.json']
3436
},
3537
plugins: ["@typescript-eslint", "jest"],
3638
root: true,

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
projects: [
3+
'<rootDir>/packages/*'
4+
]
5+
};

package-lock.json

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

package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@
55
"workspaces": [
66
"packages/*"
77
],
8+
"scripts": {
9+
"lint": "eslint \"./packages/*/{src,tests}/**/*.{ts,js}\" --quiet",
10+
"prettier": "prettier --write \"./packages/*/{src,tests}/**/*.{ts,js,json,md}\"",
11+
"test": "jest"
12+
},
13+
"devDependencies": {
14+
"@typescript-eslint/eslint-plugin": "^4.25.0",
15+
"@typescript-eslint/parser": "^4.25.0",
16+
"danger": "^10.6.4",
17+
"eslint": "^7.27.0",
18+
"eslint-config-prettier": "^8.3.0",
19+
"eslint-plugin-jest": "^24.3.6",
20+
"eslint-plugin-prettier": "^3.4.0",
21+
"jest": "^27.0.3",
22+
"typescript": "^4.3.2",
23+
"prettier": "^2.3.0"
24+
},
825
"engines": {
926
"npm": "^7.15.0",
1027
"node": "^14.16.1"

packages/graphql-markdown/jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
displayName: "graphql-markdown",
23
coverageDirectory: "./coverage",
34
coveragePathIgnorePatterns: ["node_modules", "tests"],
45
globals: {
@@ -8,6 +9,7 @@ export default {
89
},
910
},
1011
preset: "ts-jest",
12+
roots: ['<rootDir>'],
1113
testEnvironment: "node",
1214
testMatch: ["<rootDir>/tests/**/*.spec.ts"],
1315
testPathIgnorePatterns: ["/node_modules/"],

packages/graphql-markdown/package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
"author": "Gregory Heitz @edno",
1919
"scripts": {
2020
"build": "rm -rf build && tsc -b",
21-
"lint": "eslint \"{src,tests}/**/*.{ts,js}\" --quiet",
22-
"prettier": "prettier --write \"{src,tests}/**/*.{ts,js,json,md}\"",
2321
"test": "jest"
2422
},
2523
"dependencies": {
@@ -34,13 +32,6 @@
3432
"devDependencies": {
3533
"@types/jest": "^26.0.23",
3634
"@types/node": "^15.6.1",
37-
"@typescript-eslint/eslint-plugin": "^4.25.0",
38-
"@typescript-eslint/parser": "^4.25.0",
39-
"danger": "^10.6.4",
40-
"eslint": "^7.27.0",
41-
"eslint-config-prettier": "^8.3.0",
42-
"eslint-plugin-jest": "^24.3.6",
43-
"eslint-plugin-prettier": "^3.4.0",
4435
"jest": "^27.0.3",
4536
"lodash": "^4.17.21",
4637
"memfs": "^3.2.2",

0 commit comments

Comments
 (0)