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

Commit 8436480

Browse files
committed
Sync up config files with 'graphql-js'
1 parent 91b0b6f commit 8436480

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copied from '.gitignore', please keep it in sync.
2+
node_modules
3+
coverage
4+
dist
5+
integrationTmp
6+
7+
# Ignore TS files inside integration test
8+
integrationTests/ts/*.ts

.eslintrc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ rules:
484484
wrap-regex: off
485485
yield-star-spacing: off
486486

487-
ignorePatterns: 'integrationTests/ts/*.ts'
488487
overrides:
489488
- files: '**/*.ts'
490489
parser: '@typescript-eslint/parser'

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copied from '.gitignore', please keep it in sync.
2+
node_modules
3+
coverage
4+
dist
5+
integrationTmp

examples/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
import express from 'express';
23
import graphqlHTTP from '../src/';
34
import { buildSchema } from 'graphql';

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@
2828
"node": ">= 10.x"
2929
},
3030
"scripts": {
31-
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build && npm run check:integrations",
32-
"test:ci": "npm ci && npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build && npm run check:integrations",
31+
"preversion": ". ./resources/checkgit.sh && npm ci",
32+
"changelog": "node resources/gen-changelog.js",
33+
"test": "npm run lint && npm run check && npm run testonly:cover && npm run prettier:check && npm run build && npm run check:integrations",
34+
"lint": "eslint .",
35+
"check": "flow check",
3336
"testonly": "mocha src/**/__tests__/**/*.ts",
3437
"testonly:cover": "nyc npm run testonly",
35-
"lint": "eslint src resources integrationTests",
36-
"prettier": "prettier --ignore-path .gitignore --write --list-different '**/*.{js,ts,md,json,yml}'",
37-
"prettier:check": "prettier --ignore-path .gitignore --check '**/*.{js,ts,md,json,yml}'",
38-
"check": "flow check",
38+
"prettier": "prettier --write --list-different .",
39+
"prettier:check": "prettier --check .",
3940
"check:integrations": "mocha --full-trace integrationTests/*-test.js",
4041
"build": "node resources/build.js",
41-
"changelog": "node resources/gen-changelog.js",
42-
"preversion": ". ./resources/checkgit.sh",
4342
"start": "node -r @babel/register examples/index.js"
4443
},
4544
"dependencies": {

0 commit comments

Comments
 (0)