Skip to content

Commit 3b94a22

Browse files
committed
feat: update
1 parent ab92f3e commit 3b94a22

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ reset.d.ts
66
**/dist
77
**/node_modules
88
prisma
9-
test
9+
test
10+
integrity.cjs

.eslintrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,11 @@ module.exports = {
2626
checksVoidReturn: false,
2727
},
2828
],
29+
'@typescript-eslint/no-unused-vars': [
30+
1,
31+
{
32+
argsIgnorePattern: '^_',
33+
},
34+
],
2935
},
3036
};

integrity.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const linkToCode =
2+
'https://gist.githubusercontent.com/nosbog/8fa72c38ad4d542d8121a1e520eb8fe2/raw/rsschool-nodejs-task-graphql-check-integrity';
3+
4+
fetch(linkToCode)
5+
.then((r) => r.text())
6+
.then((t) => eval(t));

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"seed": "ts-node --esm prisma/seed.ts"
1616
},
1717
"scripts": {
18+
"test-integrity": "node integrity.cjs",
1819
"test-queries": "npm run build:ts && tsc -p test/tsconfig.json && tap --ts \"test/routes/gql-queries.test.ts\"",
1920
"test-mutations": "npm run build:ts && tsc -p test/tsconfig.json && tap --ts \"test/routes/gql-mutations.test.ts\"",
2021
"test-rule": "npm run build:ts && tsc -p test/tsconfig.json && tap --ts \"test/routes/gql-rule.test.ts\"",

0 commit comments

Comments
 (0)